SAP® Documentation

Single view

CL_CRM_MKTGS_COND_MAINT - Core Condition Maintenance in Marketing

PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

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

General Class Description

None

__________________________________________________________

Class Info

Name:CL_CRM_MKTGS_COND_MAINT
Instantiation:Public

Superclass

None

Implemented Interfaces

IF_CRM_CND_GENERATION
IF_CRM_CND_GENERATION_ACTIONS

Friend Classes

None

Subclasses

CL_CRM_MKTGS_COND_MAINT_CD
CL_CRM_MKTGS_COND_MAINT_PR

__________________________________________________________

Methods

CHECK_CONDITIONS_EXIST

Public ABAP_BOOL CHECK_CONDITIONS_EXIST( )

Checks if conditions exist

________________________________________________________________________

CHECK_EFFECTIVE_DATES_EXIST

Public ABAP_BOOL CHECK_EFFECTIVE_DATES_EXIST( )

________________________________________________________________________

CHECK_IS_EXCEPTION_CONDITION

Public ABAP_BOOL CHECK_IS_EXCEPTION_CONDITION(

IMPORTING

/SAPCND/TIMESTAMP_TO IV_END_DATE

CGPL_GUID16 IV_PRODUCT_GUID

PRCT_COND_RATE IV_RATE

/SAPCND/TIMESTAMP_FROM IV_START_DATE

)

Checks if the dates and rate sent correspond to an exception

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTING

CL_CRM_MKTGS_COND_ASSIGN_ITEM IR_PARENT_ITEM

CHAR8 IV_TECHNIQUE

)

CONSTRUCTOR

________________________________________________________________________

COPY_CONDITIONS

Public COPY_CONDITIONS(

IMPORTING

CHAR1 IV_COPY_FG

CHAR1 IV_COPY_PR

CRM_MKTPL_GUID IV_MKTELEMENT_TO

)

Copy conditions from one marketing project to another

________________________________________________________________________

DELETE

Public DELETE( )

Delete the condition records

________________________________________________________________________

GET_TECHNIQUE

Public CHAR8 GET_TECHNIQUE( )

Get mv_technique

________________________________________________________________________

IF_CRM_CND_GENERATION_ACTIONS~

Public Abstract IF_CRM_CND_GENERATION_ACTIONS~( )

________________________________________________________________________

IF_CRM_CND_GENERATION~DELETE_C

Public Abstract IF_CRM_CND_GENERATION~DELETE_C( )

________________________________________________________________________

IF_CRM_CND_GENERATION~GET_COND

Public Abstract IF_CRM_CND_GENERATION~GET_COND( )

________________________________________________________________________

IF_CRM_CND_GENERATION~PERFORM_

Public Abstract IF_CRM_CND_GENERATION~PERFORM_( )

________________________________________________________________________

IF_CRM_CND_GENERATION~PREPARE_

Public Abstract IF_CRM_CND_GENERATION~PREPARE_( )

________________________________________________________________________

IF_CRM_CND_GENERATION~UPDATE_C

Public Abstract IF_CRM_CND_GENERATION~UPDATE_C( )

________________________________________________________________________

SHIFT_CONDITION_DATES

Public ABAP_BOOL SHIFT_CONDITION_DATES(

IMPORTING

CRM_MKTPL_COND_IF_COST_KEYX IS_COST_KEYX

ABAP_BOOL IV_CD_SHIFT

CGPL_PLANFINISH IV_END_DATE

CGPL_PLANSTART IV_START_DATE

)

Shifts the dates of the condition records

________________________________________________________________________

ADD_DEL_MESSAGE_TO_LOG

Protected ADD_DEL_MESSAGE_TO_LOG(

IMPORTING

DATA IR_WORKING_SET

CRM_MKTPL_COND_IF_PRODUCT IS_PRODUCT

CRM_MKTPL_COND_IF_PRODCAT IS_PROD_CAT

CRM_MKTPL_COND_IF_PRODGRP_DATA IS_PROD_GRP

CRM_MKTPL_COND_IF_PRODSEG IS_PROD_SEG

)

Add messages that conditon records have been deleted

________________________________________________________________________

