SAP® Documentation

Single view

CL_CRM_MKTPL_CPG_FM_DISTR - Campaign Funds Management Distribution

BAL Application Log Documentation   CPI1466 during Backup  
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 provides methods for Distribution of Planning Amounts

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_CPG_FM_DISTR
Instantiation:Public

Superclass

None

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_OBJ_REF
CRM_MKTGS_GUID IV_OBJ_GUID

)

Constructor

Parameters

- IR_OBJ_REFMarketing Object reference (optional)
- IV_OBJ_GUIDMarketing Object GUID (optional)

________________________________________________________________________

DISTRIBUTE_ERP_AMOUNTS

Public DISTRIBUTE_ERP_AMOUNTS(

IMPORTINGCRMS_MKTPL_COSTS IS_PURCHASING_COSTS
CRMS_MKTPL_CPG_FM_VALUE_LIST IS_RESERVED_AMOUNTS
EXPORTINGBAPIRET2_T ET_MESSAGES
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_SETTLED_FPO_AMOUNTS
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_COMMITTED_FPO_AMOUNTS

)

Distribute ERP amounts without expense type information

Parameters

- IS_PURCHASING_COSTS- Purchasing Costs
- IS_RESERVED_AMOUNTS- Fund Posting List with reserved Amounts
- ES_SETTLED_FPO_AMOUNTS- Fund Posting List with Settled Amounts
- ES_COMMITTED_FPO_AMOUNTS- Fund Posting List with commited Amounts

________________________________________________________________________

DISTRIBUTE_ERP_AMOUNTS_EXP

Public DISTRIBUTE_ERP_AMOUNTS_EXP(

IMPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST IS_RESERVED_AMOUNTS
CRMT_MKTPL_COSTS_PER_EXPENSE IT_PURCHASING_COSTS
EXPORTINGBAPIRET2_T ET_MESSAGES
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_SETTLED_FPO_AMOUNTS
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_COMMITTED_FPO_AMOUNTS

)

Distribute ERP amounts with expense type information

Parameters

- IS_RESERVED_AMOUNTS- Fund Posting List with reserved Amounts
- IT_PURCHASING_COSTS- Purchasing Costs per Expense Types
- ES_SETTLED_FPO_AMOUNTS- Fund Posting List with Settled Amounts
- ES_COMMITTED_FPO_AMOUNTS- Fund Posting List with commited Amounts

________________________________________________________________________

DISTRIBUTE_ON_MKTSPEND_LEVEL

Private DISTRIBUTE_ON_MKTSPEND_LEVEL(

IMPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST IS_PLANNING_AMOUNTS
CRMS_MKTPL_CPG_FM_VALUE_LIST IS_RESERVED_AMOUNTS
EXPORTINGABAP_BOOL EV_FAILED
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_FUND_POSTING_AMOUNTS

)

Distribute planning amounts on Marketing Spend Level

Parameters

- IS_PLANNING_AMOUNTS- Campaign FMI value list
- IS_RESERVED_AMOUNTS- Campaign FMI value list (optional)
- EV_FAILED- True on Error
- ES_FUND_POSTING_AMOUNTS- Campaign FMI value list with posting amounts

________________________________________________________________________

DISTRIBUTE_ON_ROOT_LEVEL

Private DISTRIBUTE_ON_ROOT_LEVEL(

IMPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST IS_PLANNING_AMOUNTS
EXPORTINGABAP_BOOL EV_FAILED
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_FUND_POSTING_AMOUNTS

)

Distribute planning amounts on ROOT Level

Parameters

- IS_PLANNING_AMOUNTSCampaign FMI value list
- EV_FAILED- True on Error
- ES_FUND_POSTING_AMOUNTS- Campaign FMI value list with posting amounts

________________________________________________________________________

DISTRIBUTE_PLANNING_AMOUNTS

