SAP® Documentation

Single view

CL_CRM_MKTGS_COND_MAINT_PR - Core Cond Maint for PRs (Standard & Ref Table)

ABAP Short Reference   Addresses (Business Address Services)  
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_PR
Instantiation:Public

Superclass

CL_CRM_MKTGS_COND_MAINT

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

CHECK_CONDS_EXIST_FOR_TSPEND

Public CRM_MKTPL_COND_GENERATED CHECK_CONDS_EXIST_FOR_TSPEND(

IMPORTING

CRMS_MKTPL_COST_KEY IS_COST_KEY

)

Checks if any conditions currently exist

________________________________________________________________________

CONVERT_KEYFIG_TAB

Public static CONVERT_KEYFIG_TAB(

IMPORTING

CRM_MKTPL_COND_IF_KEYFIG_TAB IT_KEYFIG

EXPORTING

CRMT_CND_GEN_PREP_ATTRIBS_T ET_GEN_PREP_ATTRIBS

)

Convert old keyfig_tab to the corresponding new structures

________________________________________________________________________

DELETE_CONDITIONS_PRODUCTS

Public DELETE_CONDITIONS_PRODUCTS(

IMPORTING

CRM_MKTPL_COND_IF_PRODCAT IS_PRODCAT

CRM_MKTPL_COND_IF_PRODGRP_DATA IS_PRODGRP

CRM_MKTPL_COND_IF_PRODSEG IS_PRODSEG

CRM_MKTPL_COND_IF_PRODUCT IS_PRODUCT

)

Delete conditions when deleting product, pgrp, pcat or pseg

________________________________________________________________________

DELETE_CONDITIONS_TRADE_SPEND

Public DELETE_CONDITIONS_TRADE_SPEND(

CHANGING

CRMT_MKTPL_COND_IF_COST_KEYX CT_COST_KEY

)

Delete condition records when deleting a trade spend

________________________________________________________________________

DETERMINE_DATES

Public DETERMINE_DATES(

IMPORTING

CRMS_MKTPL_COST_ATTRIBUTES IV_COST

CRM_MKTPL_KSCHL_PR IV_KSCHL

CRM_MKTPL_KVEWE_PR IV_KVEWE

EXPORTING

TIMESTAMP EV_END_DATE

TIMESTAMP EV_START_DATE

ABAP_BOOL EV_SUCCESS

)

Determines the validity period the condition records for pr

________________________________________________________________________

DETERMINE_PLANNING_CUSTOMER

