CL_CRM_MKTPL_CPG_FM_UTIL - Campaign FMI: Utility Class

ABAP Short Reference   ABAP 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 provides methods for Reading the planning data

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_CPG_FM_UTIL
Instantiation:Public

Superclass

None

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

GET_ALL_FUI_WITH_FUND

Public static GET_ALL_FUI_WITH_FUND(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_CPG_MKTPROJECT
EXPORTINGCRMS_MKTPL_CPG_FM_VALUE_LIST ES_FUI_FUND

)

Returns all Fund Usage Items with Funds

Parameters

- IR_CPG_MKTPROJECTMarketing Project Reference

________________________________________________________________________

GET_CPG_FUNDS_COLL

Public staticCL_CRM_MKTPL_CPG_FUNDS_COLL GET_CPG_FUNDS_COLL(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_CPG_MKTPROJECT

)

Returns the Funds Assignment Collection based on the current MKT-Projects

Returns

RR_CPG_FUNDS_COLL CPG Funds Assignment Collection

Parameters

- IR_CPG_MKTPROJECTMarketing Prokect Item

________________________________________________________________________

GET_FMI_ACCRUAL_PROF_BY_OBJECT

Public static CRMT_MKTPL_ETACM GET_FMI_ACCRUAL_PROF_BY_OBJECT(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get accrual profile assignment using the object reference

Returns

RT_FMI_ACCRUAL_PROF Accrual Profile Table

Parameters

- IR_MKTPROJECTMarketing project

________________________________________________________________________

GET_FMI_PROFILE_BY_GUID

Public static CRMC_MKTPL_FMPRF GET_FMI_PROFILE_BY_GUID(

IMPORTINGCRM_MKTGS_GUID IV_MKTPROJECT_GUID

)

Get fund integration profile by passing the object guid

Returns

fund integration profile

Parameters

- IV_MKTPROJECT_GUIDmarketing project guid

________________________________________________________________________

GET_FMI_PROFILE_BY_OBJECT

Public static CRMC_MKTPL_FMPRF GET_FMI_PROFILE_BY_OBJECT(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get fund integration profile by passing the object reference

Returns

fund integration profile

Parameters

- IR_MKTPROJECTmarketing project guid

________________________________________________________________________

GET_FMI_STATUS_VC_BY_OBJECT

Public static CRMT_MKTPL_STVCM GET_FMI_STATUS_VC_BY_OBJECT(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get status to value category mapping using the object reference

Returns

RT_FMI_STATUS_VALUE_CATEGORY

Parameters

- IR_MKTPROJECTmarketing project guid

________________________________________________________________________

GET_FMI_VC_AVC_PROF_BY_OBJECT

Public static CRMT_MKTPL_VCAVC GET_FMI_VC_AVC_PROF_BY_OBJECT(

IMPORTINGCRM_MKTPL_FMI_STATUS_VALUE_CAT IV_VALUE_CATEGORY
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get value category to avc profile assignment using the object reference

Returns

value category / avc profile table

Parameters

- IV_VALUE_CATEGORYStatus relevante Value Category
- IR_MKTPROJECTmarketing project

________________________________________________________________________

GET_FPO_VC_FOR_CURRENT_STATUS

Public static CRM_MKTPL_FMI_STATUS_VALUE_CAT GET_FPO_VC_FOR_CURRENT_STATUS(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get value category for a given system/user status

Returns

RV_VALUE_CATEGORY Status relevant Value Category

Parameters

- IR_MKTPROJECTMarketing project reference

________________________________________________________________________

GET_FPO_VC_FOR_NEW_STATUS

Public static CRM_MKTPL_FMI_STATUS_VALUE_CAT GET_FPO_VC_FOR_NEW_STATUS(

IMPORTINGCRM_MKTPL_FMI_STATUS_VALUE IV_STATUS_VALUE
CL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get value category for a given system/user status

Returns

posting value category

Parameters

- IV_STATUS_VALUEcurrent system/user status
- IR_MKTPROJECTmarketing project reference

________________________________________________________________________

GET_FUND_ASSOC_LEVEL_BY_GUID

Public static CRM_MKTPL_FMI_ASSOC_LEVEL GET_FUND_ASSOC_LEVEL_BY_GUID(

IMPORTINGCRM_MKTGS_GUID IV_MKTPROJECT_GUID

)

Get fund association level by passing the object guid

Returns

fund association level
- CL_CRM_MKTPL_CPG_FM_CONSTANTS=>ASSOCIATION_LEVEL_ROOT - Root Association Level
-CL_CRM_MKTPL_CPG_FM_CONSTANTS=>ASSOCIATION_LEVEL_MKTSPEND - Marketing Spend Association Level

Parameters

- IV_MKTPROJECT_GUIDmarketing project guid

________________________________________________________________________

GET_FUND_ASSOC_LEVEL_BY_OBJECT

Public static CRM_MKTPL_FMI_ASSOC_LEVEL GET_FUND_ASSOC_LEVEL_BY_OBJECT(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get fund association level by passing the object reference

Returns

fund association level
- CL_CRM_MKTPL_CPG_FM_CONSTANTS=>ASSOCIATION_LEVEL_ROOT - Root Association Level
-CL_CRM_MKTPL_CPG_FM_CONSTANTS=>ASSOCIATION_LEVEL_MKTSPEND - Marketing Spend Association Level

Parameters

- IR_MKTPROJECTmarketing project reference

________________________________________________________________________

GET_FUND_ASSOC_LEVEL_TEXT

Public static VAL_TEXT GET_FUND_ASSOC_LEVEL_TEXT(

IMPORTINGCRM_MKTPL_FMI_ASSOC_LEVEL IV_FUND_ASSOC_LEVEL

)

Get fund association level text

Returns

Fund association level domain value text

Parameters

- IV_FUND_ASSOC_LEVELFund association level

________________________________________________________________________

GET_FUND_PLAN_BY_GUID

Public static CRMS_MKTPL_FPLAN GET_FUND_PLAN_BY_GUID(

IMPORTINGCRM_MKTGS_GUID IV_MKTPROJECT_GUID

)

Get Fund Plan ID by passing object guid

Returns

Fund Plan Id
- RV_FUND_PLAN_ID

Parameters

- IV_MKTPROJECT_GUIDMarketing project Guid

________________________________________________________________________

GET_FUND_PLAN_BY_OBJECT

Public static CRMS_MKTPL_FPLAN GET_FUND_PLAN_BY_OBJECT(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

Get Fund Plan ID by passing the object reference

Returns

Fund Plan Id
- RV_FUND_PLAN_ID

Parameters

- IR_MKTPROJECTMarketing project object reference

________________________________________________________________________

GET_IMPL_STEP_TEXT

Public static STRING GET_IMPL_STEP_TEXT(

IMPORTINGCRM_MKTPL_CPG_FM_IMPL_STEP IV_IMPL_STEP

)

Implementation Step for Fund Posting Value History

Returns

RV_TEXT String

Parameters

- IV_IMPL_STEPImplementation Step

________________________________________________________________________

GET_IOBJNAME_FROM_SEM_MAPPING

Public static CRM_KPI_Y_IOBJNM GET_IOBJNAME_FROM_SEM_MAPPING(

IMPORTINGCRM_KPI_Y_FLDNM IV_FLDNAME
CGPL_APPLICATION_TYPE IV_APPLICATION

)

Get InfoObject Name from SEM Customizing Mapping Table between CRN Field and InfoObject

Returns

RV_IOBJNAME InfoObjectName

Parameters

- IV_FLDNAMEFieldName
- IV_APPLICATIONApplication in Project Planning

________________________________________________________________________

GET_MKTSPD_EXPTYPE_MAP_BY_GUID

Public static CRMT_MKTPL_MSEXP GET_MKTSPD_EXPTYPE_MAP_BY_GUID(

IMPORTINGCRM_MKTGS_GUID IV_MKTPROJECT_GUID

)

This method returns the supported marketing spend - expense type mapping by guid

Returns

RT_MKTSPEND_EXPTYPE_MAP Table marketing spend - expense type mapping

Parameters

- IV_MKTPROJECT_GUIDMarketing project GUID

________________________________________________________________________

GET_MKTSPD_EXPTYPE_MAP_BY_OBJ

Public static CRMT_MKTPL_MSEXP GET_MKTSPD_EXPTYPE_MAP_BY_OBJ(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

This method returns the supported marketing spend - expense type mapping
These are
- the marketing spends maintained in the mapping table to expense types
- restricted to the marketing spends maintained for the cost key figure planning profile if maintained

Returns

Table marketing spend - expense type mapping

Parameters

- IR_MKTPROJECTMarketing project

________________________________________________________________________

GET_MKTSPENDS_BY_GUID

Public static CRMT_MKTPL_MSP_T GET_MKTSPENDS_BY_GUID(

IMPORTINGCRM_MKTGS_GUID IV_MKTPROJECT_GUID
CRM_MKTGS_GUID IV_FUND_ASSIGNMENT_GUID

)

Get marketing spends for object and assignment

Returns

Table of marketing spends

Parameters

- IV_MKTPROJECT_GUIDGuid of marketing project
- IV_FUND_ASSIGNMENT_GUIDGuid of fund assignment (optional)

________________________________________________________________________

GET_MKTSPEND_TEXT

Public static CRM_MKTPL_MKTSPEND_T GET_MKTSPEND_TEXT(

IMPORTINGCRM_MKTPL_MKTSPEND IV_MKTSPEND

)

Get marketing spend text

Returns

Marketing spend text

Parameters

- IV_MKTSPENDMarketing spend key

________________________________________________________________________

GET_MPL_PARENT_GUID_OF_CPG

Public static CRM_MKTGS_GUID GET_MPL_PARENT_GUID_OF_CPG(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_CAMPAIGN

)

Get marketing Plan Guid

Returns

RV_MPL_GUID Marketing Plan Guid

Parameters

- IR_CAMPAIGNCampaign Reference Object

________________________________________________________________________

GET_USER_STATUS_PREDECESSORS

Protected static GET_USER_STATUS_PREDECESSORS(

IMPORTINGJ_ESTAT IV_USER_STATUS
CRMT_MKTGS_USER_STATUS IT_USER_STATUS
CHANGINGCRMT_MKTGS_USER_STATUS CT_USER_STATUS_PRE

)

This method returns all predecessors of the current user status
These are the user status where
- the order number is lower than the current order number and
- the highest order number is greater or equal to the current order number
and all their predecessor status

Parameters

- IV_USER_STATUSCurrent user status
- IT_USER_STATUSUser status of the profile
- CT_USER_STATUS_PRETable of predecessor user status

________________________________________________________________________

IS_FMI_ACTIVE_BY_GUID

Public static ABAP_BOOL IS_FMI_ACTIVE_BY_GUID(

IMPORTINGCRM_MKTGS_GUID IV_MKTPROJECT_GUID

)

This method checks if funds integration is active for the requested object guid

Returns

RV_IS_ACTIVE True, if funds integration is active

Parameters

- IV_MKTPROJECT_GUIDMarketing Object Reference

________________________________________________________________________

IS_FMI_AND_FUNDSPLAN_ACTIVE

Public static ABAP_BOOL IS_FMI_AND_FUNDSPLAN_ACTIVE(

IMPORTINGCL_CRM_MKTPL_OL_MKTPROJECT IR_MKTPROJECT

)

This method checks if funds integration is active for the requested object guid

Returns

RV_FMI_ACTIVE True, if funds integration is active

Parameters

- IR_MKTPROJECTMarketing Object Reference



BAL Application Log Documentation   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 27568 Date: 20120526 Time: 112753     triton ( 270 ms )