CL_CRM_MKTPL_OL_DEAL - MKTPL OL: Deal Item

CL_GUI_FRONTEND_SERVICES - Frontend Services   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

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

General Class Description

MKTPL OL: Deal Item

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_OL_DEAL
Instantiation:Protected

Superclass

CL_CRM_MKTPL_OL_MKTPROJECT

Implemented Interfaces

IF_CRM_MKTGS_EVENT_LISTENER

Friend Classes

CL_CRM_MKTGS_MAIN_COLLECTION
CL_CRM_MKTPL_OL_DEALS
CL_CRM_MKTPL_OL_MKTPROJECTS

Subclasses

None

__________________________________________________________

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 tracks a change to an assignment's item.

- IR_ASG_ITEMReference to the assignment item that was just changed.

________________________________________________________________________

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

)

________________________________________________________________________

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

)

________________________________________________________________________

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

)

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~BUSINESS_ACTIVITY_EXECUTED

Public IF_CRM_MKTGS_EVENT_LISTENER~BUSINESS_ACTIVITY_EXECUTED(

IMPORTINGJ_VORGANG IV_ACTIVITY
CL_CRM_MKTGS_OBJ_ITEM IR_OBJECT_ITEM

)

________________________________________________________________________

IF_CRM_MKTGS_EVENT_LISTENER~IS_LISTENER_INACTIVE

Public ABAP_BOOLIF_CRM_MKTGS_EVENT_LISTENER~IS_LISTENER_INACTIVE( )

________________________________________________________________________

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 tracks the deletion of an assignment's item.

- IR_ASG_ITEMReference to the assignment's item that was just deleted.

________________________________________________________________________

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 tracks the creation of an assignment's item.

- IR_ASG_ITEMReference to the assignment item that was just created.

________________________________________________________________________

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

)

________________________________________________________________________

ATTR_HAVE_CHANGED

Private ABAP_BOOL ATTR_HAVE_CHANGED( )

________________________________________________________________________

CASCADE_CHANGE

Public CASCADE_CHANGE(

IMPORTINGCRM_MKTGS_MESSAGE_LOG_TYPE IV_LOG_TYPE
ABAP_BOOL IV_CHECK_ONLY

)

________________________________________________________________________

CASCADE_CHANGE_HIERARCHY

Protected CASCADE_CHANGE_HIERARCHY(

IMPORTINGCRMT_MKTPL_USER_STATUS_CHANGE IT_USER_STATUS_CHANGES
CRMT_MKTGS_ASSIGNMENT_TYPE IT_CHANGED_ASSIGNMENTS
CRMS_MKTPL_OL_ATTRIBUTES IS_NEW_ATTRIBUTES
CRMS_MKTPL_DEAL_CHANGE_REF_MAP IS_DEAL_CHANGES
CL_CRM_MKTPL_OL_DEAL IR_TOP_DEAL

)

This method updates the current deal from the change of the top deal,
and recursively updates all the current deal's children.

Parameters

- IT_USER_STATUS_CHANGESThis parameter determines all user status changes done to the top deal
- IT_CHANGED_ASSIGNMENTSThis parameter determines which assignment types were changed in the top deal
- IS_NEW_ATTRIBUTESThis parameter contains the top deal attributes if they were changed
- IS_DEAL_CHANGESThis parameter determines which assignments were changed in the top deal
 (for assignments not yet converted in new architecture)
- IR_TOP_DEALThis parameter is the reference to the top deal

Exceptions

- CX_CRM_MKTGS_FUNCTION_FAILEDThis exception occurs if the deletion fails

________________________________________________________________________

CHECK_BEFORE_DELETE

Redefined Public ABAP_BOOL CHECK_BEFORE_DELETE(

IMPORTINGABAP_BOOL IV_SHOW_MESSAGES

)

Check before delete

________________________________________________________________________

CHECK_BEFORE_DELETE_HIERARCHY

Protected ABAP_BOOL CHECK_BEFORE_DELETE_HIERARCHY(

IMPORTINGSYMSGTY IV_MSG_TYPE
ABAP_BOOL IV_LOCK

)

________________________________________________________________________

CHECK_DATA_VOL_DEAL_HIERARCHY

Private CHECK_DATA_VOL_DEAL_HIERARCHY(

IMPORTINGI IV_NB_LEVEL
CRM_MKTPL_CUSTOMER_ID IV_CUSTOMER_ID
EXPORTINGI EV_NB_NODES
CHAR1 EV_MESSAGE_TYPE

)

________________________________________________________________________

CHECK_DELETE_POSSIBLE

Public CHECK_DELETE_POSSIBLE(

IMPORTINGSYMSGTY IV_MSG_TYPE
ABAP_BOOL IV_LOCK

)

________________________________________________________________________

CHECK_GENERATE_TPM

