CL_CRM_MKTPL_EAI_CREATE_TPM - EAI: Create TPM

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This 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

CL_CRM_MKTPL_EAI_CREATE

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

ADD_AGREEMENT

Private ADD_AGREEMENT(

IMPORTINGCGPL_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_IDAgreement Guid
- IV_TRADE_PROMOTION_GUIDTrade Promotion Guid

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDFailed to create assignment

________________________________________________________________________

ADD_ASSIGNMENT_BLOCKS

Redefined Protected ADD_ASSIGNMENT_BLOCKS(

IMPORTINGANY IS_MARKETING_PROJECT
CRM_MKTGS_GUID IV_PROJECT_GUID

)

Create the data for all assignment block of a promotion.

Parameters

- IS_MARKETING_PROJECTStructure containing all the data for each assignment block of the
 promotion. Will be of type CRMS_MKTPL_EAI_TPM.
- IV_PROJECT_GUIDProject guid of the promotion where we need to add all the assignment blocks.

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDRaised when at least an error occurred when we added each
 assignment block to the promotion.

________________________________________________________________________

ADD_CAUSALS

Private ADD_CAUSALS(

IMPORTINGCRMT_MKTPL_CAU IT_CAUSAL
CRM_MKTGS_GUID IV_TRADE_PROMOTION_GUID

)

This method is responsible for adding causals to the marketing project

Parameters

- IT_CAUSALA table of causals.
- IV_TRADE_PROMOTION_GUIDMarketing project guid

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDFailed to create assignment

________________________________________________________________________

ADD_CAUSAL_TRADE_SPENDS

Private ADD_CAUSAL_TRADE_SPENDS(

IMPORTINGCRMT_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_SPENDSdescription
- IV_TRADE_PROMOTION_GUIDdescription

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDFailed to create assignment Note: The resumable
 exception is raised in order to catch all erroneous input

________________________________________________________________________

ADD_DATE_RANGES

Private ADD_DATE_RANGES(

IMPORTINGCRMT_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_DATESTable of date ranges
- IV_TRADE_PROMOTION_GUIDMarketing Project Guid

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDFailed to create assignment Note: The resumable exception is there
 so that we collect all erroneous input.

________________________________________________________________________

ADD_FUNDS_PLAN

Private ADD_FUNDS_PLAN(

IMPORTINGCRM_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_IDFunds Plan Guid
- IV_TRADE_PROMOTION_GUIDTrade Promotion Guid

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDFailed to create assignment

________________________________________________________________________

ADD_TRADE_SPENDS

Private ADD_TRADE_SPENDS(

IMPORTINGCRMT_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_SPENDSA table of trade spends.
- IV_TRADE_PROMOTION_GUIDMarketing project guid

Exceptions

- CX_CRM_MKTPL_EAI_FAILEDFailed to create assignment

________________________________________________________________________

ADD_TRADE_SPEND_EXCEPTION

Public ADD_TRADE_SPEND_EXCEPTION(

IMPORTINGCRMD_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_EXCEPTIONTrade spend exceptions (+ attributes)
- IV_TRADESPEND_GUIDTrade Spend Guid
- IV_TRADE_PROMOTION_GUIDTrade Promotion Guid

Exceptions

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