ADD_GEN_MESSAGE_TO_LOG

Protected ADD_GEN_MESSAGE_TO_LOG(

IMPORTING

DATA IR_WORKING_SET_UPD

)

Add messages that conditon records have been generated

________________________________________________________________________

BUILD_INTERNAL_PREP_ATTR

Protected Abstract BUILD_INTERNAL_PREP_ATTR(

IMPORTING

CRM_MKTPL_CUSTOMER IS_PLANNING_ACCOUNT

CRMT_CND_GEN_PREP_ATTRIBS_T IT_PREP_ATTRIBS

EXPORTING

DATA ER_INT_PREP_ATTRIBS

ABAP_BOOL EV_SUCCESS

)

Build internal attribute table

________________________________________________________________________

BUILD_PLANNING_ACCOUNT_INFO

Protected BUILD_PLANNING_ACCOUNT_INFO(

IMPORTING

CRM_MKTPL_TGRP_PLAN_LVL IV_TARGET_GROUP_GEN_LEVEL

EXPORTING

CRM_MKTPL_CUSTOMER ES_PLANNING_ACCOUNT

ABAP_BOOL EV_SUCCESS

)

Funds Planning Account for Generating Pricing Conditions

________________________________________________________________________

BUILD_WORKING_SET

Protected BUILD_WORKING_SET(

IMPORTING

DATA IR_GEN_ATTRIBS

DATA IR_WORKING_SET_INT

CRMT_CND_GEN_ATTRIBS_T IT_GEN_ATTRIBS

EXPORTING

DATA ER_WORKING_SET_INT

ABAP_BOOL EV_SUCCESS

)

Build working set for Pricing Condition Generation

________________________________________________________________________

BUILD_WORKING_SET_ITEM

Protected BUILD_WORKING_SET_ITEM(

IMPORTING

MKTRS_AGREEMENT_CUST_INFO IS_CRMR_AG_CUST_INFO

CRM_MKTPL_COND_IF_CUSTOMERX IS_CUSTOMERX

CRM_MKTPL_COND_IF_CUST_DATAX IS_CUST_DATAX

CRMT_CND_GEN_ATTRIBS IS_GEN_ATTRIBS

/BON/AG_GUID IV_BON_AG_GUID

J_ISTAT IV_PROJECT_STATUS

/SAPCND/WORKING_SET_NAME IV_WS_NAME_BROAD

EXPORTING

DATA ER_WORKING_SET_ITEM_BROAD

ABAP_BOOL EV_SUCCESS

)

Build working set item for Pricing Condition Generation

________________________________________________________________________

CALL_BADI_CHANGE_WS

Protected CALL_BADI_CHANGE_WS(

IMPORTING

DATA IR_GEN_ATTRIBS

CRMT_CND_GEN_ATTRIBS_T IT_GEN_ATTRIBS

EXPORTING

BOOLEAN EV_SUCCESS

CHANGING

DATA CR_WORKING_SET_INT

)

Call BAdI for changing the working set (when generating PRs)

________________________________________________________________________

CHECK_CAMPAIGN_GUID_FIELD

Protected CHECK_CAMPAIGN_GUID_FIELD(

IMPORTING

/SAPCND/T688C_S_T IT_COND_TABLE_FIELDS

/SAPCND/COND_TABLE_ID IV_COND_TABLE

EXPORTING

ABAP_BOOL EV_SUCCESS

)

Checks CAMPAIGN_GUID field - Standard technique only

________________________________________________________________________

CHECK_DATA_VOLUME

Protected ABAP_BOOL CHECK_DATA_VOLUME(

IMPORTING

DATA IR_WORKING_SET_INT

)

Check to see if data volume exceeds maximum / recommended

________________________________________________________________________

CHECK_INTERNAL_PREP_ATTR

Protected CHECK_INTERNAL_PREP_ATTR(

IMPORTING

DATA IR_INT_PREP_ATTRIBS

CRM_MKTPL_CUSTOMER IS_PLANNING_ACCOUNT

EXPORTING

ABAP_BOOL EV_SUCCESS

)

Checks combinations Condition Type / Condition Table

________________________________________________________________________

CHECK_OBJECT_BUFFER

