CL_CRM_MKTPL_HEADER_INT_ITEM - MKTPL OL: Campaign Header Assignment

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.

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

General Class Description

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

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_HEADER_INT_ITEM
Instantiation:Public

Superclass

CL_CRM_MKTPL_HEADER_ITEM

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

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

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTINGCL_CRM_MKTGS_ASG_COLLECTION IR_ASSIGNMENT_COLLECTION
CRM_MKTGS_CREATE_MODE IV_CREATE_MODE
ANY IS_ATTRIBUTES

)

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

- 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

________________________________________________________________________

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

________________________________________________________________________

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_FIELD_ATTRIBUTES

Redefined Public CRMT_MKTGS_FIELD_ATTRIBUTE GET_FIELD_ATTRIBUTES( )

________________________________________________________________________

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

________________________________________________________________________

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_ATTRIBUTES_BEFORE

Redefined Protected SET_ATTRIBUTES_BEFORE(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES_ALL IS_ATTRIBUTES_OLD
CHANGINGCRMS_MKTPL_OL_ATTRIBUTES_ALL CS_ATTRIBUTES_NEW

)

This method prepares the CAMPAIGN ELEMENT attributes before they areset
The following logic is performed:
- Perform the logic of the super class first
- Clear the not supported fields
- Set the read-only attributes to the old value -> no change allowed

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



Addresses (Business Address Services)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.


Length: 16844 Date: 20120526 Time: 113811     triton ( 163 ms )