CL_CRM_MKTPL_HEADER_ITEM - Assignment to Marketing Plan / Campaign
General Material Data SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis 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 generic header assignment
It is responsible for managing the header attributes
__________________________________________________________
Class Info
| Name: | CL_CRM_MKTPL_HEADER_ITEM |
| Instantiation: | Public |
Superclass
Implemented Interfaces
Friend Classes
CL_CRM_MKTPL_HEADER_COLL
CL_CRM_MKTPL_HEADER_PERS
CL_CRM_MKTPL_OL_MKTPROJECT
Subclasses
CL_CRM_MKTPL_HEADER_AGR_ITEM
CL_CRM_MKTPL_HEADER_CPG_ITEM
CL_CRM_MKTPL_HEADER_CPT_ITEM
CL_CRM_MKTPL_HEADER_DLM_ITEM
CL_CRM_MKTPL_HEADER_INI_ITEM
CL_CRM_MKTPL_HEADER_INT_ITEM
CL_CRM_MKTPL_HEADER_KTI_ITEM
CL_CRM_MKTPL_HEADER_LOY_ITEM
CL_CRM_MKTPL_HEADER_MPL_ITEM
CL_CRM_MKTPL_HEADER_PGM_ITEM
CL_CRM_MKTPL_HEADER_RRG_ITEM
CL_CRM_MKTPL_HEADER_RRL_ITEM
CL_CRM_MKTPL_HEADER_RR_ITEM
CL_CRM_MKTPL_HEADER_SPG_ITEM
CL_CRM_MKTPL_HEADER_TEMP_ITEM
CL_CRM_MKTPL_HEADER_TPM_ITEM
__________________________________________________________
Methods
IF_CRM_MKTGS_EVENT_LISTENER~ATTRIBUTES_CHANGED
Public IF_CRM_MKTGS_EVENT_LISTENER~ATTRIBUTES_CHANGED(
| IMPORTING | ANY | IS_ATTRIBUTES_OLD |
| ANY | IS_ATTRIBUTES_NEW | |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM | |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
This method listenes to changes of the parent object or other assignments
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | IS_ATTRIBUTES_NEW | New attributes |
| - | IR_OBJECT_ITEM | The parent object item |
| - | IR_ASG_ITEM | The assignment item (optional) |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_ACTIVITY_EXECUTED
Public ABAP_BOOLIF_CRM_MKTGS_EVENT_LISTENER~BEFORE_ACTIVITY_EXECUTED(
| IMPORTING | J_VORGANG | IV_ACTIVITY |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
)
This method allows to provibit the execution of a business activity(status)
Returns
Failed flag (veto)
Parameters
| - | IV_ACTIVITY | Business activity to be executed |
| - | IR_OBJECT_ITEM | The parent object item |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_DELETE
Public IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_DELETE(
| IMPORTING | CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
This method allows to cancel the deletion of the parent object or other assignments
Parameters
| - | IR_OBJECT_ITEM | The parent object item |
| - | IR_ASG_ITEM | The assignment item (optional) |
Exceptions
| - | CX_CRM_MKTGS_OBJECT_LAYER | This exception can be risen in order to cancel the deletion |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_USER_STATUS_CHANGED
Public ABAP_BOOLIF_CRM_MKTGS_EVENT_LISTENER~BEFORE_USER_STATUS_CHANGED(
| IMPORTING | J_ESTAT | IV_USER_STATUS |
| ABAP_BOOL | IV_SET_INACTIVE | |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
)
This method allows to provibit the setting of a user status
Returns
Failed flag (veto)
Parameters
| - | IV_USER_STATUS | User status to be set |
| - | IV_SET_INACTIVE | True if status should be reset |
| - | IR_OBJECT_ITEM | The parent object item |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~BUSINESS_ACTIVITY_EXECUTED
Public IF_CRM_MKTGS_EVENT_LISTENER~BUSINESS_ACTIVITY_EXECUTED(
| IMPORTING | CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
| J_VORGANG | IV_ACTIVITY |
)
This method listens to all status changes (event handler)
The following logic is performed:
- Check for KPI snapshot
- Init object for ERP update
Parameters
| - | IR_OBJECT_ITEM | Marketing Project |
| - | IV_ACTIVITY | Business transaction which hasbeen performed |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~IS_LISTENER_INACTIVE
Public ABAP_BOOLIF_CRM_MKTGS_EVENT_LISTENER~IS_LISTENER_INACTIVE( )
This method can deactivate the event listening of the header assignment
Returns
Inactive flag
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~ITEM_CREATED
Public IF_CRM_MKTGS_EVENT_LISTENER~ITEM_CREATED(
| IMPORTING | CRM_MKTGS_CREATE_MODE | IV_CREATE_MODE |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM | |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
This method listenes to creations of the parent object or other assignments
Parameters
| - | IV_CREATE_MODE | Mode of creation |
| - | IR_OBJECT_ITEM | The parent object item |
| - | IR_ASG_ITEM | The assignment item (optional) |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~ITEM_DELETED
Public IF_CRM_MKTGS_EVENT_LISTENER~ITEM_DELETED(
| IMPORTING | CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
This method listenes to deletions of the parent object or other assignments
Parameters
| - | IR_OBJECT_ITEM | The parent object item |
| - | IR_ASG_ITEM | The assignment item (optional) |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~USER_STATUS_CHANGED
Public IF_CRM_MKTGS_EVENT_LISTENER~USER_STATUS_CHANGED(
| IMPORTING | J_ESTAT | IV_USER_STATUS |
| ABAP_BOOL | IV_SET_INACTIVE | |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
)
This method listens to all user status changes (event handler)
The following logic is performed:
- Check for KPI snapshot
Parameters
| - | IV_USER_STATUS | User status which has been set |
| - | IV_SET_INACTIVE | Indicator which is true ifthe status has been set incative |
| - | IR_OBJECT_ITEM | Marketing Project |
| ________________________________________________________________________ |
|---|
ADJUST_CAMPAIGN_TYPE
Protected ADJUST_CAMPAIGN_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CRM_MKTPL_SRCOBJMAPTYPE | IV_SOURCE_TYPE | |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method adjusts the campaign type according to the maintained mapping
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | IV_SOURCE_TYPE | Type of the source marketing project |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
ADJUST_COPY_ATTRIBUTES
Protected ADJUST_COPY_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_SRC |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method adjust the attributes when copying
The following logic is performed:
- Copy the cgpl attributes (date fields) which were lost during cgpl copy
- Set some dependent attributes
Parameters
| - | IS_ATTRIBUTES_SRC | Copy source attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
ADJUST_TEMPLATE_FLAG
Protected ADJUST_TEMPLATE_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method initializes the basic attributes
- object class
- original system
- timezone created
- shortcut
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
CHECK
Redefined Public ABAP_BOOL CHECK(
| IMPORTING | CRM_MKTGS_CHECK_MODE_EXPLICIT | IV_CHECK_MODE |
)
This method checks the header assignment item attributes
Have a look at the single check methods for details
Returns
True, if the check returns errors
Parameters
| - | IV_CHECK_MODE | Sets the explicit check mode, values |
| - CL_CRM_MKTGS_CONSTANTS=>CHECK_MODE_EXPLICIT_STANDARD:no explicit mode, the values of the customizing are taken into account | ||
| - CL_CRM_MKTGS_CONSTANTS=>CHECK_MODE_EXPLICIT_FULL:all checks are performed (ignore customizing settings) | ||
| - CL_CRM_MKTGS_CONSTANTS=>CHECK_MODE_EXPLICIT_MINIMUM:only changed items are checked (ignore customizing settings) |
| ________________________________________________________________________ |
|---|
CHECK_ACCOUNT_PLAN
Protected ABAP_BOOL CHECK_ACCOUNT_PLAN(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the account plan reference
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_ACTION_PROFILE
Protected ABAP_BOOL CHECK_ACTION_PROFILE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the action profile
- check whether value exists in the customizing
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_ACTIVE
Protected ABAP_BOOL CHECK_ACTIVE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the active flag in respect to its parent
- Permitted combinations are:
Parent Active / Child Inactive
Parent Active / Child Active
Parent Inactive / Child Inactive
- FORBIDDEN:
Parent Inactive / Child Active
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_ADI_FLAG
Protected ABAP_BOOL CHECK_ADI_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the abnormal demand indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_ADRESS_ID
Protected ABAP_BOOL CHECK_ADRESS_ID(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the adress id
- check whether value exists in the customizing
- check whether there exist a sender already (e-mail address will be ignored then)
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_APO_INTEGRATION
Protected ABAP_BOOL CHECK_APO_INTEGRATION(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks for messages of the APO integration
- If messages exist, show a message
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_ASSIGNMENT
Protected ABAP_BOOL CHECK_AUTHORITY_ASSIGNMENT(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
| CRM_MKTGS_ASSIGNMENT_TYPE | IV_ASSIGNMENT_TYPE | |
| SYMSGTY | IV_MSG_TYPE |
)
This method checks the authority for the requested assignment type
- it checks whether an assignment authority object exists
- returns the value from buffer if exists and returns
- calls the authority check for the assignment type in combination with the current marketing project type
- calls the assignment BAdI
- buffers the result
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| - | IV_ASSIGNMENT_TYPE | Assignment type |
| - | IV_MSG_TYPE | Message type of the messages to be raised (no messages if empty) |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_AUTH_GROUP
Protected ABAP_BOOL CHECK_AUTHORITY_AUTH_GROUP(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
| CRM_MKTPL_AUTH_GROUP | IV_AUTHORITY_GROUP | |
| ABAP_BOOL | IV_SHOW_MESSAGE |
)
This method checks the authority for the requested authority group
- it checks whether an authority object exists
- calls the authority check
- raises an error message if the check fails and if requested
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| - | IV_AUTHORITY_GROUP | Assignment type |
| - | IV_SHOW_MESSAGE | Flag, if an error message should be raised |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_CAMPAIGN_LINK
Protected ABAP_BOOL CHECK_AUTHORITY_CAMPAIGN_LINK(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
| CGPL_GUID16 | IV_CAMPAIGN_LINK | |
| ABAP_BOOL | IV_SHOW_MESSAGE |
)
This method checks the authority for the requested campaign link
- it checks whether an authority object exists
- calls the authority check
- raises an error message if the check fails and if requested
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| - | IV_CAMPAIGN_LINK | Campaign link |
| - | IV_SHOW_MESSAGE | Flag, if an error message should be raised |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_CAMPAIGN_TYPE
Protected ABAP_BOOL CHECK_AUTHORITY_CAMPAIGN_TYPE(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
| CRM_MKTPL_CAMPTYPE | IV_CAMPAIGN_TYPE | |
| ABAP_BOOL | IV_SHOW_MESSAGE |
)
This method checks the authority for the requested marketing projecttype
- it checks whether an authority object exists
- calls the authority check
- raises an error message if the check fails and if requested
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| - | IV_CAMPAIGN_TYPE | Campaign type |
| - | IV_SHOW_MESSAGE | Flag, if an error message should be raised |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_MAIN
Protected ABAP_BOOL CHECK_AUTHORITY_MAIN(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
)
This method checks the main authority object of the marketing project
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_OBJECT
Protected ABAP_BOOL CHECK_AUTHORITY_OBJECT(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
)
This method checks the authority for the whole object
- it checks the authority buffer and returns the value if exists
- if not it checks the authority for the
- main object
- responsible
- authority group
- marketing project type
- ACE
- calls the authority BAdI
- buffers the result
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| ________________________________________________________________________ |
|---|
CHECK_AUTHORITY_RESPONSIBLE
Protected ABAP_BOOL CHECK_AUTHORITY_RESPONSIBLE(
| IMPORTING | ACTIV_AUTH | IV_ACTIVITY |
| BU_PARTNER | IV_RESPONSIBLE_ID | |
| ABAP_BOOL | IV_SHOW_MESSAGE |
)
This method checks the authority for the requested person responsible
- it checks whether an authority object exists
- calls the authority check
- raises an error message if the check fails and if requested
Returns
True, if authority is ok
Parameters
| - | IV_ACTIVITY | Activity to be checked |
| - | IV_RESPONSIBLE_ID | Person responsible id |
| - | IV_SHOW_MESSAGE | Flag, if an error message should be raised |
| ________________________________________________________________________ |
|---|
CHECK_AUTH_GROUP
Protected ABAP_BOOL CHECK_AUTH_GROUP(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the authority
- check whether authority group exists in the customizing
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_BEFORE_DELETE
Redefined Public ABAP_BOOL CHECK_BEFORE_DELETE( )
This method checks whether the deletion of the header data is possible
- it's only allowed to delete the header data if the markting projet gets deleted
Returns
True, if deletion is ok
| ________________________________________________________________________ |
|---|
CHECK_BEFORE_SAVE
Redefined Public ABAP_BOOL CHECK_BEFORE_SAVE(
| IMPORTING | ABAP_BOOL | IV_SHOW_MESSAGES |
)
This method performs the check before save
Returns
True, if check has failed
Parameters
| - | IV_SHOW_MESSAGES | Flag, if message should be raised |
| ________________________________________________________________________ |
|---|
CHECK_BPAT_TYPE
Protected ABAP_BOOL CHECK_BPAT_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the buying pattern type
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_BP_CORR_LANG_IND
Protected ABAP_BOOL CHECK_BP_CORR_LANG_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the enrollment requested indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CAMPAIGN_LINK
Protected ABAP_BOOL CHECK_CAMPAIGN_LINK(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the campaign link
- Checks if the linked campaign is released if the object itself isreleased
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CAMPAIGN_TYPE
Protected ABAP_BOOL CHECK_CAMPAIGN_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the campaign type
- check whether type exists in the customizing
- check whether the usage is valid to productive/template objects
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CA_ATTRIBUTES
Protected ABAP_BOOL CHECK_CA_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
| MSGTY | IV_MSG_TYPE |
)
This method checks the campaign automation workflow assignment
- if there are successors defined in CA a workflow must be assigned
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| - | IV_MSG_TYPE | Type of the messages to be raised |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_ATTRIBUTES
Protected ABAP_BOOL CHECK_CGPL_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the CGPL attributes
- checks the plan dates
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_BW_IDENTIFIER
Protected ABAP_BOOL CHECK_CGPL_BW_IDENTIFIER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the CGPL BI identifier
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_COMPLETION
Protected ABAP_BOOL CHECK_CGPL_COMPLETION(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the CGPL completion rate
- checks if the rate is between 0 and 100
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_DATES
Protected ABAP_BOOL CHECK_CGPL_DATES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the CGPL plan dates
- checks against holidays when object is just created
- checks if plan start is in the past if it has changed
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_EXTERNAL_ID
Protected ABAP_BOOL CHECK_CGPL_EXTERNAL_ID(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the external id
The following checks are performed:
- Check whether the cgpl framework throws already a message
- Check whether an invalid character is in the external id ( '*' or'%' )
- Check whether the external id is already used as a coupon code for internal clearing
- Check whether the external id is has already been used for ERP orBW
- Check whether the external id has a maximum of 22 character if the APO integration is enabled
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_HIERARCHY_SORT
Protected ABAP_BOOL CHECK_CGPL_HIERARCHY_SORT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the hierarchy sort field.
If the sort number is duplicate, then this method reports an error.
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_NOT_SUPPORTED_ATTR
Protected ABAP_BOOL CHECK_CGPL_NOT_SUPPORTED_ATTR(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks if attributes has changed which are not supported
- Raise an error message
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CGPL_PRIORITY
Protected ABAP_BOOL CHECK_CGPL_PRIORITY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the CGPL priority
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CHANNEL
Protected ABAP_BOOL CHECK_CHANNEL(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the adress id
- check whether value exists in the customizing
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CHM_RELEVANT
Protected ABAP_BOOL CHECK_CHM_RELEVANT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the open to partner (channel management) flag
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CIC_SCRIPT
Protected ABAP_BOOL CHECK_CIC_SCRIPT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the cic script whether
- it exists
- it is empty
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_CURRENCY
Protected ABAP_BOOL CHECK_CURRENCY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the currency
The following checks are performed:
- Check whether the currency exist
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_DEAL
Protected ABAP_BOOL CHECK_DEAL(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the deal reference
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_EMPLOYEE_RESPONSIBLE
Protected ABAP_BOOL CHECK_EMPLOYEE_RESPONSIBLE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the employee responsible
- If guid exists, check existance and if yes check if business partner is employee
- If only id exists, the guid couldn't be determined in SET_EMPLOYEE_RESPONSIBLE -> invalid id
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_ENROLLMENT_REQ
Protected ABAP_BOOL CHECK_ENROLLMENT_REQ(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the enrollment requested indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_ERP_INTEGRATION
Protected ABAP_BOOL CHECK_ERP_INTEGRATION(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks for messages of the ERP integration
- If messages exist, show a message
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_EXCL_IND
Protected ABAP_BOOL CHECK_EXCL_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the exclude indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_EXECUTION_LANG
Protected ABAP_BOOL CHECK_EXECUTION_LANG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the enrollment requested indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_FORMS
Protected ABAP_BOOL CHECK_FORMS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks all assigned forms
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_INDIRECT_IND
Protected ABAP_BOOL CHECK_INDIRECT_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the indirect indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_MKT_ORG
Protected ABAP_BOOL CHECK_MKT_ORG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the marketing organization
- If internal value exists, check existance and assignment to employee responsible if exist
- If only description exists, the internal value couldn't be determined in SET_MKT_ORG -> error
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_NOTIFICATION_PROFILE
Protected ABAP_BOOL CHECK_NOTIFICATION_PROFILE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the status profile
- check whether value exists in the customizing
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_NO_R3_INT
Protected ABAP_BOOL CHECK_NO_R3_INT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the no ERP integration flag
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_NO_UPLIFT_IND
Protected ABAP_BOOL CHECK_NO_UPLIFT_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the no uplift indicator
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_OBJECTIVE
Protected ABAP_BOOL CHECK_OBJECTIVE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the objective
- check whether the value exists in the customizing in combination with the (campaign) type
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PDF_DATA
Protected ABAP_BOOL CHECK_PDF_DATA(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the generation of the PDF data
- check whether there were errors during PDF generation
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PLANGROUP
Protected ABAP_BOOL CHECK_PLANGROUP(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the planning profile group
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PLANNING_CUSTOMER
Protected ABAP_BOOL CHECK_PLANNING_CUSTOMER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the planning customer
According to the planning customer type the following checks are performed:
- If guid exists, check existance and if yes
-> for business partner hierarchy nodes
- if the node is defined in the customizing
- If only id exists, the guid couldn't be determined in SET_PLANNING_CUSTOMER -> invalid id
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PLAN_CUSTOM_WITH_TERR
Protected ABAP_BOOL CHECK_PLAN_CUSTOM_WITH_TERR(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the planning customer against the territory
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PPG_STATUS
Protected ABAP_BOOL CHECK_PPG_STATUS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the pricing & promotion guidelines status
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PRINT_ID
Protected ABAP_BOOL CHECK_PRINT_ID(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the printer id
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_PROD_PL
Protected ABAP_BOOL CHECK_PROD_PL(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the product planning basis
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_REF_TYPE
Protected ABAP_BOOL CHECK_REF_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the usage reference type
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_SALES_AREA
Protected ABAP_BOOL CHECK_SALES_AREA(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the sales area in respect to
- assignment of planning customer business partner (optional)
- assignment of employee responsible
- general existance
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_SALES_ORG_RESP
Protected ABAP_BOOL CHECK_SALES_ORG_RESP(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the sales organization against the person responsible
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_SEND_PARTNER
Protected ABAP_BOOL CHECK_SEND_PARTNER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the adress id
- check whether value exists in the customizing
- raise an info message to consider executing the campaign without entering a sender
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_SET_ACTIVE
Protected ABAP_BOOL CHECK_SET_ACTIVE(
| IMPORTING | FLAG | IV_ACTIVE |
| FLAG | IV_IGNORE_PARENT | |
| FLAG | IV_LOG_MESSAGES | |
| FLAG | IV_WITH_CHILDREN |
)
This method checks if setting the active/inactive flag is possible
Returns
Success flag
Parameters
| - | IV_ACTIVE | Active flag to be set |
| - | IV_IGNORE_PARENT | Ignore parent |
| - | IV_LOG_MESSAGES | log messages flag |
| - | IV_WITH_CHILDREN | Propagate active flag tochildren |
| ________________________________________________________________________ |
|---|
CHECK_SHORTCUT
Protected ABAP_BOOL CHECK_SHORTCUT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the campaign shortcut
- right now, nothing to be checked since invalid entries are rejected in SET_SHORTCUT
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_SINGLE_FORM
Protected ABAP_BOOL CHECK_SINGLE_FORM(
| IMPORTING | FIELDNAME | IV_ATTRIBUTE_NAME |
| TDSFNAME | IV_FORMNAME |
)
This method checks the single form id value
- checks if form exists at all
- checks the status of the form
Returns
True, if the check returns errors
Parameters
| - | IV_ATTRIBUTE_NAME | Attributes name |
| - | IV_FORMNAME | Form name |
| ________________________________________________________________________ |
|---|
CHECK_SMARTDAY_FLAG
Protected ABAP_BOOL CHECK_SMARTDAY_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the smartday flag
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_STATUS_PROFILE
Protected ABAP_BOOL CHECK_STATUS_PROFILE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the status profile
- check whether value exists in the customizing
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_TACTICS
Protected ABAP_BOOL CHECK_TACTICS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the tactic
- check whether the value exists in the customizing in combination with the (campaign) type and objective
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_TERRITORY
Protected ABAP_BOOL CHECK_TERRITORY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the territory
- If guid exists, check existance
- If only id exists, the guid couldn't be determined in SET_TERRITORY -> error
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CHECK_VALIDATION_PROF
Protected ABAP_BOOL CHECK_VALIDATION_PROF(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks the validation profile
- check whether value exists in the customizing
Returns
True, if the check returns errors
Parameters
| - | IS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
CONSTRUCTOR
Public CONSTRUCTOR(
| IMPORTING | CL_CRM_MKTGS_ASG_COLLECTION | IR_ASSIGNMENT_COLLECTION |
| ANY | IS_ATTRIBUTES | |
| CRM_MKTGS_CREATE_MODE | IV_CREATE_MODE |
)
This contstructor
- calls the super constructor
- updates the cgpl fields
- set the user profile
- copies some cgpl attributes values which are initialized within the cgpl framework by default
- activates the abap event handler if no version object
- initializes the generic field attributes
Note: The following actions has to be taken in the constructor of the object-specific sub-class
- Call the SET_ATTRBUTES in case of create mode new
- Call the ADJUST_COPY_ATTRIBUTES in case of create mode copy
-
Parameters
| - | IR_ASSIGNMENT_COLLECTION | The parent assignment collection |
| - | IS_ATTRIBUTES | The attributes of the assignment item |
| - | IV_CREATE_MODE | The type of creation: |
| - loading -> cl_crm_mktgs_constants=>create_mode_loading | ||
| - copying -> cl_crm_mktgs_constants=>create_mode_copying | ||
| - new -> cl_crm_mktgs_constants=>create_mode_new |
Exceptions
| - | CX_CRM_MKTGS_CARDINALITY | This exception occurs when a cardinality violation occurs |
| - | CX_CRM_MKTGS_DUPLICATE_KEY | This exception occurs when a duplicate key is passed |
| - | CX_CRM_MKTGS_INVALID_KEY | This exception occurs when an invalid key is passed |
| - | CX_CRM_MKTGS_NO_CHANGE_MODE | This exception occurs when the assignment collection is not changeable |
| ________________________________________________________________________ |
|---|
CONVERT_FIELDS_TO_UPPERCASE
Protected CONVERT_FIELDS_TO_UPPERCASE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method converts the value of upper case fields to upper case
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
COPY
Redefined Public CL_CRM_MKTGS_ASG_ITEM COPY(
| IMPORTING | CL_CRM_MKTGS_ASG_COLLECTION | IR_ASSIGNMENT_COLLECTION |
)
This method copies the documents after the item has been copied
Returns
New copied assignment item
Parameters
| - | IR_ASSIGNMENT_COLLECTION | The assignment collections where the new assignment item has to be copied to |
| ________________________________________________________________________ |
|---|
COPY_DOCUMENTS
Protected COPY_DOCUMENTS(
| IMPORTING | CL_CRM_MKTGS_ASG_COLLECTION | IR_ASSIGNMENT_COLLECTION |
)
This method copies the attachments
Parameters
| - | IR_ASSIGNMENT_COLLECTION | The assignment collections where the new assignment item has to be copied to |
| ________________________________________________________________________ |
|---|
DEFAULT_ATTRIBUTES
Protected DEFAULT_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method contains the default attributes handling
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_CAMPAIGN_TYPE_VALUES
Protected DEFAULT_CAMPAIGN_TYPE_VALUES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults values from the campaign type customizing
The following logic is performed:
- Check whether campaign type has changed at all
- Check if force defaulting is true -> set default values in any case
- Default the status profile if not set yet
- Default the action profile if not set yet
- Default the partner determination procedure if not yet set
- Default the usage/reference type if not set yet
- Default the communication channel if not set yet
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_CURRENCY
Protected DEFAULT_CURRENCY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the currency
The following logic is performed:
- Abort if currency is already filled
- If the marketing organization is filled, try to get the currency from there
- If not and the sales organization is filled, try to get the currency from there
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_DURATION_PERIOD
Protected DEFAULT_DURATION_PERIOD(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the duration of the recurring campaign
The following logic is performed:
- Check if reccuring flag and period is set and defaults the duration to 1 if yes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_EMPLOYEE_RESPONSIBLE
Protected DEFAULT_EMPLOYEE_RESPONSIBLE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the employee responsible from username
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_MKT_ORG
Protected DEFAULT_MKT_ORG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the marketing organization
The following logic is performed:
- Abort if the marketing organization is already set
- If the employee responsible has changed, try to get the it from there
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_NO_R3_INT
Protected DEFAULT_NO_R3_INT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the ERP integration flag from customizing
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_PLANNING_CUSTOMER
Protected DEFAULT_PLANNING_CUSTOMER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the planning customer
The following logic is performed:
- Abort if the planning customer has already been set or the customer type has not been defined
- Read the territory attributes and check whether a business partner resp. business partner hierarchy node is assigned
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_PROD_PL_BASIS
Protected DEFAULT_PROD_PL_BASIS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the product planning basis
The following logic is performed:
- Abort if the product planning basis is already set
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_SALES_AREA
Protected DEFAULT_SALES_AREA(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the sales area
The following logic is performed:
- Abort if the sales organization is already set
- Then, try to get a unique sales area from territory
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DEFAULT_TERRITORY
Protected DEFAULT_TERRITORY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method defaults the territory
The following logic is performed:
- Check if only responsible has been changed, default the territoryis possible
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
DELETE
Redefined Public DELETE(
| IMPORTING | ABAP_BOOL | IV_NO_CHECK |
)
This method does some delete processing
- inform operation buffer for deletion (external id)
- triggers BOR event
Parameters
| - | IV_NO_CHECK | No check should be performend(object deletion) |
Exceptions
| - | CX_CRM_MKTGS_FUNCTION_FAILED | This exception occurs when the delete has failed |
| ________________________________________________________________________ |
|---|
FILL_EXTERNAL_ATTRIBUTES
Redefined Protected FILL_EXTERNAL_ATTRIBUTES( )
This method fills the external (non-db) attributes
| ________________________________________________________________________ |
|---|
FILL_EXT_CUSTOMIZING_VALUES
Protected FILL_EXT_CUSTOMIZING_VALUES(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method fills the external customizing values
- priority
- campaign type
- tactic
- objective
- channel / communication medium
- authorization group
- buying pattern type
- reference / usage type
- plangroup
- status profile
- factory calendar
- currency
- action profile
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
FILL_EXT_DATE_VALUES
Protected FILL_EXT_DATE_VALUES(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method fills the external date fields
- plan dates
- actual dates
- constraint dates
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
FILL_EXT_DOMAIN_VALUES
Protected FILL_EXT_DOMAIN_VALUES(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method fills the external domain values
- constraint type
- product planning basis
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
FILL_EXT_FLAG_VALUES
Protected FILL_EXT_FLAG_VALUES(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method fills the external flag values (sometimes inverting of internal flag values)
- no ERP integration indicator
- exclusive indicator
- active indicator
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
FILL_EXT_INTEGRATION_VALUES
Protected FILL_EXT_INTEGRATION_VALUES(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method fills the integration attributes
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
FILL_EXT_MASTER_DATA_VALUES
Protected FILL_EXT_MASTER_DATA_VALUES(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method fills the external master data values
- marketing organization
- sales area
- territory
- planning customer
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
FILTER_CTYPES_FROM_AUTHORITY
Protected FILTER_CTYPES_FROM_AUTHORITY(
| CHANGING | CRM_MKTPL_PRT_CAMPTYPE | CT_CAMPAIGN_TYPES |
)
This method removes the not authorized campaign types from list
Parameters
| - | CT_CAMPAIGN_TYPES | list of requested campaign types |
| ________________________________________________________________________ |
|---|
FREE
Redefined Public FREE( )
This methods free all memory resources and deactivates the event handler
| ________________________________________________________________________ |
|---|
GENERATE_EXTERNAL_ID
Private GENERATE_EXTERNAL_ID( )
This method
- Generates a new External ID when upon creation (new or copy) only
- If the External ID is blank or
- If the current External ID is:
- Not suitable (currently used by another existing marketing object, more especially a CGPL object)
NOTE: We also need to check the validity of the current External ID because when copying a hierarchy,
CGPL keeps the External ID of the source sub-objects
- Used by a deleted or archived marketing object
| ________________________________________________________________________ |
|---|
GENERATE_PLANNING_CUSTOMER_TG
Protected GENERATE_PLANNING_CUSTOMER_TG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method generates a targetgroup out of the planning customer
The following logic is performed:
- Generate target group
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
GET_ATTRIBUTES
Redefined Public GET_ATTRIBUTES(
| IMPORTING | ABAP_BOOL | IV_GET_EXTERNAL_ATTRIBUTES |
| EXPORTING | ANY | ES_ATTRIBUTES |
)
This method gets the attributes
- returns the current attributes during the creation process
- merges the EEW attributes if not done yet
- calls the standard get_attributes logic from the super class
Parameters
| - | IV_GET_EXTERNAL_ATTRIBUTES | Is set to true,if the external attributes of the assignment items are requested |
| -> performance critical !!! | ||
| - | ES_ATTRIBUTES | Marketing project header attributes |
| ________________________________________________________________________ |
|---|
GET_AUTHORITY_OBJECT
Protected GET_AUTHORITY_OBJECT(
| EXPORTING | XUOBJECT | EV_AUTHORITY_MKTPL_RESP |
| XUOBJECT | EV_AUTHORITY_MKTPL_CPTY | |
| XUOBJECT | EV_AUTHORITY_MKTPL_CLNK | |
| XUOBJECT | EV_AUTHORITY_MKTPL_AUGR |
)
This method returns the authority objects for the specific fields
It generates the authority objects with the object type for the fields
- employee responsible
- authority group
- campaign type
Note: Only the object type of the project object is taken into account since tasks have no own authority
Parameters
| - | EV_AUTHORITY_MKTPL_RESP | Authority object for field 'employee responsible' |
| - | EV_AUTHORITY_MKTPL_CPTY | Authority object for field 'campaign type' |
| - | EV_AUTHORITY_MKTPL_CLNK | Authority object for field 'campaign link' |
| - | EV_AUTHORITY_MKTPL_AUGR | Authority object for field 'authority group' |
| ________________________________________________________________________ |
|---|
GET_BUSINESS_OBJECT
Protected SIBFLPORB GET_BUSINESS_OBJECT( )
This method returns the BOR object information
Returns
BOR info structure
| ________________________________________________________________________ |
|---|
GET_CONVERSION_TIMEZONE
Protected TZNZONE GET_CONVERSION_TIMEZONE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
| ABAP_BOOL | IV_GET_TIMEZONE_CREATED |
)
This method returns the converions timezone information
- returns the timezone created info from attributes if requested
- reads the conversion timezone customizing and returns either thelocal or UTC timezone accordingly
- buffers the conversion timezone for future requests
Returns
Conversion timezone
Parameters
| - | IS_ATTRIBUTES | Current attributes (optional) |
| - | IV_GET_TIMEZONE_CREATED | Timezone created requested |
| ________________________________________________________________________ |
|---|
GET_FIELD_ATTRIBUTES
Redefined Public CRMT_MKTGS_FIELD_ATTRIBUTE GET_FIELD_ATTRIBUTES( )
This method returns the standard field attributes for the header assignment
Returns
Table of field attributes
| ________________________________________________________________________ |
|---|
GET_FIELD_ATTRIBUTES_REF
Protected GET_FIELD_ATTRIBUTES_REF(
| EXPORTING | CRMT_MKTGS_FIELD_ATTRIBUTE | ER_FIELD_ATTRIBUTES |
)
This method returns the reference to the internal field attributes table from the static buffer.
Parameters
| - | ER_FIELD_ATTRIBUTES | Field attributes reference |
| ________________________________________________________________________ |
|---|
GET_MKTPROJECT_TYPE
Protected CRMC_MKTPL_CTYPE GET_MKTPROJECT_TYPE( )
This method returns the marketing project type information from customizing
- reads customizing
- buffers the info for future requests
Returns
Marketing project type info
| ________________________________________________________________________ |
|---|
GET_RESTRICTED_CAMPAIGN_TYPES
Protected CRMT_MKTPL_CTYPT_TAB GET_RESTRICTED_CAMPAIGN_TYPES( )
This method returns the restricted campaign types from type mapping customizing
Returns
List of restricted campaign types
| ________________________________________________________________________ |
|---|
GET_WORST_MESSAGE_TYPE
Protected SYMSGTY GET_WORST_MESSAGE_TYPE(
| IMPORTING | SYMSGTY | IV_CURRENT_MSG_TYPE |
| SYMSGTY | IV_NEW_MSG_TYPE |
)
This method returns the worst message type
- evaluates whether the current or the new message type is worse
Returns
Worst message type
Parameters
| - | IV_CURRENT_MSG_TYPE | Current message type |
| - | IV_NEW_MSG_TYPE | New message type |
| ________________________________________________________________________ |
|---|
INHERIT_INACTIVE_FLAG
Protected INHERIT_INACTIVE_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method inherits the inative flag from parent
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
INITIALIZE_ATTRIBUTES
Protected INITIALIZE_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method initializes the basic attributes
- object class
- original system
- timezone created
- shortcut
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
INITIALIZE_FIELD_ATTRIBUTES
Protected ABAP_BOOL INITIALIZE_FIELD_ATTRIBUTES()
This method initializes the generic field attributes
It performs the following logic
- Set the planning profile group to read-only for tasks
- Set some fields to changeable as long as they are not saved yet
Note: This method is to beredefined for each business object in order to adjust the field attributes to the business object needs.
The generic field attribute table is already setup at this point in time and should be used to adjust the field attributes accordingly.
Returns
Flag, wether initialize is needed or not
| ________________________________________________________________________ |
|---|
IS_ATTRIBUTE_SUPPORTED
Protected ABAP_BOOL IS_ATTRIBUTE_SUPPORTED(
| IMPORTING | FIELDNAME | IV_ATTRIBUTE_NAME |
)
This method checks if the attribute is supported
The following logic is performed:
- Check if the field is changeable in the static field attributes
Returns
True, if supported
Parameters
| - | IV_ATTRIBUTE_NAME | Attribute name |
| ________________________________________________________________________ |
|---|
IS_CAMPAIGN_TYPE_CHANGEABLE
Protected ABAP_BOOL IS_CAMPAIGN_TYPE_CHANGEABLE()
This method checks whether the campaign type is changeable
The following logic is performed:
- Check whether the object has already been saved
- Check whether the campaign type is flagged as not changeable after save in the customizing
Returns
True, if the id is changeable
| ________________________________________________________________________ |
|---|
IS_COUPON_CODE
Private IS_COUPON_CODE(
| IMPORTING | CGPL_EXTID | IV_EXTERNAL_ID |
| EXPORTING | CGPL_EXTID | EV_PROJECT_ID |
| CRMT_BOOLEAN | EV_IS_COUPON_CODE |
)
This method checks if the current external id is already used as coupon code
Parameters
| - | IV_EXTERNAL_ID | External ID to be checked |
| - | EV_PROJECT_ID | External ID of marketing project where the coupon code is already used |
| - | EV_IS_COUPON_CODE | Coupon code flag |
| ________________________________________________________________________ |
|---|
IS_CURRENCY_CHANGEABLE
Protected ABAP_BOOL IS_CURRENCY_CHANGEABLE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES |
)
This method checks whether the currency is changeable
- gets the planning profile group and currency
- prevents changes if both values are filled
- exception is if currency is invalid
Returns
Changeable flag
Parameters
| - | IS_ATTRIBUTES | Current attribugtes |
| ________________________________________________________________________ |
|---|
IS_EXTERNAL_ID_CHANGEABLE
Protected ABAP_BOOL IS_EXTERNAL_ID_CHANGEABLE(
| IMPORTING | ABAP_BOOL | IV_SHOW_MESSAGES |
)
This method checks whether the external id is changeable
The following logic is performed:
- Reject change if the according business transaction cannot be executed
- Reject change if the object has already been transferred to ERP or APO
Returns
True, if the id is changeable
Parameters
| - | IV_SHOW_MESSAGES | Raise message flag |
| ________________________________________________________________________ |
|---|
IS_NO_R3_INT_CHANGEABLE
Protected ABAP_BOOL IS_NO_R3_INT_CHANGEABLE( )
This method checks if the no ERP/R3 integration flag is changeable
The following logic is performed:
- The flag is only changeable if not saved yet
Returns
True, if the flag is changeable
| ________________________________________________________________________ |
|---|
KEEP_DELETED_EXTID
Protected KEEP_DELETED_EXTID(
| IMPORTING | CHAR1 | IV_OPERATION |
)
This method updates the operation buffer
- mark the current external id as deleted
Parameters
| - | IV_OPERATION | Operation type |
| ________________________________________________________________________ |
|---|
ON_EEW_ATTRIBUTES_CHANGED
Protected ON_EEW_ATTRIBUTES_CHANGED( )
This method listens to changes of EEW fields
The following logic is performed:
- Update the current attributes if changes occur
| ________________________________________________________________________ |
|---|
ON_MOVED
Protected ON_MOVED( )
This method performs actions after a move
| ________________________________________________________________________ |
|---|
ON_OBJECT_CHANGED
Protected ON_OBJECT_CHANGED( )
This method catches all changes which are directly pass to the cgpl project/task
- get the new and old attributes
- perform the standard setting of cgpl attributes
| ________________________________________________________________________ |
|---|
ON_PLANNING_ACCOUNT_CHANGED
Private ON_PLANNING_ACCOUNT_CHANGED( )
This method listens to planning account changes
| ________________________________________________________________________ |
|---|
ON_PROJECT_CHANGED
Private ON_PROJECT_CHANGED( )
This method catches all changes of the cgpl project
- delegate the call to a common handler for projects & tasks
| ________________________________________________________________________ |
|---|
ON_PROJECT_PLAN_DATES_CHANGED
Private ON_PROJECT_PLAN_DATES_CHANGED(
| IMPORTING | EX_NODE |
)
This method catches all changes of the cgpl project
- delegate the call to a common handler for projects & tasks
Parameters
| - | EX_NODE | CGPL hierarchy node |
| ________________________________________________________________________ |
|---|
ON_TASK_CHANGED
Private ON_TASK_CHANGED( )
This method catches all changes of the cgpl project
- delegate the call to a common handler for projects & tasks
| ________________________________________________________________________ |
|---|
ON_TASK_PLAN_DATES_CHANGED
Private ON_TASK_PLAN_DATES_CHANGED(
| IMPORTING | EX_NODE |
)
This method catches all changes of the cgpl project
- delegate the call to a common handler for projects & tasks
Parameters
| - | EX_NODE | CGPL hierarchy node |
| ________________________________________________________________________ |
|---|
REFRESH_INTEGRATION_STATUS
Protected REFRESH_INTEGRATION_STATUS( )
This method refreshs the integration status
| ________________________________________________________________________ |
|---|
REGISTER_PARTNER_DET_TRIGGER
Protected REGISTER_PARTNER_DET_TRIGGER(
| IMPORTING | CRMT_BOOLEAN | IV_SUPPRESS_PARDET |
| CHAR1 | IV_TRIGGER_TIME |
)
This method triggers the partner determination
Parameters
| - | IV_SUPPRESS_PARDET | Suppress partner determination |
| - | IV_TRIGGER_TIME | Reason for trigger |
| ________________________________________________________________________ |
|---|
RESET_AUTH_CHECK_BUFFER
Protected RESET_AUTH_CHECK_BUFFER( )
This method resets the authority check buffer
| ________________________________________________________________________ |
|---|
RESET_CTYPE_DEFAULTING_SEQ
Protected RESET_CTYPE_DEFAULTING_SEQ(
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method resets the default attributes for type mapping
Parameters
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
RESET_INTEGRATION_ATTRIBUTES
Protected RESET_INTEGRATION_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method reset all integration attributes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
RESET_KEY_ATTRIBUTES
Protected RESET_KEY_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method reset all key attributes which are not changeable at all
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
RESET_READONLY_ATTRIBUTES
Protected RESET_READONLY_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| ABAP_BOOL | IV_SHOW_MESSAGES | |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method reset all attributes which are not changeable to the oldvalue
The following logic is performed:
- Check for changes on the read-only values
- Reset to the old value if needed
- Throw a message for each not allowed change (if requested
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | IV_SHOW_MESSAGES | If true, messages will begenerated for each error |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ACCOUNT_PLAN
Protected SET_ACCOUNT_PLAN(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the account plan reference
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ACTION_PROFILE
Protected SET_ACTION_PROFILE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the action profile
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ACTIVE
Protected ABAP_BOOL SET_ACTIVE(
| IMPORTING | FLAG | IV_ACTIVE |
| FLAG | IV_LOG_MESSAGES | |
| FLAG | IV_WITH_CHILDREN |
)
This method sets the marketing project active/inactive
Returns
Success flag
Parameters
| - | IV_ACTIVE | Active flag to be set |
| - | IV_LOG_MESSAGES | log messages flag |
| - | IV_WITH_CHILDREN | Propagate active flag tochildren |
| ________________________________________________________________________ |
|---|
SET_ADI_FLAG
Protected SET_ADI_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the abnormal demand indicator (ADI) flag
The following logic is performed:
- Point out that the change has no influence to already generated sales orders once the markeing object is released
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ADRESS_ID
Protected SET_ADRESS_ID(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the adress id
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES
Redefined Public SET_ATTRIBUTES(
| IMPORTING | ANY | IS_ATTRIBUTES |
)
This method sets the new header attributes of the marketing project
The following logic is performed:
- Set not changeable fields
- Cleanup not supported fields
- Convert field values to uppercase if needed
Parameters
| - | IS_ATTRIBUTES | New attributes |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES_AFTER
Protected SET_ATTRIBUTES_AFTER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method prepares the attributes after they are set
The following logic is performed:
- Default some fields
- Triggers BOR event
- Resets the authority check buffer if necessary
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES_AFTER_BADI
Protected SET_ATTRIBUTES_AFTER_BADI(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_NEW |
| CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
)
This method triggers the SET_ATTRIBUTES_AFTER BAdI
Parameters
| - | IS_ATTRIBUTES_NEW | New attributes |
| - | IS_ATTRIBUTES_OLD | Old attributes |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES_AFTER_TRIGGER
Protected SET_ATTRIBUTES_AFTER_TRIGGER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_NEW |
| CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
)
This method triggers actions once the attributes have been set
The following logic is performed:
- Synchronize Employee Responsible
- Triggers partner determination
- Triggers KFP component
Parameters
| - | IS_ATTRIBUTES_NEW | New attributes |
| - | IS_ATTRIBUTES_OLD | Old attributes |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES_BEFORE
Protected SET_ATTRIBUTES_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method prepares the attributes before they are set
The following logic is performed:
- Set the read-only attributes to the old value -> no change allowed
- Initialize attributes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES_BEFORE_BADI
Protected SET_ATTRIBUTES_BEFORE_BADI(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method call the SET_ATTRIBUTES_BEFORE BAdI
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_AUTH_GROUP
Protected SET_AUTH_GROUP(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the authority group
The following logic is performed:
- Check if the new authority group is allowed regarding authoritization
- If yes, clear old external attribute in order to get the new one
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_BPAT_TYPE
Protected SET_BPAT_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the buying pattern type
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_BP_CORR_LANG_IND
Protected SET_BP_CORR_LANG_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the send partner
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CAMPAIGN_LINK
Protected SET_CAMPAIGN_LINK(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the campaign link
The following logic is performed:
- Check if the new campaign link is allowed regarding authoritization
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CAMPAIGN_TYPE
Protected SET_CAMPAIGN_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the campaign type (marketing project type)
The following logic is performed:
- Check authority for new campaign type
- Get the campaign type customizing
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_ATTRIBUTES
Protected SET_CGPL_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the CGPL attributes
The following logic is performed:
- Prepare CGPL attributs first
- Set cgpl attributes to cgpl project/task
- Do some post processing
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_ATTRIBUTES_AFTER
Protected SET_CGPL_ATTRIBUTES_AFTER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method does post processing after the CGPL attributes have beenset
The following logic is performed:
- Set external id buffers
- Trigger date dependent changes
- Set execution status if actual dates or completion has changed accordingly
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_ATTRIBUTES_BEFORE
Protected SET_CGPL_ATTRIBUTES_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method prepares the CGPL attributes before they are set
The following logic is performed:
- Default the constraint type
- Prepare cgpl dates
- Prepare cgpl external id
- Prepare the planning profile group
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_BW_IDENTIFIER
Protected SET_CGPL_BW_IDENTIFIER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method allows only changes to the BI identifier if not saved yet
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_COMPLETION_BEFORE
Protected SET_CGPL_COMPLETION_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the completion rate
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_DATES_AFTER
Protected SET_CGPL_DATES_AFTER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method triggers the CGPL date dependent changes
- no generic implementation right now
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_DATES_BEFORE
Protected SET_CGPL_DATES_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the CGPL dates
The following logic is performed:
- Apply changes to the dates fields according the following order
-> internal timestamp fields
-> external date/time fields
-> external timestamp io fields
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_EXTERNAL_ID_AFTER
Protected SET_CGPL_EXTERNAL_ID_AFTER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method does the after processing once the external id is set
The following logic is performed:
- If the external id has changed update the operation buffer
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_EXTERNAL_ID_BEFORE
Protected SET_CGPL_EXTERNAL_ID_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method does the preparation before the external id is set
The following logic is performed:
- Check if external id is changeable
- Reset 'updated in BW' flag if external id has been changed
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_HIERARCHY_SORT_BEFORE
Protected SET_CGPL_HIERARCHY_SORT_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method fills the pseudo cgpl hierarchy sort field TOTAL_FLOAT
with the value of the external attribute HIERARCHY_SORT
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_NOT_SUPP_ATTR_BEFORE
Protected SET_CGPL_NOT_SUPP_ATTR_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method initializes the not supported CGPL attributes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_PLANGROUP_BEFORE
Protected SET_CGPL_PLANGROUP_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the planning profile group
The following logic is performed:
- Prevent the change if no BI is available
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CGPL_PRIORITY_BEFORE
Protected SET_CGPL_PRIORITY_BEFORE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the priority
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CHANNEL
Protected SET_CHANNEL(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the channel / communiation medium
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CHM_RELEVANT
Protected SET_CHM_RELEVANT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the channel management relevant (open to partner) flag
The following logic is performed:
- The attribute can only be set for projects, not for tasks
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CIC_SCRIPT
Protected SET_CIC_SCRIPT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the CIC script
The following logic is performed:
- If the script guid has been changed, clear the external tree id
- If the tree id has been changed, try to get the script guid
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_CURRENCY
Protected SET_CURRENCY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the currency
The following logic is performed:
- reset the currency if the currency is not changeable
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_DEAL
Protected SET_DEAL(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the deal reference
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_DETERM_PROC
Protected SET_DETERM_PROC(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the partner determination procedure
The following logic is performed:
- trigger partner determination if procedure has changed
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_EEW_ATTRIBUTES
Protected SET_EEW_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method delegates the changes of the EEW fields to the EEW assignment
The following logic is performed:
- Check if changes exist
- Delegate the changes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_EMPLOYEE_RESPONSIBLE
Protected SET_EMPLOYEE_RESPONSIBLE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the employee responsible
The following logic is performed:
- Check if the employee responsible guid has changed, clear the responsible name (id) and text (description)
- Check ff the employee responsible name (id) has changed, try to get the corresponding guid & clear the text (description) field
- Finally check authority for new employee responsible id
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ENROLLMENT_REQ
Protected SET_ENROLLMENT_REQ(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the enrollment requested indicator
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_EVENT_HANDLER
Private SET_EVENT_HANDLER(
| IMPORTING | ABAP_BOOL | IV_ACTIVATION |
)
This method activates/deactivates the abap event handler
Parameters
| - | IV_ACTIVATION | Activation flag (default true) |
| ________________________________________________________________________ |
|---|
SET_EVENT_TRIGGERED_FLAG
Protected SET_EVENT_TRIGGERED_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the event triggered campaign flag
The following logic is performed:
- Check if campaign is released and prevent change if yes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_EXCL_IND
Protected SET_EXCL_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the exclusive indicator
The following logic is performed:
- Check if internal exclusive indicator flag has changed -> clear description
- Check if external description has changed -> set internal flag accordingly
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_EXECUTION_LANG
Protected SET_EXECUTION_LANG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the send partner
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_EXECUTION_STATUS
Protected SET_EXECUTION_STATUS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the execution status
The following logic is performed:
- Check if the actual dates or completion changes are relevant for re-/setting the execution status
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_FORMS
Protected SET_FORMS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the form fields for email, letter, fax, sms, file export
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_INDIRECT_IND
Protected SET_INDIRECT_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the indirect indicator
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_MKT_ORG
Protected SET_MKT_ORG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the marketing organization
The following logic is performed:
- Check if the marketing organization has changed, clear the external description
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_NOTIFICATION_PROFILE
Protected SET_NOTIFICATION_PROFILE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the notification profile
The following logic is performed:
- Check if notification profile exists and if not reset the old value and throw a message
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_NO_R3_INT
Protected SET_NO_R3_INT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the no ERP/R3 integration flag
The following logic is performed:
- Check if internal no r3 integration flag has changed -> invert external psp creation flag accordingly
- Check if external psp creation flag has changed -> invert internal no r3 integration flag accordingly
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_NO_R3_INT_FROM_PARENT
Protected SET_NO_R3_INT_FROM_PARENT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the no ERP/R3 integration flag according to the parent
The following logic is performed:
- This flag can only be true if the parent has also no ERP integration
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_NO_UPLIFT_IND
Protected SET_NO_UPLIFT_IND(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the no uplift indicator
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_OBJECTIVE
Protected SET_OBJECTIVE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the objective
The following logic is performed:
- Check if objective exists and if not
-> and the campaign type has also been changed -> blank out objective
-> otherwise reset the old value and throw a message
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_OBJECT_CLASS
Protected SET_OBJECT_CLASS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the object class
The following logic is performed:
- Set the object class if not set yet
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_ORIG_SYSTEM
Protected SET_ORIG_SYSTEM(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the original system id
- it rejects the changes if there exists already a value on the database
- it sets the value to CRM if it is initial
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_PLANNING_CUSTOMER
Protected SET_PLANNING_CUSTOMER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the planning customer
The following logic is performed:
- If any planningcustomer guid has has changed, clear the externalcustomer attributes and ensure only one guid for planning customer isset
- If not check if any external customer field has changed and try to determine the guid
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_PPG_STATUS
Protected SET_PPG_STATUS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the pricing & promotion guidelines status
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_PRINT_ID
Protected SET_PRINT_ID(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the printer id
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_PROD_PL_BASIS
Protected SET_PROD_PL_BASIS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the product planning basis
The following logic is performed:
- Check if there exists some product dimension assignments which donot fit to the new product planning basis
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_RATES_ORIGIN_SYSTEM
Protected SET_RATES_ORIGIN_SYSTEM(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the origin system of the rates
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_REF_TYPE
Protected SET_REF_TYPE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the reference / usage type
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_RESPONSE_FLAG
Protected SET_RESPONSE_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the response flag
The following logic is performed:
- The attribute is usually cleared since it is not supported by default (has to be redefined)
- Additionally, the cpt_type field is cleared
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_SALES_AREA
Protected SET_SALES_AREA(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the sales area
The following logic is performed:
- If any planning customerguid has has changed, clear the externalcustomer attributes and ensure only one guid for planning customer isset
- If not check if any external customer field has changed and try to determine the guid
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_SALES_ORG_RESP
Protected SET_SALES_ORG_RESP(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the sales organisation data from responsible
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_SEND_PARTNER
Protected SET_SEND_PARTNER(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the send partner
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_SHORTCUT
Protected SET_SHORTCUT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets a new shortcut
The following logic is performed:
- Check if shortcut is valid
- Check if shortcut is unique
- Deconnect the old shortcut if needed
- Connect the new shortcut if needed
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_SMARTDAY_FLAG
Protected SET_SMARTDAY_FLAG(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the smartday flag
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_STATUS_PROFILE
Protected SET_STATUS_PROFILE(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the status profile
The following logic is performed:
- Check authority for new campaign type
- Get the campaign type customizing
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_TACTICS
Protected SET_TACTICS(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the tactic
The following logic is performed:
- Check if tactic exists and if not
-> and the campaign type or objective have also been changed -> blank out tactic
-> otherwise reset the old value and throw a message
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_TERRITORY
Protected SET_TERRITORY(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the territory
The following logic is performed:
- Check if the territory path guid has changed, clear the territorypath id, id and description
- Check if the territory path id has changed, try to get the corresponding path guid and clear the territory id and description
- Check if the territory id has changed, try to get the corresponding path guid and path id
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_TIMEZONE_CREATED
Protected SET_TIMEZONE_CREATED(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the timezone created
- it rejects the changes if there exists already a value on the database
- it sets the value according to the timezone settings (either local timezone or fix timezone UTC)
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SET_VALIDATION_PROF
Protected SET_VALIDATION_PROF(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method sets the validation proifle
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
SYNCHRONIZE_EMPLOYEE_RESP
Protected SYNCHRONIZE_EMPLOYEE_RESP( )
This method synchronizes the Employee Responsible from the header with
the corresponding partner function on the partner assignment block.
The following logic is performed:
- Synchronize Employee Responsible
| ________________________________________________________________________ |
|---|
TRANSFER_BAPI_MESSAGES_TO_LOG
Protected SYMSGTY TRANSFER_BAPI_MESSAGES_TO_LOG(
| IMPORTING | CRM_MKTGS_MESSAGE_LOG_TYPE | IV_LOG_TYPE |
| FIELDNAME | IV_ATTRIBUTE_NAME | |
| BAPIRETTAB | IT_BAPI_MESSAGES |
)
This method transfer BAPI messages to the message log format
Returns
Worst message type
Parameters
| - | IV_LOG_TYPE | log type to be set |
| - | IV_ATTRIBUTE_NAME | Attribute name for message |
| - | IT_BAPI_MESSAGES | list of BAPI messages |
| ________________________________________________________________________ |
|---|
TRANSFER_TZ_MESSAGES_TO_LOG
Protected SYMSGTY TRANSFER_TZ_MESSAGES_TO_LOG(
| IMPORTING | CRM_MKTGS_MESSAGE_LOG_TYPE | IV_LOG_TYPE |
| FIELDNAME | IV_ATTRIBUTE_NAME | |
| TZT_MESSAGE | IT_TZ_MESSAGES |
)
This method transfer timezone messages to the message log format
Returns
Worst message type
Parameters
| - | IV_LOG_TYPE | log type to be set |
| - | IV_ATTRIBUTE_NAME | Attribute name for message |
| - | IT_TZ_MESSAGES | list of timezone messages |
| ________________________________________________________________________ |
|---|
TRIGGER_BOR_EVENT
Protected TRIGGER_BOR_EVENT(
| IMPORTING | SWETYPECOU-EVENT | IV_EVENT |
)
This method triggers the requested BOR event
Parameters
| - | IV_EVENT | Event to be triggered |
| ________________________________________________________________________ |
|---|
TRIGGER_KFP_COMPONENT
Protected TRIGGER_KFP_COMPONENT(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_NEW |
)
This method informs the KFP component about attribute changes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | IS_ATTRIBUTES_NEW | New attributes |
| ________________________________________________________________________ |
|---|
TRIGGER_PARTNER_DETERMINATION
Protected TRIGGER_PARTNER_DETERMINATION( )
This method triggers the partner determination
- it reads the partner determination queue and calls the partner assignment accordingly
| ________________________________________________________________________ |
|---|
UPDATE_CGPL_ATTRIBUTES
Protected UPDATE_CGPL_ATTRIBUTES(
| IMPORTING | ABAP_BOOL | IV_UPDATE_DB_ATTRIBUTES |
| ABAP_BOOL | IV_WITH_OLD_ATTRIBUTES | |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method updates the cgpl attributes of the header attribute structure
- get the cgpl reference
- get the latest cgpl attributes
- update them in the attribute structure
Parameters
| - | IV_UPDATE_DB_ATTRIBUTES | Update DB attributes flag |
| - | IV_WITH_OLD_ATTRIBUTES | Update old attributes flag |
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
UPDATE_CGPL_SAVE_ATTRIBUTES
Protected UPDATE_CGPL_SAVE_ATTRIBUTES( )
This method updates the cgpl attributes right after the save
| ________________________________________________________________________ |
|---|
UPDATE_EEW_ATTRIBUTES
Protected UPDATE_EEW_ATTRIBUTES(
| IMPORTING | ABAP_BOOL | IV_INITIAL_UPDATE |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES |
)
This method updates the EEW attributes of the header attribute structure
- get the EEW cgpl assginemtn
- update them in the attribute structure
- update db attributes if requested
Parameters
| - | IV_INITIAL_UPDATE | Flag, if attributes should initially be updated |
| - | CS_ATTRIBUTES | Current attributes |
| ________________________________________________________________________ |
|---|
UPDATE_EXTERNAL_ATTRIBUTES
Protected UPDATE_EXTERNAL_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | IS_ATTRIBUTES_OLD |
| CHANGING | CRMS_MKTPL_OL_ATTRIBUTES_ALL | CS_ATTRIBUTES_NEW |
)
This method updates the external attributes
Parameters
| - | IS_ATTRIBUTES_OLD | Old attributes |
| - | CS_ATTRIBUTES_NEW | New attributes |
BAL_S_LOG - Application Log: Log header data CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 252528 Date: 20120526 Time: 113826 triton ( 2282 ms )