Protected CHECK_OBJECT_BUFFER(

CHANGING

/SAPCND/T_ATTRIB_VALUE_INT CT_ATTRIBUTE_VALUE

)

Check the buffer and fill it if needed

________________________________________________________________________

CLEAR_NON_KEY_FIELDS_FROM_WS

Protected CLEAR_NON_KEY_FIELDS_FROM_WS(

CHANGING

DATA CR_WORKING_SET_INT

)

Clear some non key fields of the working set

________________________________________________________________________

DELETE_DUPLICATES_FROM_WS

Protected DELETE_DUPLICATES_FROM_WS(

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

DATA CR_WORKING_SET_INT

)

Delete duplicate entries from Working Set

________________________________________________________________________

DELETE_REF

Protected DELETE_REF( )

Delete the conditiond records for the ref table technique

________________________________________________________________________

DELETE_RESET_MESSAGES_FROM_LOG

Protected DELETE_RESET_MESSAGES_FROM_LOG( )

Deletes all reset messages from the log

________________________________________________________________________

DELETE_STD

Protected DELETE_STD( )

Delete the conditiond records for the standard technique

________________________________________________________________________

DETERMINE_PARTNER_ROLES

Protected DETERMINE_PARTNER_ROLES(

IMPORTING

CRMT_MKTGS_KSCHL_KOTABNR IT_COND_TABLES

CRM_MKTPL_TSPEND_STARTDATE IV_START_DATE

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

CRM_MKTPL_COND_IF_T_CUST_DATAX CT_CUST_DATAX

)

Determine the partner roles that have to be derived

________________________________________________________________________

DETERMINE_PLAN_DATES

Protected Abstract DETERMINE_PLAN_DATES(

IMPORTING

CRMS_MKTPL_COST_ATTRIBUTES IV_COST

CRMS_MKTPL_COST_ATTRIBUTES IV_COST_BEFORE

CRMS_MKTPL_DATE IV_DATE

CRMS_MKTPL_DATE IV_DATE_BEFORE

/SAPCND/APPLICATION IV_KAPPL

/SAPCND/COND_TYPE IV_KSCHL

/SAPCND/USAGE IV_KVEWE

CGPL_PLANFINISH IV_PLANFINISH

CGPL_PLANFINISH IV_PLANFINISH_BEFORE

CGPL_PLANSTART IV_PLANSTART

CGPL_PLANSTART IV_PLANSTART_BEFORE

EXPORTING

CGPL_PLANFINISH EV_PLANFINISH

CGPL_PLANFINISH EV_PLANFINISH_BEFORE

CGPL_PLANSTART EV_PLANSTART

CGPL_PLANSTART EV_PLANSTART_BEFORE

ABAP_BOOL EV_SUCCESS

)

determines plan datesbased on both old and new dates

________________________________________________________________________

EXTRACT_CONDITION_RECORDS

Protected EXTRACT_CONDITION_RECORDS(

IMPORTING

STANDARD TABLE IT_WORKING_SET_INT

STANDARD TABLE IT_WORKING_SET_UPD

EXPORTING

ABAP_BOOL EV_SUCCESS

)

Extracts the condition records due to overlaps

________________________________________________________________________

EXTRACT_VARNUMH_TABLE

Protected EXTRACT_VARNUMH_TABLE(

IMPORTING

DATA IR_WORKING_SET

EXPORTING

/SAPCND/COND_TABLE_ENTRY_ID_T ET_VARNUMH

)

Returns a Table of references to the varnumh field of a ws

________________________________________________________________________

GET_BPS_IN_CUST_HIERARCHY

Protected GET_BPS_IN_CUST_HIERARCHY(

IMPORTING

CRMT_MKTGS_KSCHL_KOTABNR IT_COND_TABLES

CRM_MKTPL_TSPEND_STARTDATE IV_START_DATE

EXPORTING

BU_PARTNER_GUID_T ET_PARTNER_GUIDS

BU_NODE_GUID EV_ECC_PARTNER_GUID

ABAP_BOOL EV_SUCCESS

)

Get BPs contained in a BPHN

________________________________________________________________________

GET_VALID_DATES

