SAP ABAP IMG Activity MB_RESERVATION_BADI (BAdI: Checking/Supplementation of Dialog Data for Transactions MB21/MB22)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       MB0C (Package) Customizing R/3 inventory management
IMG Activity
ID MB_RESERVATION_BADI BAdI: Checking/Supplementation of Dialog Data for Transactions MB21/MB22  
Transaction Code S_AL0_96000655   (empty) 
Created on 20020110    
Customizing Attributes MB_RESERVATION_BADI   BAdI: Checking/Supplementation of Dialog Data for Transactions MB21/MB22 
Customizing Activity MB_RESERVATION_BADI   BAdI: Checking/Supplementation of Dialog Data for Transactions MB21/MB22 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name MB_RES_DIALOG    

Use

Application component: MM-IM-RS

In the transactions Create Reservation (MB21) and Change Reservation (MB22), it is now possible to prepopulate screen fields, or check the data entered in the dialog according to your own defined rules.

With the Business Add-In (BAdI) MB_RESERVATION_BADI, this is now possible for item data (but not at all for account assignment fields and is only restricted for header fields).

The Business Add-In offers two methods that are called on the item screen of transactions MB21 and MB22.

  • The method DATA_MODIFY is called before the user can make entries on the detail screen. It is therefore possible to prepopulate fields or postprocess entries from the multiple-entry screen.
  • In a second step, method DATA_CHECK can be used to check entries in header or item fields and output a message if necessary.

Requirements

Standard settings

In the standard system, the Business Add-In is not active.

There is also no default code that would run without an active implementation.

The Business Add-In is not filter-dependent.

The Business Add-In cannot be used more than once.

Activities

To activate the Business Add-In, you must create an active implementation. Do this in Inventory Management and Physical Inventory Customizing and choose the relevant activity under Maintain Customer-Exits and Business Add-Ins.

For more information about this procedure, see the SAP Library under

  • Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.

Example

Further notes

Documentation on BAdI methods:

Complete and Correct Dialog Data
DATA_MODIFY

Check Dialog Data
DATA_CHECK

You can also call the documentation on the BAdI method via the menu, by carrying out the following steps:

  1. Choose the tab page Interface.
  2. Double-click on the relevant method.
  3. Click on the right mouse button and choose Component documentation.

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