SAP ABAP IMG Activity BADI_MRM_DINV_VALID (BAdI: Invoice Validation)
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 BADI_MRM_DINV_VALID BAdI: Invoice Validation  
Transaction Code S_EBS_44000353   (empty) 
Created on 20110119    
Customizing Attributes BADI_MRM_DINV_VALID   BAdI: Invoice Validation 
Customizing Activity BADI_MRM_DINV_VALID   BAdI: Invoice Validation 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name MRM_DINV_VALIDATION    

Use

This Business Add-In (BAdI) belongs to the Logistics Invoice Verification (MM-IV-LIV) component.

You can use the BAdI to decide (using the header data of the invoice, the item data, and the price determination data) for each invoice item relevant for differential invoicing whether the invoice document may be posted. The BAdI is run when a provisional invoice, differential invoice, or final invoice is created (or changed). The criteria implemented in the BAdI are used to decide whether an item is valid. You can use the message log table to place the messages from the check performed in the BAdI into the check log.

Requirements

Use the BAdI with the business function LOG_MM_COMMODITY switched on and the switch MM_SFWS_DINV_01 activated.

Standard settings

The BAdI is not filter-dependent.

The BAdI can be used more than once.

The BAdI example implementation is not active in the standard SAP system.

Activities

Example

An example implementation is available in the class CL_EXM_MRM_DINV_VALIDATIONS.

In this example, the following behavior is defined:

The invoice item is permitted if the following two conditions are met:

  • All related CPE conditions have the status 01 (evaluation with final rules completed successfully).
  • A usage decision is set for the batch for the invoice item.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
BADI_MRM_DINV_VALID BR Brazil
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20110909 
SAP Release Created in 606