Ansicht
Dokumentation

SIMG_MB_ACCOUNT_DIST - BAdI: Multiple Account Assignment - Redistribution in Goods Receipt

SIMG_MB_ACCOUNT_DIST - BAdI: Multiple Account Assignment - Redistribution in Goods Receipt

Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Goods Receipt component (MM-IM-GR).

You can use this BAdI to redefine the distribution across individual account assignments when entering a valuated goods receipt for an order item with multiple account assignment. You must distribute the full delivery quantity (100%) of the goods receipt to the account assignment items. You cannot change the account assignment category or the account assignments that were selected in the purchase order.

This BAdI is called during goods receipt processing. First, distribution to the individual account assignment items follows the specifications in the purchase order. In case of a partial goods receipt, the value of the partial invoice indicator is also read. You can then change the distribution with this BAdI.

Note:
You cannot use this BAdI when entering services or reversals. In addition, you cannot use this BAdI if you want to perform a complete return delivery of the whole goods receipt quantity of the referenced purchase order item.

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

You can only change the distribution defined in the purchase order if you have defined the following in the item details of the purchase order item:

  • The purchase order item has multiple account assignment
  • A valuated goods receipt is expected for the purchase order item

As standard, no BAdI implementation is activated.

This BAdI is not for multiple use and is not filter dependent.

You can use the example implementation CL_EX_MB_ACCOUNTING_DISTRIBUTE to call an additional screen when entering return deliveries, on which you can use the new quantity distribution. The example implementation calls function module MBAA_MANUAL_DISTRIBUTE.

The system proposes the distribution defined in the purchase order for the distribution of the entered quantity. You can change this distribution to individual account assignments manually on the screen. You can then choose whether the system checks the material document, restores the distribution originally proposed, or posts the material document.

Manual redistribution when entering valuated goods receipts is not possible if any of the following apply:

  • The material document is to be posted via BAPIs.
  • The invoice surplus at the time of goods receipt cannot be completely cleared by posting the entered quantity at item level.
  • The entered quantity exceeds the goods receipt surplus at the time of goods issue, so that posting of the goods issue quantity would lead to an invoice surplus.
  • The purchase order item is distributed by amount.
  • Deliveries can still be received for account assignment items with a final account assignment indicator, and the entered quantity is not sufficient to clear the open quantities of these account assignment items.

Note:
For a partial goods receipt, the system first distributes the goods receipt surplus of the goods receipt quantity on a fill-up basis, up to the final account assignment quantity, to all account assignment items with a final account assignment indicator. You cannot change this fill-up distribution manually.

Next, the system distributes the remaining goods receipt quantity to all items without a final account assignment indicator, in accordance with your settings in the partial invoice indicator. You can overwrite this distribution proposal manually.

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.

To display sample code, in the BAdI Builder choose Goto -→ Sample Code -→ Display.

Method
Change Distribution to Account Assignment Items






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.

Length: 5033 Date: 20240523 Time: 194252     sap01-206 ( 138 ms )