Protected GET_VALID_DATES(

IMPORTING

CGPL_PLANFINISH IV_END_DATE

CGPL_PLANSTART IV_START_DATE

EXPORTING

CGPL_PLANFINISH EV_END_DATE

CGPL_PLANSTART EV_START_DATE

ABAP_BOOL EV_SUCCESS

)

Returns valid start / end dates

________________________________________________________________________

GET_WORKING_SET

Protected GET_WORKING_SET(

IMPORTING

/SAPCND/BOOLEAN IV_SUPPR_DEL_RECORDS

EXPORTING

DATA ER_WORKING_SET

ABAP_BOOL EV_SUCCESS

/SAPCND/T_ATTRIB_VALUE_INT CT_ATTRIB_VALUE

)

Get current working set

________________________________________________________________________

GET_WORKING_SET_REF

Protected GET_WORKING_SET_REF(

IMPORTING

ABAP_BOOL IV_SUPPR_DEL_RECORDS

EXPORTING

DATA ER_WORKING_SET

ABAP_BOOL EV_SUCCESS

/SAPCND/T_ATTRIB_VALUE_INT CT_ATTRIB_VALUE

)

Get initial Working Set for the reference table technique

________________________________________________________________________

GET_WORKING_SET_STD

Protected GET_WORKING_SET_STD(

IMPORTING

ABAP_BOOL IV_SUPPR_DEL_RECORDS

EXPORTING

DATA ER_WORKING_SET

ABAP_BOOL EV_SUCCESS

/SAPCND/T_ATTRIB_VALUE_INT CT_ATTRIB_VALUE

)

Get initial Working Set for the standard technique

________________________________________________________________________

INITIALIZE_COND_MAINT

Protected INITIALIZE_COND_MAINT( )

Initializes Condition Maintenance

________________________________________________________________________

INITIALIZE_COND_MAINT_REF

Protected INITIALIZE_COND_MAINT_REF( )

Initialize condition maintenance for the ref table technique

________________________________________________________________________

INITIALIZE_COND_MAINT_STD

Protected INITIALIZE_COND_MAINT_STD( )

Initialize condition maintenance for the standard technique

________________________________________________________________________

PREPARE_ATTRIBUTES

Protected /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES()

Prepare an attribute table to get the working set

________________________________________________________________________

PREPARE_ATTRIBUTES_4_PROD

Protected /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_PROD(

IMPORTING

CRM_MKTPL_COND_IF_PRODUCT IS_PRODUCT

)

Prepare attribute table for a product

________________________________________________________________________

PREPARE_ATTRIBUTES_REF

Protected /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_REF( )

Prepare an attr. table to get working set for ref technique

________________________________________________________________________

PREPARE_ATTRIBUTES_STD

Protected /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_STD( )

Prepare an attr. table to get working set for std technique

________________________________________________________________________

READ_CONDITIONS

Protected READ_CONDITIONS(

IMPORTING

/SAPCND/T_ATTRIB_VALUE_INT IT_ATTRIBUTES

EXPORTING

DATA ER_WORKING_SET_INT

I EV_NUM_READ_RECORDS

)

Reads conditions of a marketing project

________________________________________________________________________

SET_VALIDITY_WINDOW

Protected SET_VALIDITY_WINDOW(

IMPORTING

CGPL_PLANFINISH IV_END_DATE

CGPL_PLANSTART IV_START_DATE

EXPORTING

ABAP_BOOL EV_SUCCESS

)

Sets the validity of the window

________________________________________________________________________

UPDT_HDR_DAT_RNG_SCALES_FLDS

Protected UPDT_HDR_DAT_RNG_SCALES_FLDS(

IMPORTING

/BON/AG_GUID IV_BON_KNUMA_BO

/SAPCND/USAGE IV_KVEWE

CGPL_GUID16 IV_MKT_GUID

/SAPCND/TIMESTAMP_FROM IV_TIMESTAMP_FROM

/SAPCND/TIMESTAMP_TO IV_TIMESTAMP_TO

ANY CV_WORKING_SET_INT

)

Updates Header date Range and Scales Field






CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 27817 Date: 20190618 Time: 191540     sap01-206 ( 45 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.