BAdI: Additional Activities Before and After Packing
BAdI: Additional Activities Before and After Packing
Use
This Business Add-In (BAdI) is used in the Extended Warehouse Management (EWM) component.
This BAdI includes the methods VALIDATE_BEFORE_REPACKING and UPDATE_HU_AFTER_REPACKING. Both methods of this BAdI are called as part of the following repacking transactions in the work center:
- Repacking a product item into another handling unit (HU)
- Repacking a product item using the inactive product warehouse task (such as deconsolidation)
- Packing an HU into another HU
You can use method VALIDATE_BEFORE_REPACKING to add your own checks before repacking. If you implementation ends with an exception, the repacking transaction is cancelled.
You can use method UPDATE_HU_AFTER_REPACKING to change the destination HU after successfully repacking. For example, you can round weights or copy the consolidation group.
Requirements
The methods only run when repacking in a transaction in the radio frequency framework or the user interface of the work center.
Standard settings
In the standard system, the default implementation /SCWM/CL_EI_WRKC_REPACK is activated. This checks the consolidation group for each repacking transaction, for example, to see whether the consolidation group of the item matches the consolidation group of the destination HU.
The BAdI is designed for multiple use.
The BAdI is filter-dependent.
Activities
For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs – Embedding in the Enhancement Framework.
See also:
The BAdI uses the interface /SCWM/IF_EX_WRKC_REPACK. For more information, display the interface in the Class Builder.