Public DETERMINE_PLANNING_CUSTOMER(

IMPORTING

CRM_MKTPL_COND_IF_CUSTOMERX IS_CUSTOMERX

CRM_MKTPL_COND_IF_T_CUST_DATAX IT_CUST_DATAX

EXPORTING

/BON/T_BON_ALL_CUST_INFO ET_BON_ALL_CUST_INFO

CRMT_MKTGS_COND_IF_TGP_DER_BP ET_TGP_DERIVED_BPS

ABAP_BOOL EV_SUCCESS

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Used to prepare attributes for rebate adjustment / creation

________________________________________________________________________

GENERATE_CONDITIONS_API

Public static GENERATE_CONDITIONS_API(

IMPORTING

BAPI_MARKETINGELEMENT_GUID-MKTELEMENT_GUID IM_MARKETINGELEMENT

CRMT_MKTPL_COST_KEY IT_TRADESPEND

EXPORTING

BAPIRET2_T ET_MESSAGES

)

API method to generate PR condition records

________________________________________________________________________

GET_PROMOTION_DISCOUNTS

PublicDATA GET_PROMOTION_DISCOUNTS( )

Retrieve associated promotion rebates

________________________________________________________________________

GET_PROMOTION_REBATES

PublicDATA GET_PROMOTION_REBATES( )

Retrieve associated promotion rebates

________________________________________________________________________

IF_CRM_CND_GENERATION_ACTIONS~

Public Abstract IF_CRM_CND_GENERATION_ACTIONS~( )

________________________________________________________________________

IF_CRM_CND_GENERATION~PERFORM_

Public Abstract IF_CRM_CND_GENERATION~PERFORM_( )

________________________________________________________________________

IF_CRM_CND_GENERATION~PREPARE_

Public Abstract IF_CRM_CND_GENERATION~PREPARE_( )

________________________________________________________________________

ADD_DEL_MESSAGE_TO_LOG

Redefined 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

Redefined Protected ADD_GEN_MESSAGE_TO_LOG(

IMPORTING

DATA IR_WORKING_SET_UPD

)

Add messages that conditon records have been generated

________________________________________________________________________

BUILD_INTERNAL_PREP_ATTR

Redefined Protected 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

Redefined 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

Redefined 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

Redefined 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

Redefined 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_INTERNAL_PREP_ATTR

Redefined 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

________________________________________________________________________

DETERMINE_PLAN_DATES

Redefined Protected 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

________________________________________________________________________

DETERMINE_WS_UPDATE

Protected DETERMINE_WS_UPDATE(

IMPORTING

DATA IR_WORKING_SET_INT_NEW

DATA IR_WORKING_SET_INT_OLD

MKTRT_AGREEMENT_CUST_INFO IT_CRMR_AG_CUST_INFO

EXPORTING

DATA ER_WORKING_SET_UDL

DATA ER_WORKING_SET_UPD

ABAP_BOOL EV_SUCCESS

)

Determine Working set for updates

________________________________________________________________________

GET_WORKING_SET_REF

Redefined 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

Redefined 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

________________________________________________________________________

PREPARE_ATTRIBUTES_REF

Redefined Protected /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_REF( )

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

________________________________________________________________________

PREPARE_ATTRIBUTES_STD

Redefined Protected /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_STD( )

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

________________________________________________________________________

UPDT_HDR_DAT_RNG_SCALES_FLDS

Redefined 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

________________________________________________________________________

BON_AG_MAINTENANCE_AFTER_GEN

Private BON_AG_MAINTENANCE_AFTER_GEN(

IMPORTING

DATA IR_GEN_ATTRIBS

EXPORTING

BOOLEAN EV_SUCCESS

)

Call bon_ag_maintenance_after_gen

________________________________________________________________________

BON_AG_TRADESPEND_DELETE

Private BON_AG_TRADESPEND_DELETE(

IMPORTING

CRMT_MKTPL_COND_IF_COST_KEYX IT_COST_KEYX

EXPORTING

BAPIRET2_T ET_RETURN

)

Call the deletion of the rebate agreements

________________________________________________________________________

BUILD_GEN_ATTR_TABLE

Private BUILD_GEN_ATTR_TABLE(

IMPORTING

CRMT_MKTGS_INT_PREP_ATTR_PR IT_INT_PREP_ATTRIBS

EXPORTING

CRMT_CND_GEN_ATTRIBS_T ET_GEN_ATTRIBS

ABAP_BOOL EV_SUCCESS

)

Convert internal attributes to generic generation attributes

________________________________________________________________________

BUILD_SCALE_4_WORKING_SET_ITEM

Private BUILD_SCALE_4_WORKING_SET_ITEM(

IMPORTING

PRCC_COND_CT IS_COND_CT

CRMT_CND_GEN_ATTRIBS IS_GEN_ATTRIBS

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

DATA CR_WORKING_SET_ITEM_BROAD

)

Build scale for the item if TGR is enabled with off-invoice

________________________________________________________________________

DELETE_CONDITIONS_PR

Private DELETE_CONDITIONS_PR(

CHANGING

CRMT_MKTPL_COND_IF_COST_KEYX CT_COST_KEYX

BOOLEAN CV_SUCCESS

)

Delete conditions when deleting a trade spend

________________________________________________________________________

DELETE_NOT_SELECTED_FROM_WS

Private DELETE_NOT_SELECTED_FROM_WS(

IMPORTING

DATA IR_GEN_ATTRIBS

CRMT_CND_GEN_ATTRIBS_T IT_GEN_ATTRIBS

DATA CR_WORKING_SET_INT

)

Delete non selected entries from the working set

________________________________________________________________________

DELETE_ZERO_VALUES

Private DELETE_ZERO_VALUES(

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Deletes lines where value is zero

________________________________________________________________________

DETERMINE_BON_COND_DEL

Private DETERMINE_BON_COND_DEL(

CHANGING

CRMT_MKTPL_COND_IF_COST_KEYX CT_COST_KEYX

BAPIRET2_T CT_RETURN

BOOLEAN CV_SUCCESS

)

Determine the delete strategy for rebate condition records

________________________________________________________________________

DETERMINE_DATE_RANGES

Private DETERMINE_DATE_RANGES(

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Determines Date Ranges

________________________________________________________________________

DETERMINE_PARTNERS_FOR_GEN

Private DETERMINE_PARTNERS_FOR_GEN(

IMPORTING

CRM_MKTPL_CUSTOMER IS_PLANNING_ACCOUNT

EXPORTING

CRM_MKTPL_COND_IF_CUSTOMERX ES_CUSTOMERX

CRM_MKTPL_COND_IF_T_CUST_DATAX ET_CUST_DATAX

ABAP_BOOL EV_SUCCESS

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Determines Customers for Generation

________________________________________________________________________

DETERMINE_PRODUCTS_FOR_GEN

Private DETERMINE_PRODUCTS_FOR_GEN(

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Determines Products for Generation

________________________________________________________________________

DETERMINE_WS_DEL_PROD

Private DETERMINE_WS_DEL_PROD(

IMPORTING

CRM_MKTPL_COND_IF_PRODUCT IS_PRODUCT

EXPORTING

DATA ER_WORKING_SET

ABAP_BOOL EV_SUCCESS

)

Determine the WS to be deleted when deleting a product

________________________________________________________________________

DETERMINE_WS_DEL_PROD_CAT

Private DETERMINE_WS_DEL_PROD_CAT(

IMPORTING

CRM_MKTPL_COND_IF_PRODCAT IS_PROD_CAT

EXPORTING

DATA ER_WORKING_SET

ABAP_BOOL EV_SUCCESS

)

Determine the WS to be deleted when deleting a prod category

________________________________________________________________________

DETERMINE_WS_DEL_PROD_GRP

Private DETERMINE_WS_DEL_PROD_GRP(

IMPORTING

CRM_MKTPL_COND_IF_PRODGRP_DATA IS_PROD_GROUP

EXPORTING

DATA ER_WORKING_SET

ABAP_BOOL EV_SUCCESS

)

Determine the WS to be deleted when deleting a prod group

________________________________________________________________________

DETERMINE_WS_DEL_PROD_SEG

Private DETERMINE_WS_DEL_PROD_SEG(

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

DATA CR_WORKING_SET

)

Determine the WS to be deleted when deleting a prod segment

________________________________________________________________________

DETERMINE_WS_DEL_UPD_PR

Private DETERMINE_WS_DEL_UPD_PR(

IMPORTING

DATA IR_WORKING_SET_OLD

CRM_MKTPL_COND_IF_COST_KEYX IS_COST_KEYX

EXPORTING

DATA ER_WORKING_SET_DEL

DATA ER_WORKING_SET_UPD

ABAP_BOOL EV_SUCCESS

)

Determine the condition records to be deleted or updated

________________________________________________________________________

FILL_CROSS_ORDER_CAP

Private FILL_CROSS_ORDER_CAP(

IMPORTING

CGPL_APPLICATION_TYPE IV_APPLICATION_TYPE

CRM_MKTPL_COND_VALUE IV_CAP_VALUE

CRM_MKTPL_CGEN_TYPE IV_CGEN_TYPE

CRM_MKTPL_COST_CAT IV_COST_CATEGORY

CRM_MKTPL_COST_TYPE IV_COST_TYPE

CRMT_CURRENCY IV_CURRENCY

CRM_MKTPL_DISC_METH IV_DISC_METHOD

/SAPCND/APPLICATION IV_KAPPL

/SAPCND/COND_TABLE_ID IV_KOTABNR

/SAPCND/USAGE IV_KVEWE

CRMT_SALES_ORG IV_SALES_ORG

CRM_MKTPL_SPEND_METHOD IV_SPEND_METHOD

EXPORTING

MAXCONVAL EV_KOMXWRT

KWAEH EV_KWAEH

MXKBAS EV_MXKBAS

)

Fills the cap value into the correct fields

________________________________________________________________________

FIND_KSCHL_PR_DEL

Private FIND_KSCHL_PR_DEL(

IMPORTING

CRM_MKTPL_CGEN_TYPE IV_CGEN_TYPE

CRMT_MKTPL_COND_IF_COST_KEYX CT_COST_KEYX

BOOLEAN CV_SUCCESS

)

Determine the condition types for the trade spends

________________________________________________________________________

GENERATE_CRM_AGREEMENTS

Private GENERATE_CRM_AGREEMENTS(

IMPORTING

/BON/T_BON_ALL_CUST_INFO IT_BON_ALL_CUST_INFO

INT4 IV_NUM_AGREEMENTS

)

Generates CRM Rebate Agreements

________________________________________________________________________

GENERATE_ERP_AGREEMENTS

Private GENERATE_ERP_AGREEMENTS(

IMPORTING

/BON/T_BON_ALL_CUST_INFO IT_BON_ALL_CUST_INFO

INT4 IV_NUM_AGREEMENTS

)

Generates ERP Rebate Agreements

________________________________________________________________________

GENERATE_REBATE_AGREEMENTS

Private GENERATE_REBATE_AGREEMENTS(

IMPORTING

/BON/T_BON_ALL_CUST_INFO IT_BON_ALL_CUST_INFO

)

Used by condition preparation to generate rebate agreements

________________________________________________________________________

GET_BP_FOR_AG_RECIPIENT

Private GET_BP_FOR_AG_RECIPIENT(

IMPORTING

BU_NODE_GUID IV_BPHN_GUID

CRM_MKTPL_TSPEND_STARTDATE IV_END_DATE

CRM_MKTPL_TSPEND_STARTDATE IV_START_DATE

EXPORTING

BU_PARTNER_GUID EV_BP_GUID

ABAP_BOOL EV_SUCCESS

)

Get BP for Reb Ag recipient

________________________________________________________________________

GET_COND_TYPE_FOR_TSPEND

Private GET_COND_TYPE_FOR_TSPEND(

IMPORTING

CRM_MKTPL_CGEN_TYPE IV_CGEN_TYPE

CRM_MKTPL_COST_CAT IV_COST_CATEGORY

CRM_MKTPL_COST_TYPE IV_COST_TYPE

CRM_MKTPL_PLCUST_TYPE IV_CUSTOMER_TYPE

CRM_MKTPL_DISC_METH IV_DISC_METHOD

CRM_MKTPL_KAPPL IV_KAPPL

CRM_MKTPL_KVEWE_PR IV_KVEWE

CRM_MKTPL_PRODUCT_TYPE IV_PRODUCT_TYPE

CRM_MKTPL_SPEND_METHOD IV_SPEND_METHOD

EXPORTING

CRMC_MKTPL_COTYP EV_COTYP

XFELD EV_ENTRY

)

Get the condition type of a trade spend line

________________________________________________________________________

GET_NUM_AGREEMENTS_NEEDED

Private INT4 GET_NUM_AGREEMENTS_NEEDED( )

Determines how many agreemetents should be created

________________________________________________________________________

GET_WORKING_SET_WS

PrivateDATA GET_WORKING_SET_WS(

IMPORTING

DATA IR_WORKING_SET

)

Prepare working set from the VARNUMH of the imported WS

________________________________________________________________________

MAINTAIN_BON_AG

Private MAINTAIN_BON_AG(

IMPORTING

CRM_MKTPL_COND_IF_CUSTOMERX IS_CUSTOMERX

CRM_MKTPL_COND_IF_T_CUST_DATAX IT_CUST_DATAX

EXPORTING

/BON/T_AG_SOLDTO_NUMBER ET_BON_AG_SOLDTO_NUMBER

/BON/T_BON_ALL_CUST_INFO ET_BON_ALL_CUST_INFO

MKTRT_AGREEMENT_CUST_INFO ET_CRMR_AG_CUST_INFO

CRMT_MKTGS_COND_IF_TGP_DER_BP ET_TGP_DERIVED_BPS

/BON/SOLDTO_NUMBER EV_BON_SOLDTO_NUMBER

ABAP_BOOL EV_SUCCESS

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Maintain rebates before maintaining conditions

________________________________________________________________________

MAINTAIN_REBATES

Private MAINTAIN_REBATES(

IMPORTING

CRM_MKTPL_COND_IF_CUSTOMERX IS_CUSTOMERX

/BON/T_BON_ALL_CUST_INFO IT_BON_ALL_CUST_INFO

EXPORTING

/BON/T_AG_SOLDTO_NUMBER ET_BON_AG_SOLDTO_NUMBER

MKTRT_AGREEMENT_CUST_INFO ET_CRMR_AG_CUST_INFO

/BON/SOLDTO_NUMBER EV_BON_SOLDTO_NUMBER

ABAP_BOOL EV_SUCCESS

)

Handles rebate agreement adjustment / creation

________________________________________________________________________

PREPARE_ATTRIBUTES_4_COND_TYPE

Private /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_COND_TYPE(

IMPORTING

/SAPCND/COND_TYPE IV_COND_TYPE

/SAPCND/USAGE IV_COND_USAGE

)

Prepare attribute table for a condition type

________________________________________________________________________

PREPARE_ATTRIBUTES_4_DISC_AGRS

Private /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_DISC_AGRS( )

Prepare attribute table for Sales Volumes calls

________________________________________________________________________

PREPARE_ATTRIBUTES_4_PROD_CAT

Private /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_PROD_CAT(

IMPORTING

COMT_CATEGORY_ID IV_PROD_CAT

)

Prepare attribute table for a product category

________________________________________________________________________

PREPARE_ATTRIBUTES_4_PROD_GRP

Private /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_PROD_GRP(

IMPORTING

CRM_MKTPL_PROD_GROUP IV_PROD_GROUP

CRM_MKTPL_PROD_GRP IV_PROD_GROUP_NO

)

Prepare attribute table for a product group

________________________________________________________________________

PREPARE_ATTRIBUTES_4_RBT_AGRS

Private /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_RBT_AGRS( )

Prepare attribute table for Sales Volumes calls

________________________________________________________________________

PREPARE_ATTRIBUTES_4_USAGE

Private /SAPCND/T_ATTRIB_VALUE_INT PREPARE_ATTRIBUTES_4_USAGE(

IMPORTING

/SAPCND/USAGE IV_COND_USAGE

)

Prepare attribute table for a condition usage

________________________________________________________________________

PREPARE_WORKING_SET_ITEM

Private PREPARE_WORKING_SET_ITEM(

IMPORTING

CRM_MKTPL_COND_IF_CUSTOMERX IS_CUSTOMERX

CRM_MKTPL_COND_IF_CUST_DATAX IS_CUST_DATAX

CRMT_CND_GEN_ATTRIBS IS_GEN_ATTRIBS

/BON/T_AG_SOLDTO_NUMBER IT_BON_AG_SOLDTO_NUMBER

/BON/T_BON_ALL_CUST_INFO IT_BON_ALL_CUST_INFO

MKTRT_AGREEMENT_CUST_INFO IT_CRMR_AG_CUST_INFO

CRMT_MKTGS_COND_IF_TGP_DER_BP IT_TGP_DERIVED_BPS

/BON/SOLDTO_NUMBER IV_BON_SOLDTO_NUMBER

J_ISTAT IV_PROJECT_STATUS

/SAPCND/WORKING_SET_NAME IV_WS_NAME_BROAD

EXPORTING

DATA ER_WORKING_SET_ITEM

ABAP_BOOL EV_SUCCESS

)

Prepare working set item for Pricing Condition Generation

________________________________________________________________________

REBATE_MATERIAL_DETERMINATION

Private REBATE_MATERIAL_DETERMINATION(

EXPORTING

ABAP_BOOL EV_SUCCESS

CHANGING

CRMT_MKTGS_INT_PREP_ATTR_PR CT_INT_PREP_ATTRIBS

)

Used by maintain_bon_ag to determine prods for rebates

________________________________________________________________________

UNDELETE_CONDITION_RECORDS

Private UNDELETE_CONDITION_RECORDS(

EXPORTING

ABAP_BOOL RV_SUCCESS

CHANGING

DATA IT_WORKING_SET_UDL

)

Un-Deletes old condition records

________________________________________________________________________

UPDATE_TRADE_SPENDS

Private UPDATE_TRADE_SPENDS(

IMPORTING

CRMT_CND_GEN_ATTRIBS_T IT_GEN_ATTRIBS

EXPORTING

BOOLEAN EV_SUCCESS

)

Update trade spends since conditions are created

________________________________________________________________________

UPDATE_VADAT_FIELDS

Private UPDATE_VADAT_FIELDS(

IMPORTING

ANY IS_WORKING_SET_ITEM_NEW

ANY CS_WORKING_SET_ITEM_OLD

)

Update the VADATA (Z fields) in the old working set






Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 43697 Date: 20190616 Time: 091418     sap01-206 ( 79 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.