CL_CRM_MKTPL_EAI_CREATE_TPM - EAI: Create TPM
BAL Application Log Documentation Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
>>> Development Documentation generated by DocuGenerator v2.0 (only available in English => NO TRANSLATION!!!) <<<
General Class Description
EAI: Create TPM
__________________________________________________________
Class Info
| Name: | CL_CRM_MKTPL_EAI_CREATE_TPM |
| Instantiation: | Public |
Superclass
Implemented Interfaces
None
Friend Classes
None
Subclasses
None
__________________________________________________________
Methods
ADD_AGREEMENT
Private ADD_AGREEMENT(
| IMPORTING | CGPL_EXTID | IV_AGREEMENT_ID |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is responsible for assigning an agreement to the trade promotion
Parameters
| - | IV_AGREEMENT_ID | Agreement Guid |
| - | IV_TRADE_PROMOTION_GUID | Trade Promotion Guid |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment |
| ________________________________________________________________________ |
|---|
ADD_ASSIGNMENT_BLOCKS
Redefined Protected ADD_ASSIGNMENT_BLOCKS(
| IMPORTING | ANY | IS_MARKETING_PROJECT |
| CRM_MKTGS_GUID | IV_PROJECT_GUID |
)
Create the data for all assignment block of a promotion.
Parameters
| - | IS_MARKETING_PROJECT | Structure containing all the data for each assignment block of the |
| promotion. Will be of type CRMS_MKTPL_EAI_TPM. | ||
| - | IV_PROJECT_GUID | Project guid of the promotion where we need to add all the assignment blocks. |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Raised when at least an error occurred when we added each |
| assignment block to the promotion. |
| ________________________________________________________________________ |
|---|
ADD_CAUSALS
Private ADD_CAUSALS(
| IMPORTING | CRMT_MKTPL_CAU | IT_CAUSAL |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is responsible for adding causals to the marketing project
Parameters
| - | IT_CAUSAL | A table of causals. |
| - | IV_TRADE_PROMOTION_GUID | Marketing project guid |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment |
| ________________________________________________________________________ |
|---|
ADD_CAUSAL_TRADE_SPENDS
Private ADD_CAUSAL_TRADE_SPENDS(
| IMPORTING | CRMT_MKTPL_EAI_CAU_TSP | IT_CAUSAL_TRADE_SPENDS |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is responsible for adding causal trade spends to a trade promotion
Note: The present logic in TPM's standard behavior creates causal trade spends
automatically for the trade spends that are currently in the trade promotion.
The business logic below deletes whatever was created automatically and
creates that causal trade spends that were requested in the import parameters.
Parameters
| - | IT_CAUSAL_TRADE_SPENDS | description |
| - | IV_TRADE_PROMOTION_GUID | description |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment Note: The resumable |
| exception is raised in order to catch all erroneous input |
| ________________________________________________________________________ |
|---|
ADD_DATE_RANGES
Private ADD_DATE_RANGES(
| IMPORTING | CRMT_MKTPL_EAI_DATES | IT_DATES |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is responsible for adding the appropriate date ranges to the trade promotion
Parameters
| - | IT_DATES | Table of date ranges |
| - | IV_TRADE_PROMOTION_GUID | Marketing Project Guid |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment Note: The resumable exception is there |
| so that we collect all erroneous input. |
| ________________________________________________________________________ |
|---|
ADD_FUNDS_PLAN
Private ADD_FUNDS_PLAN(
| IMPORTING | CRM_FM_FND_FUNDPLAN_ID | IV_FUNDS_PLAN_ID |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is responsible for assigning a funds plan to the trade promotion
Parameters
| - | IV_FUNDS_PLAN_ID | Funds Plan Guid |
| - | IV_TRADE_PROMOTION_GUID | Trade Promotion Guid |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment |
| ________________________________________________________________________ |
|---|
ADD_TRADE_SPENDS
Private ADD_TRADE_SPENDS(
| IMPORTING | CRMT_MKTPL_EAI_TS | IT_TRADE_SPENDS |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is responsible for adding trade spends to the marketing project
Parameters
| - | IT_TRADE_SPENDS | A table of trade spends. |
| - | IV_TRADE_PROMOTION_GUID | Marketing project guid |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment |
| ________________________________________________________________________ |
|---|
ADD_TRADE_SPEND_EXCEPTION
Public ADD_TRADE_SPEND_EXCEPTION(
| IMPORTING | CRMD_MKTGS_TSPEX | IS_TRADESPEND_EXCEPTION |
| CRM_MKTGS_GUID | IV_TRADESPEND_GUID | |
| CRM_MKTGS_GUID | IV_TRADE_PROMOTION_GUID |
)
This method is reponsible for adding trade spend exceptions to a trade promotion.
Parameters
| - | IS_TRADESPEND_EXCEPTION | Trade spend exceptions (+ attributes) |
| - | IV_TRADESPEND_GUID | Trade Spend Guid |
| - | IV_TRADE_PROMOTION_GUID | Trade Promotion Guid |
Exceptions
| - | CX_CRM_MKTPL_EAI_FAILED | Failed to create assignment Note: The resumable |
| exception is raised to continue processing of the try block and not to continue | ||
| processing in this method. This is because we want to log all errors and not | ||
| stop at the first failed object. An appropriate exit strategy should be used | ||
| to avoid unncessary processing. (Return, Continue, Exit). |
| ________________________________________________________________________ |
|---|
GET_OBJECT_TYPE_TO_CREATE
Redefined Protected CRM_MKTGS_OBJECT_TYPE GET_OBJECT_TYPE_TO_CREATE( )
Returns the object type handle by this class for the creation of a marketing project.
Returns
Object type used in the creation of a marketing project
PERFORM Short Reference BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 14917 Date: 20120526 Time: 113201 triton ( 139 ms )