Public DISTRIBUTE_PLANNING_AMOUNTS(

IMPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST IS_PLANNING_AMOUNTS
EXPORTINGABAP_BOOL EV_FAILED
CRMS_MKTPL_CPG_FM_VALUE_LIST ES_FUND_POSTING_AMOUNTS

)

Distribute planning amounts concerning of FAL

Parameters

- IS_PLANNING_AMOUNTS- Campaign FMI value list
- EV_FAILED- True on Error
- ES_FUND_POSTING_AMOUNTS- Campaign FMI value list with posting amounts

________________________________________________________________________

DISTRIBUTE_UNEXPECTED_EXP

Private DISTRIBUTE_UNEXPECTED_EXP(

IMPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST IS_RESERVED_AMOUNTS
CRMS_MKTPL_CPG_FM_VALUE IS_EXP_VALUE
CHANGINGCRMS_MKTPL_CPG_FM_VALUE_LIST CS_FUND_POSTING_AMOUNTS

)

Distribute the value which is assigned tho an expense type which
is not expected by the campaign and it associated funds

Parameters

- IS_RESERVED_AMOUNTSReserved amounts
- IS_EXP_VALUEUnexpected expense type value
- CS_FUND_POSTING_AMOUNTSfund posting amounts

________________________________________________________________________

GET_RESERVED_VALUE_SUM

Private CRM_FM_FPO_VALUE GET_RESERVED_VALUE_SUM(

IMPORTINGCRMT_MKTPL_CPG_FM_VALUE IT_RESERVED_AMOUNTS

)

Determine the total sum af all reserved amounts

Returns

The sum of all reserved amounts
- RV_RESERVED_VALUE_SUM

Parameters

- IT_RESERVED_AMOUNTSReserved amounts

________________________________________________________________________

GET_USED_RESERVED_EXP_TYPES

Private CRMT_MKTPL_CPG_FM_VALUETYPE GET_USED_RESERVED_EXP_TYPES(

IMPORTINGCRMT_MKTPL_CPG_FM_VALUE IT_RESERVED_AMOUNTS

)

Determine use expense types within reserved amounts

Returns

list of all used expense types
- ET_USED_EXP_TYPES

Parameters

- IT_RESERVED_AMOUNTSReserved amounts

________________________________________________________________________

GET_VALUE_CAT_COSTS_PER_EXP

Private GET_VALUE_CAT_COSTS_PER_EXP(

IMPORTINGCRMT_MKTPL_COSTS_PER_EXPENSE IT_PURCHASING_COSTS
EXPORTINGCRMT_MKTPL_COSTS_PER_EXPENSE ET_SETTLED_PURCH_COSTS
CRMT_MKTPL_COSTS_PER_EXPENSE ET_COMMITTED_PURCH_COSTS

)

Compress amount per expense type and split them due to value category (settled/commitment

Parameters

- IT_PURCHASING_COSTSERP Purchasing costs per expense type
- ET_SETTLED_PURCH_COSTS- settled purchasing costs
- ET_COMMITTED_PURCH_COSTS- committed purchasing costs

________________________________________________________________________

UPDATE_FPO_AMOUNTS_WITH_FU

Private UPDATE_FPO_AMOUNTS_WITH_FU(

IMPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST IS_RESERVED_AMOUNTS
CHANGINGCRMS_MKTPL_CPG_FM_VALUE_LIST CS_COMMITTED_FPO_AMOUNTS
CRMS_MKTPL_CPG_FM_VALUE_LIST CS_SETTLED_FPO_AMOUNTS

)

Update distributed fund posting amounts with fund usage guid

Parameters

- IS_RESERVED_AMOUNTSReserved amounts
- CS_COMMITTED_FPO_AMOUNTSDistruibuted commitments
- CS_SETTLED_FPO_AMOUNTSDistributed actuals






PERFORM Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 19488 Date: 20190626 Time: 223514     sap01-206 ( 26 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.