SAP ABAP IMG Activity SIMG_MB_ACCOUNT_DIST (BAdI: Multiple Account Assignment - Redistribution in Goods Receipt)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       MB (Package) Application development R/3 inventory management
IMG Activity
ID SIMG_MB_ACCOUNT_DIST BAdI: Multiple Account Assignment - Redistribution in Goods Receipt  
Transaction Code S_PR0_40000320   (empty) 
Created on 20061221    
Customizing Attributes SIMG_MB_ACCOUNT_DIST   BAdI: Multiple Account Assignment - Define Distribution in Goods Receipt 
Customizing Activity SIMB_MB_ACCOUNT_DIST   BAdI: Multiple Account Assignment - Redistribution in Goods Receipt 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name MB_ACCOUNTING_DISTRIBUTE    

Use

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.

Requirements

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

Standard settings

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.

Activities

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example

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

See also:

Method
Change Distribution to Account Assignment Items

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20080304 
SAP Release Created in 700