Hierarchy

⤷

⤷

IMG Activity
ID | VBDOCUBATCH | BAdI: Documentary Batch |
Transaction Code | S_PL0_86000011 | (empty) |
Created on | 20040127 | |
Customizing Attributes | VBDOCUBATCH | BAdI: Documentary Batch |
Customizing Activity | VBDOCUBATCH | BAdI: Documentary Batch |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | DOCUBATCH_PRODUCT |
Title
BAdI: Documentary Batches
Use
You can use this Business Add-In (BAdI) to influence the use of documentary batches.
This Business Add-In (BAdI) is used in the component Batch Management (LO-BM).
You can use the following methods:
- You can use the method PRODUCT_CHANGE to override the settings for the material type and, for example, permit the entry of documentary batches for certain materials or plants.
- You can use the method PROCESS_CHANGE to override the settings for process steps.
This method is called when the system checks for the first time whether documentary batches are used for document items. - You can use the method DOCUBATCHES_PRELOAD to allow the system to enter documentary batches.
This method is called only once for each document item, for example, before you enter the documentary batches on the detail screen or before you post a document. - You can use the method BATCH_MASTER_CREATE to override the Customizing setting for the material type for the automatic creation of a material master in the background. In other words, you can decide whether a batch master record is created, depending on the process step and additional information (order number and so on).
- You can use the method BATCH_NUMBER_CHECK to check the admissibility of the documentary batch numbers that have been entered.
Requirements
Standard settings
This BAdI is not active in the standard system.
This BAdI is not filter-dependent in the standard and cannot be reused.
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:
- 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. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- 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.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - 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: - Choose Activate.
When the application program is executed, the code you created is run through.
Example
See also
Methods
Change Material Settings (PRODUCT_CHANGE)
Change Process Step Settings (SETTINGS_CHANGE)
Preload Documentary Batches (DOCUBATCHES_PRELOAD)
Change Setting 'Create Batch Master' (BATCH_MASTER_CREATE)
Check Documentary Batch Number (BATCH_NUMBER_CHECK)
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 | 20040129 |
SAP Release Created in | 500 |