Ansicht
Dokumentation

/AFS/MM_ROUND - BADI for Rounding in Purchasing Documents

/AFS/MM_ROUND - BADI for Rounding in Purchasing Documents

BAL_S_LOG - Application Log: Log header data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

You should only round for specific changes or when creating an item. You can meet these requirements when you implement this BAdI.

Create a new implementation for the BAdI.

You can control rounding in the purchasing documents by using this BAdI. If you do not create and activate an additional implementation, rounding will take place according to the previous rules. You can find the default implementation under /AFS/MM_ROUND_EX.

If you create a new implementation, an implemented class with the method /AFS/IF_EX_MM_ROUND~/AFS/ROUND is automatically generated. The following data is available in this method:

  • Material number

  • Number of the purchasing info record

  • Sales organization

  • Plant

  • Vendor number

  • Number of the condition record grid

  • Material grid number

  • Validity date of the material grid

  • Base unit of measure

  • Denominator for the conversion to base units of measure

  • Target quantity

  • Item number of the purchasing document

  • AUTOMKZ and ROUNDKZ: These indicators are important if you want to use the function module J_3A_ROUND_MM for rounding. If AUTOMKZ is set to 'X', the system automatically rounds. In this case you must set the field ROUNDKZ to 'UP','DO' (down),or 'NE' (to nearest) If the field ROUNDKZ has the value 'NO' no rounding will take place.

  • J_3AROMM: Call the transaction SE11 and learn the structure of the table type J_3AROMM_T. The table type consists of lines with the category J_3AROMM. The system transfers the rounded schedule lines in this table to the application program.






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

Length: 2553 Date: 20240329 Time: 023302     sap01-206 ( 39 ms )