Ansicht
Dokumentation
CRM_MKTPL_AGR_VALIDA - BAdI: Validation for Trade Promotion Agreements
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
You can use this Business Add-In (BAdI) for trade promotion agreements. Trade promotion agreement validation ensures that a trade promotion agreement and its related trade promotions are consistent. Trade promotion agreements and trade promotions are considered consistent if:
- The trade promotion agreement and related trade promotions have matching account details
- The date range of the trade promotion is within or equal to the trade promotion agreement date range
Trade promotion agreement validation is performed when you save a trade promotion agreement that has related trade promotions.
The BAdI interface name is IF_EX_CRM_MKTPL_AGR_VALIDATE. This interface contains two methods:
- VALIDATE_AGREEMENT
- VALIDATE_TP
VALIDATE_AGREEMENT
This method validates the account and date range details for the trade promotion against the trade promotion agreement details.
The following table summarizes the input parameters and their related types for VALIDATE_AGREEMENT.
Name | Type | Data Type |
---|---|---|
IV_AGR_GUID | Importing | CRM_MKTPL_AGR_CUST |
IS_AGR_CUSTOMER | Importing | CRMS_MKTPS_AGR_CUST |
IS_AGR_DATE | Importing | CRMS_MKTPS_AGR_DATE |
RT_MESSAGE | Exporting | CRMT_MKTPL_DEF_RETURN |
VALIDATE_TP
This method validates the account and date range details for the trade promotion agreement against the trade promotion details.
The following table summarizes the input parameters and their related types for VALIDATE_TP.
Name | Type | Data Type |
---|---|---|
IV_TP_GUID | Importing | CRM_MKTGS_GUID |
IS_TP_CUSTOMER | Importing | CRMS_MKTPS_AGR_CUST |
IS_TP_DATE | Importing | CRMS_MKTPL_AGR_DATE |
RT_MESSAGE | Exporting | CRMT_MKTPL_DEF_RETURN |
In the standard system, the BAdI is activated. The default coding is executed automatically by the Save event.
The validation flow is summarized as follows:
- The system checks to see if a key attribute has been changed.
- The system executes GET_RELATED_TRADE_PROMOTIONS.
- For each trade promotion related to the trade promotion agreement, the system:
- Checks that the trade promotion account name matches the trade promotion agreement account name, and that the trade promotion date range matches the trade promotion agreement date range
- Prepares the relevant message based on the outcome of the dimension checks
- The system displays the relevant message.
If you deactivate the BAdI, consistency checks are not performed. The BAdI remains in the system and can be reactivated.
For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.
ABAP Short Reference Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 4959 Date: 20240523 Time: 152507 sap01-206 ( 104 ms )