SAP® Documentation

Single view

CL_BADI_CMM_MTM_ACC - Class for BAdI Implementation BADI_CMM_MTM_ACC

rdisp/max_wprun_time - Maximum work process run time   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book


This class can be used as an example implementation of the BAdI: Enhancements for MtM Accounting(BADI_CMM_MTM_ACC).



This class includes the following methods:

    With this method, a simple implementation is provided to map and to transfer additional fields from the mark-to-market structure to agency business document structures.
    This method is used to round the mark-to-market value.
    In this example, the function module ROUNDrounds up.
    With this method you can populate the selection criteria with new customer UI fields.
    As prerequisite, you have to perform the following steps:
  1. To enhance the UI, implement the new field P_NEWDT in the include ZCMM_MTM_ACC_S01.
  2. Enhance structure CMM_MTM_ACC_S_SEL_CRIT by an append structure with the new field NEW_DATE. The example implementation uses the new UI field P_NEWDT with data type DATS.
    This example implementation supports, beside others, the following functions:
  • In the standard situation without this BAdI implementation, a settlement request list (KOMZRLE) has more than one settlement request (KOMZRKE), whereas each request contains only one document item (KOMZRPE).
    Withthis BAdI implementation the system aggregates these settlement requests (KOMZRKE) into one single settlement request, containing all document items (KOMZRPE) now.

  • With this example implementation, and depending on a billing type, a selected G/L account can be assigned to a profit center.


Further information

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.

Length: 2268 Date: 20190619 Time: 093752     sap01-206 ( 15 ms )

Our Service

Looking for Support? Questions?




Leave us your contact details and we will call you back. Panels marked with * are mandatory.