当上架的时候需要对仓位按照一定业务要求过滤时,可以通过增强实现.
BAdI: Filter and Sort Possible Storage Bins
Use
This Business Add-In (BAdI) is used in the Extended Warehouse Management (SCM-EWM) component. You use this BAdI to filter and sort destination bin candidates for storage types in different contexts.
This BAdI is called with normal or bulk storage behaviour when bins for additional quantities are searched. In this case, it is possible to sort or filter the available stock that was found on storage bin candidates. It is not possible to append additional destination data in this context.
This BAdI is also called when searching for empty destination bins to sort or filter the list of candidates based on either data that was selected from the database or from a buffered table in case multiple requests are handled within the same Logical Unit Work (LUW). In both cases, it is possible to sort or filter the candidates but it is not possible to append additional destination data in this context.
When using a near fixed bin scenario, the BAdI is called to offer the possibility of sorting or filtering storage bin candidates that are located in the reserve storage type of the used putaway strategy. It is allowed to append additional destination data in this context. For example, this can be used to assign a reserve bin in an aisle that differs from the aisle of the related fixed bin.
The different contexts can be distinguished by the changing parameters provided. The system runs this BAdI when you create a warehouse task (WT).
When searching empty bins, a buffer is used when calling the BAdI for identical destination data multiple times in the same LUW. As a result, any filtered candidates that were removed within a BAdI implementation will not be provided again in the next calls within the same LUW.
Standard settings
This BAdI definition uses the /SCWM/IF_EX_CORE_PTS_FILT_SORT interface. For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18)
In the standard system, there is no activated BAdI implementation.
The BAdI is not designed for multiple use.
The BAdI is filter-dependent. Create an implementation for each warehouse number required.
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.