Ansicht
Dokumentation

MRM_DISTRIBUTION_MAA - BAdI: Distribution of Total Quantity and Amount to Multiple Account Assgmts

MRM_DISTRIBUTION_MAA - BAdI: Distribution of Total Quantity and Amount to Multiple Account Assgmts

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Logistics Invoice Verification (MM-IV-LIV) component.

When you use the transactions of Logistics Invoice Verification, the system shows you the quantities and amounts for individual account assignments on the multiple account assignment screen. If you enter a total quantity or total amount, these values are automatically distributed among the account assignments.

Business Add-In MRM_DISTRIBUTION_MAAS enables you to implement customer-specific distribution logic, instead of the values determined by the system.

Function module MRMBADI_DISTRIBUTION_MAAS checks whether there is an active implementation of this Business Add-In.

If there is, method AMOUNT_QUANTITY_DISTRIBUTE is called. After the values from method AMOUNT_QUANTITY_DISTRIBUTE are returned, various consistency checks are made in the function module (for example, a check for negative values). If the values you generated are not consistent, you see an error message on the multiple account assignment screen. The fields for entering the total quantity and the total amount are ready for input.

The quantity in the purchase order price unit is automatically calculated by the Business Add-In by using the default quantities you determined and other application information.

Note: the standard logic for distributing a total quantity and total amount to individual account assignments is not used. Instead, the system uses the distribution logic that you define in the Business Add-In.

This Business Add-In is used by the following transactions:

  • Enter Invoice (MIRO)
  • Park Invoice (MIR7)

You have activated business function MM, Multiple Account Assignment (LOG_MM_MAA_1).

  • This Business Add-In is not active in the standard system.
  • This BAdI cannot be used multiple times.
  • This BAdI is not filter dependent.

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.

You have created a purchase order with multiple account assignments, but no goods receipt has been posted for it. In this case, the system does not generate default values, because there is no open goods receipt quantity. You now have the option of entering a total quantity and a total amount on the multiple account assignment screen. You can use this Business Add-In to disregard the standard logic and distribute values to the account assignments according to the distribution defined in the purchase order instead.

AMOUNT_QUANTITY_DISTRIBUTE






CL_GUI_FRONTEND_SERVICES - Frontend Services   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3592 Date: 20240523 Time: 191401     sap01-206 ( 128 ms )