SAP ABAP IMG Activity MRM_ERS_IDAT_MODIFY (BAdI to Change Document Lines in ERS)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   MM-IV-LIV (Application Component) Logistics Invoice Verification
     MRM_BADI (Package) Business Add-Ins in Invoice Verification
IMG Activity
ID MRM_ERS_IDAT_MODIFY BAdI to Change Document Lines in ERS  
Transaction Code S_AC0_52000864   (empty) 
Created on 20050406    
Customizing Attributes MRM_ERS_IDAT_MODIFY   BAdI to Change Document Lines in ERS 
Customizing Activity MRM_ERS_IDAT_MODIFY   BAdI to Change Document Lines in ERS 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name MRM_ERS_IDAT_MODIFY    

Use

This Business Add-In is used in the component MM-IV.

You can use it to change the document lines of vendor invoices in the automatic settlement of planned delivery costs (ERS).

It is realized in the reports RMMR1MRS and RMMR1MDC. The auxiliary module MRMBADI_ERS_IDAT_MODIFY is invoked, which, in turn, contains the actual invocation of the BAdI MRM_ERS_IDAT_MODIFY. Here a check is first made as to whether the Business Add-In is active.

The following data is made available to the Business Add-In:

  • I_SEGTAB (Header and item data for the settlement of planned delivery costs)

The Business Add-In returns the following data:

  • E_SEGTAB_DC_CHANGE (Document fields that can be changed)
  • E_CHANGE (Must be set to 'X' for the changes to be adopted)

Requirements

Standard settings

The Business Add-In cannot be used multiple times.

The Business Add-In is not filter-dependent.

There is no default implementation.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

Business Attributes
ASAP Roadmap ID 153   Design enhancements 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG MRM_ERS_IDAT_MODIFY 0 HLA0100773 ERS 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050406 
SAP Release Created in 600