SAP ABAP IMG Activity OCHA_BADI_GET_PLANT (Business Add-In: Enhancement to Automatic Plant Determination)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM-BF (Application Component) Basic Functions
     VB (Package) Application Development R/3 Batches
IMG Activity
ID OCHA_BADI_GET_PLANT Business Add-In: Enhancement to Automatic Plant Determination  
Transaction Code S_P6B_12000035   (empty) 
Created on 20030402    
Customizing Attributes OCHA_BADI_GET_PLANT   Business Add-In: Enhancement to Automatic Plant Determination 
Customizing Activity OCHA_BADI_GET_PLANT   Business Add-In: Enhancement to Automatic Plant Determination 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name VB_GET_POS_PLANT    

Use

Application component: VB

Transaction: MB56

You can use Business Add-In (BAdI) VB_GET_POS_PLANT to modify the automatic plant selection for material number and batch to customer requirements. The direction of explosion, material number, and batch are returned via the interface of method 'GET_PLANT'. A suitable plant can be determined in the customer-specific implementation using this data. If several possible plants are found, a selection popup can be sent in the BAdI. The determined or selected plant is returned to the calling transaction with the interface parameter 'e_werks'.

If no plant is selected with the customer-specific implementation, the standard search is executed as in the standard after running through the BAdI.

Requirements

Material number and batch must be entered.

Standard settings

  • The Business Add-In does not have any filters.
  • The Business Add-In cannot be used multiple times.

Activities

To activate the Business Add-In, you must create an active implementation. To do this, choose the following path in the SAP Menu: Tools -> ABAP Workbench -> Utilities -> Business Add-Ins -> Implementation

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

The BAdI is shipped with a sample implementation in which the plant search is executed with batch usages that have already been posted (table CHVW)

Further notes

Documentation on method:

Plant Determination for Batch Where-Used List

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 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  20030402 
SAP Release Created in 470