Batch Management Userexits and BAdIs
One important part of any module is the userexits and BAdIs. Sometimes it is not easy to find. In this document, I will provide you the most important objects to use.
Just a few observations:
- Function Modules VB_CREATE_BATCH and VB_CHANGE_BATCH are the responsible for create and change batches internally.
- Standard batch characteristics are those which begins with letters “LOBM_”.
It is called in MSC1N and MSC2N to validate user’s input.
It is called in Function Modules VB_CREATE_BATCH and VB_CHANGE_BATCH to set/change master data. It is also called in transaction MIGO.
It is called in MM coding (MB1A, MB1B, MB1C, etc) but only for new batches.
It is called in Function Modules VB_CREATE_BATCH and VB_CHANGE_BATCH to determine whether classification and exits should be executed. In other words, it’s possible make the system ignore the classification routines. Just set the parameters TYPE_OF_CLASSIFYING and EXTENDED_CLASSIFYING accordingly.
It’s called in VB_CREATE_BATCH and VB_CHANGE_BATCH to set/change free characteristics. Free characteristics are those that do not begin with “LOBM_”.
It is used to fill the classification data in MM transactions.
Batch numbering – internal
Replacement of the number range, decision for internal or external numbering.
Assignment of customer-specific batch number. Also used to assign an existing batch (allow_existing_batch) via VB_CREATE_BATCH.
Called in MM coding to assign existing batches.
Batch numbering – external
Replacement of the number range, decision customer-specific check.
Check of batch number based on customer rules.
Batch status management
Determination of the initial status of a batch.
It’s used to set VFDAT/HSDAT and switch off SLED management.
It has similar functionality as BAdI VB_SLED_MANAGEMENT
Batch Information Cockpit
Add additional columns to selection result master and selection result stock.
Allows defining actions for batches in the selection result (for example, change of batch status).
Definition of custom selection screen and selection logic.
Batch Where-Used List
Allows fine-tuning the selection for each object (batch, PO, production order).
Pre-determines plant for the selection screen of BWUL.
Allows reading external batches for a subcontracting process.
Allows filling additional columns into Batch Where-Used List.
- Allows to activate/deactivate derivation during goods movement;
- Allows to set parameter ‘current senders only’;
- Changes BWUL explosion and BWUL result;
- Changes values of derived fields/characteristics.
Can be used instead of the standard selection to select batches from stock. It’s important to point out that the standard batch selection won’t work after the BAdI activation.
It is used to change the selection criteria (it will generate a new CUOBJ).
It is used to change the selection criteria (will generate a new CUOBJ)
Allows changing the communication structures BDCOM, KOMKH, KOMPH. These structures are used in function module VB_BATCH_DETERMINATION. For more information you can access document Batch Determination – Debug Tips