SAP ABAP IMG Activity MRM_DISTRIBUTION_MAA (BAdI: Distribution of Total Quantity and Amount to Multiple Account Assgmts)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       MRM (Package) Appl.development R/3 decentralized invoice verification
IMG Activity
ID MRM_DISTRIBUTION_MAA BAdI: Distribution of Total Quantity and Amount to Multiple Account Assgmts  
Transaction Code S_PR0_40000680   (empty) 
Created on 20070322    
Customizing Attributes MRM_DISTRIBUTION_MAA   BAdI: Distribution of Total Quantity and Amount to Multiple Account Assgmts 
Customizing Activity MRM_DISTRIBUTION_MAA   BAdI: Distribution of Total Quantity and Amount to Multiple Account Assgmts 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name MRM_DISTRIBUTION_MAAS    

Use

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)

Requirements

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

Standard settings

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

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

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.

Further Hints

AMOUNT_QUANTITY_DISTRIBUTE

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  20080305 
SAP Release Created in 700