Ansicht
Dokumentation
/SCWM/TO_READ_DES - Read WT for Destination Data
BAL Application Log Documentation ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
You can use this function module to read warehouse tasks (WTs) based on destination data such as destination storage bin or destination handling unit (HU). The data retrieval is controlled by the input parameters.
The system validates the passed input parameters before the retrieval. The data can be retrieved from the database or from internal memory tables.
The buffered read only works if the same function module is called again with the same combination of input parameters. The input parameter combination is stored in an internal index table which is validated at the beginning of the data retrieval. for example, if you call the function module the first time with several storage bins in the input parameter IT_LGPLA and the second time for a single storage bin IV_LGPLA, the buffer is not used even if the storage bin was part of the first call.
The internal memory tables are cleared after the central EWM cleanup (method /SCWM/CL_TM=>CLEANUP) is called.
Parameters
This function module has the following parameters:
- IV_LGNUM
- See Warehouse Number
- IV_LGTYP
- See Storage Type
- IT_LGTYP
- Table of single storage type values
- IV_LGPLA
- See Storage Bin
- IT_LGPLA
- Table of single storage bin values
- IV_RSRC
- Resource
- IT_RSRC
- Table of single resource values
- IV_TU_NUM
- Internal transportation unit (TU) number
- IT_TU_NUM
- Table of single TU values
- IV_HUIDENT
- Handling unit
- IT_HUIDENT
- Table of single handling unit values. The structure which is basis of this table contains other fields such as LGNUM (Warehouse Number) and VHI (Virtual Handling Unit Indicator). These fields are not taken into account for the retrieval. Therefore setting the field HUIDENT is sufficient.
- IV_NOBUF
- Controls whether the function module reads data from internal memory tables or from the database. The following values are possible:
- Space: Reads data from memory
- X: Reads data from database
- IV_ADD_TO_MEMORY
- Adds the retrieved WTs to internal memory tables. If you call the function module with the same values in the input parameter again, the data is retrieved from the internal memory table instead of the database. Reading from the internal memory tables is faster than reading from the database. The system does not read from internal memory tables if you set the parameter IV_NOBUF to 'X' or if you call the function module with a combination of input parameters the first time.
- The following values are possible:
- Space: Does not add retrieved warehouse tasks to internal memory tables
- X: Default value. Adds retrieved warehouse tasks to internal memory tables.
- ET_ORDIM_O
- Result table with open WTs
- ET_ORDIM_C
- Result table with confirmed and canceled WTs
- ET_ORDIM_L
- Result table with WT logs. WT log entries are not related to the existing application log entries which are written, for example, during WT creation.
- ET_ORDIM_E
- Result table with exception codes for WTs
- ET_ORDIM_H
- Result table with implicit product movements for HU WTs. The basis for this exporting parameter is the database table /SCWM/ORDIM_H. Entries to this database table are written based on the setting Do Not Explode Products (field HUMOVE_PROD) in the Customizing for storage types. Accordingly, the system cannot read any entries if the storage types are customized not to write product movement data.
- ET_ORDIM_LS
- Result table with serial numbers for WT logs. Entries in this table are only written for products with a serial number profile with the serial number requirement C. WT log entries are not related to the existing application log entries which are written, for example, during WT creation.
- ET_ORDIM_OS
- Result table with serial numbers for open WTs. Entries in this table are only written for products with a serial number profile with the serial number requirement C.
- ET_ORDIM_CS
- Result table with serial numbers for confirmed WTs. Entries in this table are only written for products with a serial number profile with the serial number requirement C.
- ET_ORDIM_HS
- Result table with serial numbers for HU movements for WTs. Entries in this table are only written for products with a serial number profile with the serial number requirement C.
Exceptions
- WRONG_INPUT
- NOT_FOUND
- FOREIGN_LOCK
Function group
/SCWM/WT_MAN
Example
Notes
If the storage bin parameter is filled, the storage type parameter must also be filled.
The exception WRONG_INPUT is raised if the input parameters contain an incorrect combination of the following list:
- All the import parameters are blank except warehouse number
- A blank warehouse number parameter is only allowed with TU selection
- Either the single value or the table of an input parameter must be filled
The exception NOT_FOUND is raised if the system does not find an open WT, a confirmed WT, and WT logs.
The exception FOREIGN_LOCK is never raised.
Further information
Parameters
ET_ORDIM_CET_ORDIM_CS
ET_ORDIM_E
ET_ORDIM_H
ET_ORDIM_HS
ET_ORDIM_L
ET_ORDIM_LS
ET_ORDIM_O
ET_ORDIM_OS
IT_HUIDENT
IT_LGPLA
IT_LGTYP
IT_RSRC
IT_TU_NUM
IV_ADD_TO_MEMORY
IV_HUIDENT
IV_LGNUM
IV_LGPLA
IV_LGTYP
IV_NOBUF
IV_RSRC
IV_TU_NUM
Exceptions
FOREIGN_LOCKNOT_FOUND
WRONG_INPUT
Function Group
M/SAPLWT_MANCL_GUI_FRONTEND_SERVICES - Frontend Services TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 10179 Date: 20240425 Time: 155324 sap01-206 ( 124 ms )