SAP® Documentation

Single view

CL_CRM_MKTPL_HEADER_CPT_ITEM - MKTPL OL: Campaign Header Assignment

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

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

General Class Description

This class is the header assignment of the campaign element
It is responsible for managing the campaign element header attributes

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_HEADER_CPT_ITEM
Instantiation:Public

Superclass

CL_CRM_MKTPL_HEADER_ITEM

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

IF_CRM_MKTGS_EVENT_LISTENER~BEFORE_ACTIVITY_EXECUTED

Public ABAP_BOOLIF_CRM_MKTGS_EVENT_LISTENER~BEFORE_ACTIVITY_EXECUTED(

IMPORTINGCL_CRM_MKTGS_OBJ_ITEM IR_OBJECT_ITEM
J_VORGANG IV_ACTIVITY

)

This method allows to provibit the execution of a business activity(status)

________________________________________________________________________

ADD_MESSAGE_SYMSG_BY_MSG_TYPE

Protected ABAP_BOOL ADD_MESSAGE_SYMSG_BY_MSG_TYPE(

IMPORTINGFIELDNAME IV_ATTRIBUTE_NAME
MSGTY IV_MSG_TYPE

)

________________________________________________________________________

CHECK_CA_ATTRIBUTES

Redefined 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 and campaign element type
- if there is no workflow assigned but there exist successors raisean error
- if there is a workflow assigned check against the campaign element type and the campaign element parameter

Returns

True, if the check returns errors

Parameters

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

CHECK_CA_WORKFLOW_EXIST

Protected ABAP_BOOL CHECK_CA_WORKFLOW_EXIST( )

This method checks whether there exists workflows for the campaign

Returns

True, if there exists workflows

________________________________________________________________________

CHECK_CPT_WF_APPR_RESP

Protected CRMT_BOOLEAN CHECK_CPT_WF_APPR_RESP(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES

)

________________________________________________________________________

CHECK_CPT_WF_EMAIL_RESP

Protected CRMT_BOOLEAN CHECK_CPT_WF_EMAIL_RESP( )

Check Parameter for E-mail to Person Resp. for Camp. Element

________________________________________________________________________

CHECK_CPT_WF_SUC_OPTNODE

Protected CRMT_BOOLEAN CHECK_CPT_WF_SUC_OPTNODE()

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTINGCRM_MKTGS_CREATE_MODE IV_CREATE_MODE
ANY IS_ATTRIBUTES
CL_CRM_MKTGS_ASG_COLLECTION IR_ASSIGNMENT_COLLECTION

)

This contstructor
- calls the super constructor
- calls the SET_ATTRIBUTES in case of new
- calls the ADJUST_COPY_ATTRIBUTES in case of copy
- updates the attributes with the cgpl attributes if no new object
- initializes the field attributes

Parameters

- 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
- IS_ATTRIBUTESThe attributes of the assignment item
- IR_PARENT_ASSIGNMENT_COLLECTIThe parent assignment collection

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

________________________________________________________________________

COPY

Redefined Public CL_CRM_MKTGS_ASG_ITEM COPY(

IMPORTINGCL_CRM_MKTGS_ASG_COLLECTION IR_ASSIGNMENT_COLLECTION

)

This method copies the campaign automation process model information after the item has been copied

________________________________________________________________________

COPY_PROCESSMODEL

Protected COPY_PROCESSMODEL(

IMPORTINGCL_CRM_MKTGS_ASG_COLLECTION IR_ASSIGNMENT_COLLECTION

)

This method copy the campaign automation process model information for the campaign element
- set the template step node

Parameters

- IR_ASSIGNMENT_COLLECTIONAssignment collection of the new object

________________________________________________________________________

DEFAULT_PLANNING_CUSTOMER

