Ansicht
Dokumentation
CRM_MKTPL_AGR_OVL_CH - BAdI: Overlap Check for Trade Promotion Agreements
ABAP Short Reference rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
You can use this Business Add-In (BAdI) for trade promotion agreements. This BAdI executes the automated overlap check for trade promotion agreements every time the status of the trade promotion agreement in the overview page changes.
The BAdI interface name is IF_EX_CRM_MKTPL_AGR_OVL_CHECK.
The default implementation is called CL_CRM_MKTPL_AGR_OVL_CHECK. It contains the following methods:
- IF_EX_CRM_MKTPL_AGR_OVL_CHECK~OVERLAP_CHECK
- QUERY_DATE_RANGES
IF_EX_CRM_MKTPL_AGR_OVL_CHECK~OVERLAP_CHECK
This method controls the entire agreement overlap logic. The method is called every time the status of the trade promotion agreement in the overview page changes. The call is located inside the OVERLAP_CHECK method of the CL_CRM_MKTPL_AGR_OVL_CHK_HNDLR class.
The method contains the following parameters:
Name | Type | Data Type |
---|---|---|
IV_AGR_ID | Importing | CRM_MKTPL_EXTERNAL_ID |
IV_MESSAGE_TYPE | Importing | BAPI_MTYPE |
IS_CUSTOMER | Importing | CRMS_MKTPL_AGR_CUST |
IS_DATE | Importing | CRMS_MKTPL_AGR_DATE |
IT_PRODUCT | Importing | CRMT_MKTPL_AGR_PRODUCT |
ET_MESSAGE | Exporting | CRMT_MKTPL_DEF_RETURN |
EV_SUCCESS | Exporting | CRMT_BOOLEAN |
QUERY_DATE_RANGES
This method executes the query required to retrieve agreements with overlapping planned dates.
The method contains the following parameters:
Name | Type | Data Type |
---|---|---|
IS_DATE | Importing | CRMS_MKTPL_AGR_DATE |
IT_QUERY | Importing | CRMT_MKTPL_QUERY_TAB |
IT_OBJECT_TYPES | Importing | CGPL_OBJECT_TYPES |
IR_MKTPL_QUERY | Importing | CL_CRM_MKTPL_QUERY |
RT_QUERY_RESULT | Returning | CRMT_MKTPL_IB_AGR_RESULT_LIST |
In the standard system, the BAdI is activated. The default coding is executed automatically by the Save event when the trade promotion agreement status has been changed.
The overlap check flow is summarized as follows:
- The system triggers an overlap check based on the events defined in the IMG activity Define Status-Driven Events.
- The system checks the IMG activity Define Attributes for Trade Promotion Agreement Overlap Checks for the attributes to be compared between the trade promotion agreement and other trade promotion agreements in the system.
- The system checks the IMG activity Define Statuses to Ignore for Overlap Checks for status types to ignore for the overlap check.
- The system displays the message type defined in the IMG activity Define Status-Driven Events.
If you deactivate the BAdI, overlap 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.
rdisp/max_wprun_time - Maximum work process run time General Material Data
This documentation is copyright by SAP AG.
Length: 5495 Date: 20240523 Time: 165940 sap01-206 ( 140 ms )