Private ABAP_BOOL CHECK_GENERATE_TPM( )

________________________________________________________________________

CLEAR_CHANGE_FLAGS

Protected CLEAR_CHANGE_FLAGS( )


This method clears all attributes that keep the information about what was changed in the deal.

________________________________________________________________________

CONSOLIDATE_DEAL_CHANGES

Private CRMS_MKTPL_DEAL_CHANGE_REF_MAP CONSOLIDATE_DEAL_CHANGES( )

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTINGCRM_MKTGS_OBJECT_TYPE IV_OBJECT_TYPE
CRM_MKTGS_TEMPLATE IV_IS_TEMPLATE
CRM_MKTGS_CREATE_MODE IV_CREATE_MODE
ANY IS_ATTRIBUTES
CL_CRM_MKTGS_OBJ_ITEM IR_PARENT_OBJECT
CL_CGPL_HIERARCHY_NODE IR_CGPL_NODE
CL_CRM_MKTGS_APPLICATION_MGR IR_APPLICATION_MGR

)

________________________________________________________________________

DELETE

Redefined Public DELETE( )

________________________________________________________________________

DELETE_HIERARCHY

Protected DELETE_HIERARCHY(

CHANGINGI CV_NB_DELETED_DEALS

)

________________________________________________________________________

GENERATE_DEAL_HIERARCHY

Public CL_CRM_MKTGS_GEN_COLLECTION GENERATE_DEAL_HIERARCHY(

IMPORTINGABAP_BOOL IV_CHECK_ONLY
I IV_MAX_LEVELS

)

________________________________________________________________________

GENERATE_EXTERNAL_ID

Private GENERATE_EXTERNAL_ID(

IMPORTINGI IV_SIBLING_NODE_N
CRM_MKTGS_EXTERNAL_ID IV_ROOT_EXTERNAL_ID
CRM_MKTGS_GUID IV_NODE_GUID
EXPORTINGCRM_MKTGS_EXTERNAL_ID EV_EXTERNAL_ID

)

________________________________________________________________________

GENERATE_TPM

Public CRM_MKTGS_GUID GENERATE_TPM(

IMPORTINGABAP_BOOL IV_CHECK_ONLY

)

________________________________________________________________________

GET_BUYING_DATES

Private GET_BUYING_DATES(

EXPORTINGTIMESTAMP EV_END
TIMESTAMP EV_START

)

________________________________________________________________________

GET_CHILD_DEALS

Public CL_CRM_MKTGS_SUB_COLLECTION GET_CHILD_DEALS(

IMPORTINGABAP_BOOL IV_ALL_CHILDREN

)

________________________________________________________________________

GET_EXTERNAL_FIELD_ATTRIBUTES

Redefined Public CRMT_MKTGS_FIELD_ATTRIBUTE GET_EXTERNAL_FIELD_ATTRIBUTES( )

________________________________________________________________________

GET_FIELD_ATTRIBUTES

Redefined Public CRMT_MKTGS_FIELD_ATTRIBUTE GET_FIELD_ATTRIBUTES( )

________________________________________________________________________

GET_POSSIBLE_ACTIONS

Private GET_POSSIBLE_ACTIONS(

IMPORTINGCRM_MKTPL_CUSTOMER_ID IV_CUSTOMER_ID
ABAP_BOOL IV_CHECK_ONLY
EXPORTINGABAP_BOOL EV_CASCADE_POSSIBLE
ABAP_BOOL EV_GEN_DEAL_HIER_POSSIBLE
ABAP_BOOL EV_GEN_TPM_POSSIBLE
I EV_MAX_LEVEL_GEN

)

________________________________________________________________________

HAS_CHANGED

Protected ABAP_BOOL HAS_CHANGED( )

This method checks if the deal was changed.

Returns

This method returns true if the deal was changed.

________________________________________________________________________

IS_DEAL_BEING_GENERATED

Public ABAP_BOOL IS_DEAL_BEING_GENERATED( )

Checks if the deal is being generated

________________________________________________________________________

IS_EXTERNAL_ID_UNIQUE

Private ABAP_BOOL IS_EXTERNAL_ID_UNIQUE(

IMPORTINGCRM_MKTGS_GUID IV_GUID
CRM_MKTGS_EXTERNAL_ID IV_EXTERNAL_ID

)

________________________________________________________________________

LOCK_HIERARCHY

Protected ABAP_BOOL LOCK_HIERARCHY(

IMPORTINGABAP_BOOL IV_CHANGE_MODE

)

________________________________________________________________________

ON_ASSIGNMENT_CHANGED

Private ON_ASSIGNMENT_CHANGED(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASG_ITEM

)

This method saves the assignment type that was changed to cascade the change to subordinate deals at save time.

Parameters

- IR_ASG_ITEMReference to the assignment that was just changed, created or deleted.