Redefined Protected DEFAULT_PLANNING_CUSTOMER(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This defaulting is not supported by this object type

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_SALES_AREA

Redefined Protected DEFAULT_SALES_AREA(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This defaulting is not supported by this object type

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DEFAULT_TERRITORY

Redefined Protected DEFAULT_TERRITORY(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This defaulting is not supported by this object type

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

DELETE

Redefined Public DELETE(

IMPORTINGABAP_BOOL IV_NO_CHECK

)

This method does some delete processing for campaign
- delete stepnode from campaign automation process model

- IS_ATTRIBUTESCurrent attributes

________________________________________________________________________

FILL_EXT_FLAG_VALUES

Redefined Protected FILL_EXT_FLAG_VALUES(

CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES

)

This method fills the external flag values (inverting of internal flag values)
- campaign automation process model flag
- response flag

- CS_ATTRIBUTES_NEWCurrent attributes

________________________________________________________________________

GET_CAMPAIGN_GUID

Protected CRM_MKTGS_GUID GET_CAMPAIGN_GUID( )

This method returns the corresponding campaign guid

Returns

Campaign guid

________________________________________________________________________

GET_NUMBER_ACT_TGGRPS

Protected I GET_NUMBER_ACT_TGGRPS( )

This method returns the number of active target groups

Returns

Number of active target groups

________________________________________________________________________

GET_NUMBER_SEGMENTS

Protected I GET_NUMBER_SEGMENTS( )

This method returns the number of assigned segments

Returns

Number of assigned segments

________________________________________________________________________

GET_PROCESSMODEL

Protected CL_CRM_MKTCA_PROCESSMODEL GET_PROCESSMODEL( )

This method returns the corresponding campaign automation process model

Returns

Process model

________________________________________________________________________

GET_SPECIAL_CASE_CA1

Protected CRMT_BOOLEAN GET_SPECIAL_CASE_CA1(

IMPORTINGCL_CRM_MKTCA_STEPNODE IR_STEPNODE

)

This method checks that the predecessors of a stepnode given are only optimization nodes

Returns

True, if the check is ok

Parameters

- IR_STEPNODEStepnode

________________________________________________________________________

GET_SPECIAL_CASE_CA8

Protected CRMT_BOOLEAN GET_SPECIAL_CASE_CA8(

IMPORTINGCL_CRM_MKTCA_STEPNODE IR_STEPNODE

)

This method check that a stepnode given is located only between optimization nodes

Returns

True, if the check is ok

Parameters

- IR_STEPNODEStepnode

________________________________________________________________________

GET_STEPNODE

Protected CL_CRM_MKTCA_STEPNODE GET_STEPNODE( )

This method returns the corresponding campaign automation step node

Returns

Step node

________________________________________________________________________

INITIALIZE_FIELD_ATTRIBUTES

Redefined Protected ABAP_BOOL INITIALIZE_FIELD_ATTRIBUTES( )

This method initializes the field attributes for campaigns
It performs the following logic
- Set the supported fields to changeable

________________________________________________________________________

ON_MOVED

Redefined Protected ON_MOVED( )

________________________________________________________________________

ON_PARENT_OBJECT_MOVE

Redefined Public ON_PARENT_OBJECT_MOVE(

IMPORTINGCL_CRM_MKTGS_OBJ_ITEM IR_PARENT_OBJECT_NEW
CL_CRM_MKTGS_OBJ_ITEM IR_PARENT_OBJECT_OLD

)

________________________________________________________________________

REMOVE_FROM_PROCESSMODEL

Protected REMOVE_FROM_PROCESSMODEL( )

This method removes the campaign element from CA
- delete the corresponding step node from linked process model

________________________________________________________________________

SET_ATTRIBUTES_AFTER

Redefined 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:
- Update the process model

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_CGPL_DATES_AFTER

Redefined 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
- trigger plan dates changes to CA

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

SET_RESPONSE_FLAG

Redefined 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 cpt_type is set if the response flag is set and cleared if not

Parameters

- IS_ATTRIBUTES_OLDOld attributes
- CS_ATTRIBUTES_NEWNew attributes

________________________________________________________________________

UPDATE_PROCESSMODEL

Protected UPDATE_PROCESSMODEL( )

This method updates the campaign automation process model
- synchronize changes of a campaign of the marketing planer with changes
of the according process model of campaign automation for new elements






General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 28677 Date: 20190626 Time: 125633     sap01-206 ( 73 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.