CL_DEF_CRM_MKTPL_OL_OBJ - Class for BAdI Impl.: CRM_MKTPL_OL_OBJ

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.

>>> Development Documentation generated by DocuGenerator v2.0 (only available in English => NO TRANSLATION!!!) <<<

General Class Description

This class is the SAP default implementation for the MKTPL (MarketingPlanner) BAdI at the object level.

__________________________________________________________

Class Info

Name:CL_DEF_CRM_MKTPL_OL_OBJ
Instantiation:Public

Superclass

None

Implemented Interfaces

IF_BADI_INTERFACE
IF_EX_CRM_MKTPL_OL_OBJ

Friend Classes

None

Subclasses

CL_DEF_CRM_MKTPL_OL_INI_OBJ
CL_DEF_CRM_MKTPL_OL_OBJ_TPM

__________________________________________________________

Methods

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_CONVERSION_TIMEZONE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_CONVERSION_TIMEZONE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CHANGINGSYSTZONLO CV_CONVERSION_TIMEZONE

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_COPY_RULE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_COPY_RULE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CHANGINGCRM_MKTPL_COPY_RULECV_COPY_RULE

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_CTYPES_TARGET_MAPPING

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_CTYPES_TARGET_MAPPING(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CHANGINGCRM_MKTPL_PRT_CAMPTYPE CT_CAMPAIGN_TYPES

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_DEFAULTING_RULE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_DEFAULTING_RULE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_PARENT_MKTPROJECT
CL_CRM_MKTPL_OL_MKTPROJECT IR_CHILD_MKTPROJECT
CHANGINGCRM_MKTPL_DEF_RULE CV_DEFAULTING_RULE

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_FIELD_ATTRIBUTES

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_FIELD_ATTRIBUTES(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CHANGINGCRMT_MKTGS_FIELD_ATTRIBUTE CT_FIELD_ATTRIBUTE

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_ICON

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_ICON(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CHANGINGSTRING CV_ICON_TOOLTIP
STRING CV_ICON

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_VALUEHELP_ENTRIES

Public IF_EX_CRM_MKTPL_OL_OBJ~CHANGE_VALUEHELP_ENTRIES(

IMPORTINGFIELDNAME IV_FIELDNAME
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CHANGINGCRMT_MKTGS_VALUE_HELP CT_VALUE_HELP

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_ATTRIBUTES

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES IS_ATTRIBUTES
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
ABAP_BOOL IV_HAS_ERRORS
CRMS_MKTPL_OL_ATTRIBUTES_EXT IS_ATTRIBUTES_EXT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
ABAP_BOOL EV_HAS_ERRORS

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_AUTHORITY

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_AUTHORITY(

IMPORTINGACTIV_AUTH IV_ACTIVITY
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
CHANGINGABAP_BOOL CV_AUTHORITY_OK

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_AUTHORITY_ASSIGNMENT

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_AUTHORITY_ASSIGNMENT(

IMPORTINGCRM_MKTPL_CAMPTYPEIV_MKTPROJECT_TYPE
CRM_MKTGS_ASSIGNMENT_TYPE IV_ASSIGNMENT_TYPE
ACTIV_AUTH IV_ACTIVITY
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
CHANGINGABAP_BOOL CV_AUTHORITY_OK

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_CREATE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_CREATE(

IMPORTINGABAP_BOOL IV_CREATE_TEMPLATE
CRMS_MKTPL_OL_ATTRIBUTES_EXT IS_ATTRIBUTES_EXT
CRMS_MKTPL_OL_ATTRIBUTES IS_ATTRIBUTES
CL_CRM_MKTPL_OL_MKTPROJECT IR_PARENT_MKTPROJECT
EXPORTINGABAP_BOOL EV_REJECT_CREATE
CRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG

)

This method enables the execution of additional logic to check the objects before create.

Parameters

- IV_CREATE_TEMPLATEFlag that tells whether atemplate should be created.
- IS_ATTRIBUTES_EXTThe internal attributes ofthe marketing project to be created.
- IS_ATTRIBUTESThe internal attributes of themarketing project to be created.
- IR_PARENT_MKTPROJECTThe parent marketing project.
- EV_REJECT_CREATEFlag that tells whether themove is rejected or not.
- ET_MESSAGE_LOGThe list of messages that should be displayed.

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_DELETE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_DELETE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
ABAP_BOOL EV_REJECT_DELETE

)

This method enables the execution of additional logic to check the objects before delete.

Parameters

- IR_MKTPROJECTThe marketing project to be deleted.
- ET_MESSAGE_LOGThe list of messages that should be displayed.
- EV_REJECT_DELETEFlag that tells whether thedeletion is rejected or not.

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_MOVE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_MOVE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CL_CRM_MKTPL_OL_MKTPROJECT IR_NEW_PARENT_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
ABAP_BOOL EV_REJECT_MOVE

)

This method enables the execution of additional logic to check the objects before move.

Parameters

- IR_MKTPROJECTThe marketing project to be moved.
- IR_NEW_PARENT_MKTPROJECTThe new parent marketing project.
- ET_MESSAGE_LOGThe list of messages that should be displayed.
- EV_REJECT_MOVEFlag that tells whether the move is rejected or not.

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_SAVE

Public IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_SAVE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
ABAP_BOOL EV_REJECT_SAVE

)

This method enables the execution of additional logic to check the objects consistency before the save.

Parameters

- IR_MKTPROJECTA marketing project that has been changed.
- ET_MESSAGE_LOGThe list of messages that should be displayed.
- EV_REJECT_SAVEFlag that tells whether the save is rejected or not.

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~COPY_AFTER

Public IF_EX_CRM_MKTPL_OL_OBJ~COPY_AFTER(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT_COPY
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT_TEMPLATE
ABAP_BOOL IV_COPYING_FINISHED
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~COPY_BEFORE

Public IF_EX_CRM_MKTPL_OL_OBJ~COPY_BEFORE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT_TEMPLATE
ABAP_BOOL IV_REJECT_POSSIBLE
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
ABAP_BOOL EV_REJECT_COPY
CHANGINGCRM_MKTGS_EXTERNAL_ID CV_EXTERNAL_ID

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~FINALIZE_BEFORE_SAVE

Public IF_EX_CRM_MKTPL_OL_OBJ~FINALIZE_BEFORE_SAVE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG

)

This method enables the execution of post-processing logic that may change the marketing objects
just before the CHECK_BEFORE_SAVE and the SAVE get executed.

Parameters

- IR_MKTPROJECTA marketing project that has been changed.
- ET_MESSAGE_LOGThe list of messages that should be displayed.

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~GENERATE_EXTERNAL_ID

Public CGPL_EXTID IF_EX_CRM_MKTPL_OL_OBJ~GENERATE_EXTERNAL_ID(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CL_CRM_MKTPL_OL_MKTPROJECT IR_PARENT_MKTPROJECT
CGPL_OBJECT_TYPE IV_OBJECT_TYPE

)

This method
- Generates a new External ID according to the desired object type
- If keeps generating new External ID until:
- The generated External ID is:
- Suitable (NOT used by another existing marketing object, more especially a CGPL object)
and
- NOT used by a deleted or archived marketing object

Returns

The new valid External ID.

Parameters

- IR_MKTPROJECTThe marketing project object reference on which we want to give a new External ID.
- IR_PARENT_MKTPROJECTThe parent of the marketing project object reference on which we want to give a new External ID.
- IV_OBJECT_TYPEOptional: required only if the marketing project object is not known (i.e. before it is even created)
 This is the object type of the marketing object on which we want to give a new External ID

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~OBJECT_CHANGED

Public IF_EX_CRM_MKTPL_OL_OBJ~OBJECT_CHANGED(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~SET_ATTRIBUTES_AFTER

Public IF_EX_CRM_MKTPL_OL_OBJ~SET_ATTRIBUTES_AFTER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES IS_ATTRIBUTES_OLD
CRM_MKTGS_CREATE_MODE IV_CREATE_MODE
CRMS_MKTPL_OL_ATTRIBUTES IS_ATTRIBUTES_NEW
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CRMS_MKTPL_OL_ATTRIBUTES_EXT IS_ATTRIBUTES_EXT_NEW
CRMS_MKTPL_OL_ATTRIBUTES_EXT IS_ATTRIBUTES_EXT_OLD
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~SET_ATTRIBUTES_BEFORE

Public IF_EX_CRM_MKTPL_OL_OBJ~SET_ATTRIBUTES_BEFORE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
CRMS_MKTPL_OL_ATTRIBUTES_EXT IS_ATTRIBUTES_EXT_OLD
CRMS_MKTPL_OL_ATTRIBUTES IS_ATTRIBUTES_OLD
CRM_MKTGS_CREATE_MODE IV_CREATE_MODE
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_EXT CS_ATTRIBUTES_EXT_NEW
CRMS_MKTPL_OL_ATTRIBUTES CS_ATTRIBUTES_NEW

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~STATUS_CHANGE_AFTER

Public IF_EX_CRM_MKTPL_OL_OBJ~STATUS_CHANGE_AFTER(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
J_VORGANG IV_ACTIVITY
CHAR1 IV_SET_USER_STATUS_INACTIVE
J_ESTAT IV_USER_STATUS
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG

)

________________________________________________________________________

IF_EX_CRM_MKTPL_OL_OBJ~STATUS_CHANGE_BEFORE

Public IF_EX_CRM_MKTPL_OL_OBJ~STATUS_CHANGE_BEFORE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT
J_VORGANG IV_ACTIVITY
CHAR1 IV_SET_USER_STATUS_INACTIVE
J_ESTAT IV_USER_STATUS
EXPORTINGCRMT_MKTGS_BADI_MSG ET_MESSAGE_LOG
ABAP_BOOL EV_REJECT_STATUS_CHANGE

)

________________________________________________________________________

GET_EXTERNAL_ID_NUM_ATTEMPTS

Protected I GET_EXTERNAL_ID_NUM_ATTEMPTS( )

This method returns the maximum number of attempts to find a suitableExternal ID,
before aborting the External ID generation logic.

Returns

The maximum number of attempts to try generating a valid External ID

________________________________________________________________________

GET_EXTERNAL_ID_NUM_RANGE_OBJ

Protected NROBJ GET_EXTERNAL_ID_NUM_RANGE_OBJ(

IMPORTINGCGPL_OBJECT_TYPE IV_OBJECT_TYPE

)

This method returns the number range object name to use for a given object type.

Returns

The name of the number range object to use for the given object type

Parameters

- IV_OBJECT_TYPEThis is the object type of the marketing object on which we want to give a new External ID

________________________________________________________________________

GET_EXTERNAL_ID_PREFIX

Protected CRM_MKTPL_EXTERNAL_ID_PREFIX GET_EXTERNAL_ID_PREFIX(

IMPORTINGCGPL_OBJECT_TYPE IV_OBJECT_TYPE

)

This method returns the prefix letter to use in the External ID of a given object type.

Returns

The External ID prefix letter.

Parameters

- IV_OBJECT_TYPEThis is the object type of the marketing object on which we want to give a new External ID

________________________________________________________________________

GET_EXTERNAL_ID_SEPARATOR

Protected CHAR1 GET_EXTERNAL_ID_SEPARATOR( )

This method returns the External ID seperator that is meant to separate the prefix letter and the sequence number.

Returns

The External ID separator character.



BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.


Length: 41011 Date: 20120526 Time: 133437     triton ( 283 ms )