________________________________________________________________________

ON_DOCS_CHANGED

Private ON_DOCS_CHANGED(

IMPORTING CHANGED_DOCUMENTS

)

Event handler for Documents changes (temporarily only!)

________________________________________________________________________

ON_PARTNER_CHANGED

Private ON_PARTNER_CHANGED(

IMPORTING IR_PROJECT

)

Handler for Partner assignment changes (temporarily only!)

________________________________________________________________________

SET_ATTRIBUTES

Redefined Public SET_ATTRIBUTES(

IMPORTINGANY IS_EXTERNAL_ATTRIBUTES
ANY IS_ATTRIBUTES

)

This method changes the deal's attributes (cgpl and attr assignment)

- IS_ATTRIBUTESThis parameter (type CRMS_MKTPL_OL_ATTRIBUTES) contains the deal's attributes to be set

________________________________________________________________________

SET_DEAL_GENERATION

Protected SET_DEAL_GENERATION(

IMPORTINGABAP_BOOL IV_DEAL_GENERATION

)

Set/Reset deal generation flag

________________________________________________________________________

SET_DISPLAY_MODE

Redefined Public ABAP_BOOL SET_DISPLAY_MODE( )

Set display mode

________________________________________________________________________

SET_EDIT_MODE

Redefined Public ABAP_BOOL SET_EDIT_MODE(

IMPORTINGABAP_BOOL IV_CONSIDER_STATUS

)

________________________________________________________________________

SET_STSMA

Redefined Public SET_STSMA(

IMPORTINGJ_STSMA IV_STSMA

)

.This method sets the user status profile of the current deal,
and of the children deals in the deal's hierarchy.

Parameters

- IV_STSMAThis parameter is the user status profile to be set

________________________________________________________________________

UPDATE_ATTACHMENTS

Private UPDATE_ATTACHMENTS(

IMPORTINGCL_CRM_MKTPL_OL_DEAL IR_TOP_DEAL

)

This method updates the current deal from the change of the top deal.

Parameters

- IR_TOP_DEALThis parameter is the reference to the top deal

Exceptions

- CX_CRM_MKTGS_FUNCTION_FAILEDThis exception occurs if the update fails

________________________________________________________________________

UPDATE_ATTR

Private UPDATE_ATTR(

IMPORTINGCRMS_MKTPL_OL_ATTRIBUTES IS_NEW_ATTRIBUTES

)

________________________________________________________________________

UPDATE_DEAL

Private UPDATE_DEAL(

IMPORTINGCRMT_MKTPL_USER_STATUS_CHANGE IT_USER_STATUS_CHANGES
CRMT_MKTGS_ASSIGNMENT_TYPE IT_CHANGED_ASSIGNMENTS
CRMS_MKTPL_OL_ATTRIBUTES IS_NEW_ATTRIBUTES
CRMS_MKTPL_DEAL_CHANGE_REF_MAP IS_DEAL_CHANGES
CL_CRM_MKTPL_OL_DEAL IR_TOP_DEAL

)

This method updates the current deal from the change of the top deal.

Parameters

- IT_USER_STATUS_CHANGESThis parameter determines all user status changes done to the top deal
- IT_CHANGED_ASSIGNMENTSThis parameter determines which assignment types were changed in the top deal
- IS_NEW_ATTRIBUTESThis parameter contains the top deal attributes if they were changed
- IS_DEAL_CHANGESThis parameter determines which assignments were changed in the top deal
 (for assignments not yet converted in new architecture)
- IR_TOP_DEALThis parameter is the reference to the top deal

Exceptions

- CX_CRM_MKTGS_FUNCTION_FAILEDThis exception occurs if the update fails

________________________________________________________________________

UPDATE_PARTNERS

Private UPDATE_PARTNERS(

IMPORTINGCL_CRM_MKTPL_OL_DEAL IR_TOP_DEAL

)

This method updates the current deal's partner assignments to be thesame as those of the top deal.

Parameters

- IR_TOP_DEALThis parameter is the reference to the top deal

Exceptions

- CX_CRM_MKTGS_FUNCTION_FAILEDThis exception occurs if the update fails

________________________________________________________________________

UPDATE_USER_STATUS

Private UPDATE_USER_STATUS(

IMPORTINGCRMT_MKTPL_USER_STATUS_CHANGE IT_USER_STATUS_CHANGES

)

This method updates the user status as it was changed in the top deal.

Parameters

- IT_USER_STATUS_CHANGESThis parameter determines all user status changes done to the top deal

Exceptions

- CX_CRM_MKTGS_FUNCTION_FAILEDThis exception occurs if the update fails



Fill RESBD Structure from EBP Component Structure   PERFORM Short Reference  
This documentation is copyright by SAP AG.


Length: 42120 Date: 20120526 Time: 114728     triton ( 270 ms )