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 R3up  
This documentation is copyright by SAP AG.

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

General Class Description

This class is the generic header assignment
It is responsible for managing the header attributes

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_HEADER_ITEM
Instantiation:Public

Superclass

CL_CRM_MKTPL_ASG_ITEM

Implemented Interfaces

IF_CRM_MKTGS_EVENT_LISTENER

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(

IMPORTINGANY 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_OLDOld attributes
- IS_ATTRIBUTES_NEWNew attributes
- IR_OBJECT_ITEMThe parent object item
- IR_ASG_ITEMThe assignment item (optional)

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_ACTIVITY_EXECUTED

Public ABAP_BOOLIF_CRM_MKTGS_EVENT_LISTENER~BEFORE_ACTIVITY_EXECUTED(

IMPORTINGJ_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_ACTIVITYBusiness activity to be executed
- IR_OBJECT_ITEMThe parent object item

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_DELETE

Public IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_DELETE(

IMPORTINGCL_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_ITEMThe parent object item
- IR_ASG_ITEMThe assignment item (optional)

Exceptions

- CX_CRM_MKTGS_OBJECT_LAYERThis 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(

IMPORTINGJ_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_STATUSUser status to be set
- IV_SET_INACTIVETrue if status should be reset
- IR_OBJECT_ITEMThe parent object item

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~BUSINESS_ACTIVITY_EXECUTED

Public IF_CRM_MKTGS_EVENT_LISTENER~BUSINESS_ACTIVITY_EXECUTED(

IMPORTINGCL_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_ITEMMarketing Project
- IV_ACTIVITYBusiness 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(

IMPORTINGCRM_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_MODEMode of creation
- IR_OBJECT_ITEMThe parent object item
- IR_ASG_ITEMThe assignment item (optional)

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~ITEM_DELETED

Public IF_CRM_MKTGS_EVENT_LISTENER~ITEM_DELETED(

IMPORTINGCL_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_ITEMThe parent object item
- IR_ASG_ITEMThe assignment item (optional)

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~USER_STATUS_CHANGED

Public IF_CRM_MKTGS_EVENT_LISTENER~USER_STATUS_CHANGED(

IMPORTINGJ_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_STATUSUser status which has been set
- IV_SET_INACTIVEIndicator which is true ifthe status has been set incative
- IR_OBJECT_ITEMMarketing Project

________________________________________________________________________

ADJUST_CAMPAIGN_TYPE

Protected ADJUST_CAMPAIGN_TYPE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CRM_MKTPL_SRCOBJMAPTYPE IV_SOURCE_TYPE
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method adjusts the campaign type according to the maintained mapping

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- IV_SOURCE_TYPEType of the source marketing project
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

ADJUST_COPY_ATTRIBUTES

Protected ADJUST_COPY_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_SRC
CHANGINGCRMS_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_SRCCopy source attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

ADJUST_TEMPLATE_FLAG

Protected ADJUST_TEMPLATE_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method initializes the basic attributes
- object class
- original system
- timezone created
- shortcut

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

CHECK

Redefined Public ABAP_BOOL CHECK(

IMPORTINGCRM_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_MODESets 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(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the account plan reference

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_ACTION_PROFILE

Protected ABAP_BOOL CHECK_ACTION_PROFILE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_ACTIVE

Protected ABAP_BOOL CHECK_ACTIVE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_ADI_FLAG

Protected ABAP_BOOL CHECK_ADI_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the abnormal demand indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_ADRESS_ID

Protected ABAP_BOOL CHECK_ADRESS_ID(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_APO_INTEGRATION

Protected ABAP_BOOL CHECK_APO_INTEGRATION(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_AUTHORITY_ASSIGNMENT

Protected ABAP_BOOL CHECK_AUTHORITY_ASSIGNMENT(

IMPORTINGACTIV_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_ACTIVITYActivity to be checked
- IV_ASSIGNMENT_TYPEAssignment type
- IV_MSG_TYPEMessage type of the messages to be raised (no messages if empty)

________________________________________________________________________

CHECK_AUTHORITY_AUTH_GROUP

Protected ABAP_BOOL CHECK_AUTHORITY_AUTH_GROUP(

IMPORTINGACTIV_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_ACTIVITYActivity to be checked
- IV_AUTHORITY_GROUPAssignment type
- IV_SHOW_MESSAGEFlag, if an error message should be raised

________________________________________________________________________

CHECK_AUTHORITY_CAMPAIGN_LINK

Protected ABAP_BOOL CHECK_AUTHORITY_CAMPAIGN_LINK(

IMPORTINGACTIV_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_ACTIVITYActivity to be checked
- IV_CAMPAIGN_LINKCampaign link
- IV_SHOW_MESSAGEFlag, if an error message should be raised

________________________________________________________________________

CHECK_AUTHORITY_CAMPAIGN_TYPE

Protected ABAP_BOOL CHECK_AUTHORITY_CAMPAIGN_TYPE(

IMPORTINGACTIV_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_ACTIVITYActivity to be checked
- IV_CAMPAIGN_TYPECampaign type
- IV_SHOW_MESSAGEFlag, if an error message should be raised

________________________________________________________________________

CHECK_AUTHORITY_MAIN

Protected ABAP_BOOL CHECK_AUTHORITY_MAIN(

IMPORTINGACTIV_AUTH IV_ACTIVITY

)

This method checks the main authority object of the marketing project

Returns

True, if authority is ok

Parameters

- IV_ACTIVITYActivity to be checked

________________________________________________________________________

CHECK_AUTHORITY_OBJECT

Protected ABAP_BOOL CHECK_AUTHORITY_OBJECT(

IMPORTINGACTIV_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_ACTIVITYActivity to be checked

________________________________________________________________________

CHECK_AUTHORITY_RESPONSIBLE

Protected ABAP_BOOL CHECK_AUTHORITY_RESPONSIBLE(

IMPORTINGACTIV_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_ACTIVITYActivity to be checked
- IV_RESPONSIBLE_IDPerson responsible id
- IV_SHOW_MESSAGEFlag, if an error message should be raised

________________________________________________________________________

CHECK_AUTH_GROUP

Protected ABAP_BOOL CHECK_AUTH_GROUP(

IMPORTINGCRMS_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_ATTRIBUTESCurrent 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(

IMPORTINGABAP_BOOL IV_SHOW_MESSAGES

)

This method performs the check before save

Returns

True, if check has failed

Parameters

- IV_SHOW_MESSAGESFlag, if message should be raised

________________________________________________________________________

CHECK_BPAT_TYPE

Protected ABAP_BOOL CHECK_BPAT_TYPE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the buying pattern type

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_BP_CORR_LANG_IND

Protected ABAP_BOOL CHECK_BP_CORR_LANG_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the enrollment requested indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CAMPAIGN_LINK

Protected ABAP_BOOL CHECK_CAMPAIGN_LINK(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CAMPAIGN_TYPE

Protected ABAP_BOOL CHECK_CAMPAIGN_TYPE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CA_ATTRIBUTES

Protected ABAP_BOOL CHECK_CA_ATTRIBUTES(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes
- IV_MSG_TYPEType of the messages to be raised

________________________________________________________________________

CHECK_CGPL_ATTRIBUTES

Protected ABAP_BOOL CHECK_CGPL_ATTRIBUTES(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_BW_IDENTIFIER

Protected ABAP_BOOL CHECK_CGPL_BW_IDENTIFIER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the CGPL BI identifier

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_COMPLETION

Protected ABAP_BOOL CHECK_CGPL_COMPLETION(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_DATES

Protected ABAP_BOOL CHECK_CGPL_DATES(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_EXTERNAL_ID

Protected ABAP_BOOL CHECK_CGPL_EXTERNAL_ID(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_HIERARCHY_SORT

Protected ABAP_BOOL CHECK_CGPL_HIERARCHY_SORT(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_NOT_SUPPORTED_ATTR

Protected ABAP_BOOL CHECK_CGPL_NOT_SUPPORTED_ATTR(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CGPL_PRIORITY

Protected ABAP_BOOL CHECK_CGPL_PRIORITY(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the CGPL priority

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CHANNEL

Protected ABAP_BOOL CHECK_CHANNEL(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CHM_RELEVANT

Protected ABAP_BOOL CHECK_CHM_RELEVANT(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CIC_SCRIPT

Protected ABAP_BOOL CHECK_CIC_SCRIPT(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CURRENCY

Protected ABAP_BOOL CHECK_CURRENCY(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_DEAL

Protected ABAP_BOOL CHECK_DEAL(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the deal reference

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_EMPLOYEE_RESPONSIBLE

Protected ABAP_BOOL CHECK_EMPLOYEE_RESPONSIBLE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_ENROLLMENT_REQ

Protected ABAP_BOOL CHECK_ENROLLMENT_REQ(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the enrollment requested indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_ERP_INTEGRATION

Protected ABAP_BOOL CHECK_ERP_INTEGRATION(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_EXCL_IND

Protected ABAP_BOOL CHECK_EXCL_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the exclude indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_EXECUTION_LANG

Protected ABAP_BOOL CHECK_EXECUTION_LANG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the enrollment requested indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_FORMS

Protected ABAP_BOOL CHECK_FORMS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks all assigned forms

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_INDIRECT_IND

Protected ABAP_BOOL CHECK_INDIRECT_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the indirect indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_MKT_ORG

Protected ABAP_BOOL CHECK_MKT_ORG(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_NOTIFICATION_PROFILE

Protected ABAP_BOOL CHECK_NOTIFICATION_PROFILE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_NO_R3_INT

Protected ABAP_BOOL CHECK_NO_R3_INT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the no ERP integration flag

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_NO_UPLIFT_IND

Protected ABAP_BOOL CHECK_NO_UPLIFT_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the no uplift indicator

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_OBJECTIVE

Protected ABAP_BOOL CHECK_OBJECTIVE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PDF_DATA

Protected ABAP_BOOL CHECK_PDF_DATA(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PLANGROUP

Protected ABAP_BOOL CHECK_PLANGROUP(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the planning profile group

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PLANNING_CUSTOMER

Protected ABAP_BOOL CHECK_PLANNING_CUSTOMER(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PLAN_CUSTOM_WITH_TERR

Protected ABAP_BOOL CHECK_PLAN_CUSTOM_WITH_TERR(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the planning customer against the territory

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PPG_STATUS

Protected ABAP_BOOL CHECK_PPG_STATUS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the pricing & promotion guidelines status

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PRINT_ID

Protected ABAP_BOOL CHECK_PRINT_ID(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the printer id

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_PROD_PL

Protected ABAP_BOOL CHECK_PROD_PL(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the product planning basis

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_REF_TYPE

Protected ABAP_BOOL CHECK_REF_TYPE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the usage reference type

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_SALES_AREA

Protected ABAP_BOOL CHECK_SALES_AREA(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_SALES_ORG_RESP

Protected ABAP_BOOL CHECK_SALES_ORG_RESP(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_SEND_PARTNER

Protected ABAP_BOOL CHECK_SEND_PARTNER(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_SET_ACTIVE

Protected ABAP_BOOL CHECK_SET_ACTIVE(

IMPORTINGFLAG 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_ACTIVEActive flag to be set
- IV_IGNORE_PARENTIgnore parent
- IV_LOG_MESSAGESlog messages flag
- IV_WITH_CHILDRENPropagate active flag tochildren

________________________________________________________________________

CHECK_SHORTCUT

Protected ABAP_BOOL CHECK_SHORTCUT(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_SINGLE_FORM

Protected ABAP_BOOL CHECK_SINGLE_FORM(

IMPORTINGFIELDNAME 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_NAMEAttributes name
- IV_FORMNAMEForm name

________________________________________________________________________

CHECK_SMARTDAY_FLAG

Protected ABAP_BOOL CHECK_SMARTDAY_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

This method checks the smartday flag

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_STATUS_PROFILE

Protected ABAP_BOOL CHECK_STATUS_PROFILE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_TACTICS

Protected ABAP_BOOL CHECK_TACTICS(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_TERRITORY

Protected ABAP_BOOL CHECK_TERRITORY(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_VALIDATION_PROF

Protected ABAP_BOOL CHECK_VALIDATION_PROF(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTINGCL_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_COLLECTIONThe parent assignment collection
- IS_ATTRIBUTESThe attributes of the assignment item
- IV_CREATE_MODEThe 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_CARDINALITYThis exception occurs when a cardinality violation occurs
- CX_CRM_MKTGS_DUPLICATE_KEYThis exception occurs when a duplicate key is passed
- CX_CRM_MKTGS_INVALID_KEYThis exception occurs when an invalid key is passed
- CX_CRM_MKTGS_NO_CHANGE_MODEThis exception occurs when the assignment collection is not changeable

________________________________________________________________________

CONVERT_FIELDS_TO_UPPERCASE

Protected CONVERT_FIELDS_TO_UPPERCASE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method converts the value of upper case fields to upper case

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

COPY

Redefined Public CL_CRM_MKTGS_ASG_ITEM COPY(

IMPORTINGCL_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_COLLECTIONThe assignment collections where the new assignment item has to be copied to

________________________________________________________________________

COPY_DOCUMENTS

Protected COPY_DOCUMENTS(

IMPORTINGCL_CRM_MKTGS_ASG_COLLECTION IR_ASSIGNMENT_COLLECTION

)

This method copies the attachments

Parameters

- IR_ASSIGNMENT_COLLECTIONThe assignment collections where the new assignment item has to be copied to

________________________________________________________________________

DEFAULT_ATTRIBUTES

Protected DEFAULT_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method contains the default attributes handling

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_CAMPAIGN_TYPE_VALUES

Protected DEFAULT_CAMPAIGN_TYPE_VALUES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_CURRENCY

Protected DEFAULT_CURRENCY(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_DURATION_PERIOD

Protected DEFAULT_DURATION_PERIOD(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_EMPLOYEE_RESPONSIBLE

Protected DEFAULT_EMPLOYEE_RESPONSIBLE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method defaults the employee responsible from username

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_MKT_ORG

Protected DEFAULT_MKT_ORG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_NO_R3_INT

Protected DEFAULT_NO_R3_INT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method defaults the ERP integration flag from customizing

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_PLANNING_CUSTOMER

Protected DEFAULT_PLANNING_CUSTOMER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_PROD_PL_BASIS

Protected DEFAULT_PROD_PL_BASIS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_SALES_AREA

Protected DEFAULT_SALES_AREA(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_TERRITORY

Protected DEFAULT_TERRITORY(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DELETE

Redefined Public DELETE(

IMPORTINGABAP_BOOL IV_NO_CHECK

)

This method does some delete processing
- inform operation buffer for deletion (external id)
- triggers BOR event

Parameters

- IV_NO_CHECKNo check should be performend(object deletion)

Exceptions

- CX_CRM_MKTGS_FUNCTION_FAILEDThis 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(

CHANGINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILL_EXT_DATE_VALUES

Protected FILL_EXT_DATE_VALUES(

CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES

)

This method fills the external date fields
- plan dates
- actual dates
- constraint dates

Parameters

- CS_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILL_EXT_DOMAIN_VALUES

Protected FILL_EXT_DOMAIN_VALUES(

CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES

)

This method fills the external domain values
- constraint type
- product planning basis

Parameters

- CS_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILL_EXT_FLAG_VALUES

Protected FILL_EXT_FLAG_VALUES(

CHANGINGCRMS_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_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILL_EXT_INTEGRATION_VALUES

Protected FILL_EXT_INTEGRATION_VALUES(

CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES

)

This method fills the integration attributes

Parameters

- CS_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILL_EXT_MASTER_DATA_VALUES

Protected FILL_EXT_MASTER_DATA_VALUES(

CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES

)

This method fills the external master data values
- marketing organization
- sales area
- territory
- planning customer

Parameters

- CS_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILTER_CTYPES_FROM_AUTHORITY

Protected FILTER_CTYPES_FROM_AUTHORITY(

CHANGINGCRM_MKTPL_PRT_CAMPTYPE CT_CAMPAIGN_TYPES

)

This method removes the not authorized campaign types from list

Parameters

- CT_CAMPAIGN_TYPESlist 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(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

GET_ATTRIBUTES

Redefined Public GET_ATTRIBUTES(

IMPORTINGABAP_BOOL IV_GET_EXTERNAL_ATTRIBUTES
EXPORTINGANY 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_ATTRIBUTESIs set to true,if the external attributes of the assignment items are requested
 -> performance critical !!!
- ES_ATTRIBUTESMarketing project header attributes

________________________________________________________________________

GET_AUTHORITY_OBJECT

Protected GET_AUTHORITY_OBJECT(

EXPORTINGXUOBJECT 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_RESPAuthority object for field 'employee responsible'
- EV_AUTHORITY_MKTPL_CPTYAuthority object for field 'campaign type'
- EV_AUTHORITY_MKTPL_CLNKAuthority object for field 'campaign link'
- EV_AUTHORITY_MKTPL_AUGRAuthority 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(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attributes (optional)
- IV_GET_TIMEZONE_CREATEDTimezone 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(

EXPORTINGCRMT_MKTGS_FIELD_ATTRIBUTE ER_FIELD_ATTRIBUTES

)

This method returns the reference to the internal field attributes table from the static buffer.

Parameters

- ER_FIELD_ATTRIBUTESField 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(

IMPORTINGSYMSGTY 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_TYPECurrent message type
- IV_NEW_MSG_TYPENew message type

________________________________________________________________________

INHERIT_INACTIVE_FLAG

Protected INHERIT_INACTIVE_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method inherits the inative flag from parent

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

INITIALIZE_ATTRIBUTES

Protected INITIALIZE_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method initializes the basic attributes
- object class
- original system
- timezone created
- shortcut

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew 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(

IMPORTINGFIELDNAME 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_NAMEAttribute 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(

IMPORTINGCGPL_EXTID IV_EXTERNAL_ID
EXPORTINGCGPL_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_IDExternal ID to be checked
- EV_PROJECT_IDExternal ID of marketing project where the coupon code is already used
- EV_IS_COUPON_CODECoupon code flag

________________________________________________________________________

IS_CURRENCY_CHANGEABLE

Protected ABAP_BOOL IS_CURRENCY_CHANGEABLE(

IMPORTINGCRMS_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_ATTRIBUTESCurrent attribugtes

________________________________________________________________________

IS_EXTERNAL_ID_CHANGEABLE

Protected ABAP_BOOL IS_EXTERNAL_ID_CHANGEABLE(

IMPORTINGABAP_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_MESSAGESRaise 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(

IMPORTINGCHAR1 IV_OPERATION

)

This method updates the operation buffer
- mark the current external id as deleted

Parameters

- IV_OPERATIONOperation 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_NODECGPL 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_NODECGPL hierarchy node

________________________________________________________________________

REFRESH_INTEGRATION_STATUS

Protected REFRESH_INTEGRATION_STATUS( )

This method refreshs the integration status

________________________________________________________________________

REGISTER_PARTNER_DET_TRIGGER

Protected REGISTER_PARTNER_DET_TRIGGER(

IMPORTINGCRMT_BOOLEAN IV_SUPPRESS_PARDET
CHAR1 IV_TRIGGER_TIME

)

This method triggers the partner determination

Parameters

- IV_SUPPRESS_PARDETSuppress partner determination
- IV_TRIGGER_TIMEReason 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(

CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES

)

This method resets the default attributes for type mapping

Parameters

- CS_ATTRIBUTESCurrent attributes

________________________________________________________________________

RESET_INTEGRATION_ATTRIBUTES

Protected RESET_INTEGRATION_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method reset all integration attributes

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

RESET_KEY_ATTRIBUTES

Protected RESET_KEY_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method reset all key attributes which are not changeable at all

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

RESET_READONLY_ATTRIBUTES

Protected RESET_READONLY_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
ABAP_BOOL IV_SHOW_MESSAGES
CHANGINGCRMS_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_OLDOld attributes
- IV_SHOW_MESSAGESIf true, messages will begenerated for each error
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ACCOUNT_PLAN

Protected SET_ACCOUNT_PLAN(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the account plan reference

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ACTION_PROFILE

Protected SET_ACTION_PROFILE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the action profile

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ACTIVE

Protected ABAP_BOOL SET_ACTIVE(

IMPORTINGFLAG IV_ACTIVE
FLAG IV_LOG_MESSAGES
FLAG IV_WITH_CHILDREN

)

This method sets the marketing project active/inactive

Returns

Success flag

Parameters

- IV_ACTIVEActive flag to be set
- IV_LOG_MESSAGESlog messages flag
- IV_WITH_CHILDRENPropagate active flag tochildren

________________________________________________________________________

SET_ADI_FLAG

Protected SET_ADI_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ADRESS_ID

Protected SET_ADRESS_ID(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the adress id

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ATTRIBUTES

Redefined Public SET_ATTRIBUTES(

IMPORTINGANY 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_ATTRIBUTESNew attributes

________________________________________________________________________

SET_ATTRIBUTES_AFTER

Protected SET_ATTRIBUTES_AFTER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ATTRIBUTES_AFTER_BADI

Protected SET_ATTRIBUTES_AFTER_BADI(

IMPORTINGCRMS_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_NEWNew attributes
- IS_ATTRIBUTES_OLDOld attributes

________________________________________________________________________

SET_ATTRIBUTES_AFTER_TRIGGER

Protected SET_ATTRIBUTES_AFTER_TRIGGER(

IMPORTINGCRMS_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_NEWNew attributes
- IS_ATTRIBUTES_OLDOld attributes

________________________________________________________________________

SET_ATTRIBUTES_BEFORE

Protected SET_ATTRIBUTES_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ATTRIBUTES_BEFORE_BADI

Protected SET_ATTRIBUTES_BEFORE_BADI(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method call the SET_ATTRIBUTES_BEFORE BAdI

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_AUTH_GROUP

Protected SET_AUTH_GROUP(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_BPAT_TYPE

Protected SET_BPAT_TYPE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the buying pattern type

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_BP_CORR_LANG_IND

Protected SET_BP_CORR_LANG_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the send partner

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CAMPAIGN_LINK

Protected SET_CAMPAIGN_LINK(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CAMPAIGN_TYPE

Protected SET_CAMPAIGN_TYPE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_ATTRIBUTES

Protected SET_CGPL_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_ATTRIBUTES_AFTER

Protected SET_CGPL_ATTRIBUTES_AFTER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_ATTRIBUTES_BEFORE

Protected SET_CGPL_ATTRIBUTES_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_BW_IDENTIFIER

Protected SET_CGPL_BW_IDENTIFIER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method allows only changes to the BI identifier if not saved yet

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_COMPLETION_BEFORE

Protected SET_CGPL_COMPLETION_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the completion rate

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_DATES_AFTER

Protected SET_CGPL_DATES_AFTER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method triggers the CGPL date dependent changes
- no generic implementation right now

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_DATES_BEFORE

Protected SET_CGPL_DATES_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_EXTERNAL_ID_AFTER

Protected SET_CGPL_EXTERNAL_ID_AFTER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_EXTERNAL_ID_BEFORE

Protected SET_CGPL_EXTERNAL_ID_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_HIERARCHY_SORT_BEFORE

Protected SET_CGPL_HIERARCHY_SORT_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_NOT_SUPP_ATTR_BEFORE

Protected SET_CGPL_NOT_SUPP_ATTR_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method initializes the not supported CGPL attributes

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_PLANGROUP_BEFORE

Protected SET_CGPL_PLANGROUP_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_PRIORITY_BEFORE

Protected SET_CGPL_PRIORITY_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the priority

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CHANNEL

Protected SET_CHANNEL(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the channel / communiation medium

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CHM_RELEVANT

Protected SET_CHM_RELEVANT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CIC_SCRIPT

Protected SET_CIC_SCRIPT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CURRENCY

Protected SET_CURRENCY(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_DEAL

Protected SET_DEAL(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the deal reference

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_DETERM_PROC

Protected SET_DETERM_PROC(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_EEW_ATTRIBUTES

Protected SET_EEW_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_EMPLOYEE_RESPONSIBLE

Protected SET_EMPLOYEE_RESPONSIBLE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ENROLLMENT_REQ

Protected SET_ENROLLMENT_REQ(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the enrollment requested indicator

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_EVENT_HANDLER

Private SET_EVENT_HANDLER(

IMPORTINGABAP_BOOL IV_ACTIVATION

)

This method activates/deactivates the abap event handler

Parameters

- IV_ACTIVATIONActivation flag (default true)

________________________________________________________________________

SET_EVENT_TRIGGERED_FLAG

Protected SET_EVENT_TRIGGERED_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_EXCL_IND

Protected SET_EXCL_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_EXECUTION_LANG

Protected SET_EXECUTION_LANG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the send partner

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_EXECUTION_STATUS

Protected SET_EXECUTION_STATUS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_FORMS

Protected SET_FORMS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the form fields for email, letter, fax, sms, file export

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_INDIRECT_IND

Protected SET_INDIRECT_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the indirect indicator

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_MKT_ORG

Protected SET_MKT_ORG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_NOTIFICATION_PROFILE

Protected SET_NOTIFICATION_PROFILE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_NO_R3_INT

Protected SET_NO_R3_INT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_NO_R3_INT_FROM_PARENT

Protected SET_NO_R3_INT_FROM_PARENT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_NO_UPLIFT_IND

Protected SET_NO_UPLIFT_IND(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the no uplift indicator

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_OBJECTIVE

Protected SET_OBJECTIVE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_OBJECT_CLASS

Protected SET_OBJECT_CLASS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_ORIG_SYSTEM

Protected SET_ORIG_SYSTEM(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_PLANNING_CUSTOMER

Protected SET_PLANNING_CUSTOMER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_PPG_STATUS

Protected SET_PPG_STATUS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the pricing & promotion guidelines status

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_PRINT_ID

Protected SET_PRINT_ID(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the printer id

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_PROD_PL_BASIS

Protected SET_PROD_PL_BASIS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_RATES_ORIGIN_SYSTEM

Protected SET_RATES_ORIGIN_SYSTEM(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the origin system of the rates

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_REF_TYPE

Protected SET_REF_TYPE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the reference / usage type

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_RESPONSE_FLAG

Protected SET_RESPONSE_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_SALES_AREA

Protected SET_SALES_AREA(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_SALES_ORG_RESP

Protected SET_SALES_ORG_RESP(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the sales organisation data from responsible

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_SEND_PARTNER

Protected SET_SEND_PARTNER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the send partner

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_SHORTCUT

Protected SET_SHORTCUT(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_SMARTDAY_FLAG

Protected SET_SMARTDAY_FLAG(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the smartday flag

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_STATUS_PROFILE

Protected SET_STATUS_PROFILE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_TACTICS

Protected SET_TACTICS(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_TERRITORY

Protected SET_TERRITORY(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_TIMEZONE_CREATED

Protected SET_TIMEZONE_CREATED(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_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_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_VALIDATION_PROF

Protected SET_VALIDATION_PROF(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method sets the validation proifle

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew 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(

IMPORTINGCRM_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_TYPElog type to be set
- IV_ATTRIBUTE_NAMEAttribute name for message
- IT_BAPI_MESSAGESlist of BAPI messages

________________________________________________________________________

TRANSFER_TZ_MESSAGES_TO_LOG

Protected SYMSGTY TRANSFER_TZ_MESSAGES_TO_LOG(

IMPORTINGCRM_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_TYPElog type to be set
- IV_ATTRIBUTE_NAMEAttribute name for message
- IT_TZ_MESSAGESlist of timezone messages

________________________________________________________________________

TRIGGER_BOR_EVENT

Protected TRIGGER_BOR_EVENT(

IMPORTINGSWETYPECOU-EVENT IV_EVENT

)

This method triggers the requested BOR event

Parameters

- IV_EVENTEvent to be triggered

________________________________________________________________________

TRIGGER_KFP_COMPONENT

Protected TRIGGER_KFP_COMPONENT(

IMPORTINGCRMS_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_OLDOld attributes
- IS_ATTRIBUTES_NEWNew 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(

IMPORTINGABAP_BOOL IV_UPDATE_DB_ATTRIBUTES
ABAP_BOOL IV_WITH_OLD_ATTRIBUTES
CHANGINGCRMS_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_ATTRIBUTESUpdate DB attributes flag
- IV_WITH_OLD_ATTRIBUTESUpdate old attributes flag
- CS_ATTRIBUTESCurrent 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(

IMPORTINGABAP_BOOL IV_INITIAL_UPDATE
CHANGINGCRMS_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_UPDATEFlag, if attributes should initially be updated
- CS_ATTRIBUTESCurrent attributes

________________________________________________________________________

UPDATE_EXTERNAL_ATTRIBUTES

Protected UPDATE_EXTERNAL_ATTRIBUTES(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method updates the external attributes

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew 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 )