Ansicht
Dokumentation

/SCWM/TO_READ_MULT - Read Warehouse Tasks Using WT / WO

/SCWM/TO_READ_MULT - Read Warehouse Tasks Using WT / WO

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to read warehouse tasks (WTs) based on known warehouse orders (WOs), WTs or source handling units (HUs). 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 WTs in the input parameter IR_TANUM and the second time with a single WT in IR_TANUM, the buffer is not used even if the WT was part of the first call.

The parameter IR_VLENR must not be used with the parameters IR_TANUM or IRWHO. It must always be used with the parameter IV_NOBUF set to X.

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
  • IR_TANUM
Select WT options. You can combine single values and value ranges.
  • IR_WHO
Select WO options. You can combine single values and value ranges.
  • IR_VLENR
Select source HU options. You can combine single values and value ranges.
  • 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

Function group

/SCWM/WT_MAN

Example

Notes

The exception WRONG_INPUT is raised if the input parameters contain an incorrect combination of the following list:

  • All the selection options are blank
  • The warehouse number is not filled.

The exception NOT_FOUND is raised if the system does not find an open WT, a confirmed WT, and WT logs.

Further information





Parameters

ET_ORDIM_C
ET_ORDIM_CS
ET_ORDIM_E
ET_ORDIM_H
ET_ORDIM_HS
ET_ORDIM_L
ET_ORDIM_LS
ET_ORDIM_O
ET_ORDIM_OS
IR_TANUM
IR_VLENR
IR_WHO
IV_ADD_TO_MEMORY
IV_LGNUM
IV_NOBUF

Exceptions

NOT_FOUND
WRONG_INPUT

Function Group

M/SAPLWT_MAN

CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 8355 Date: 20240420 Time: 173321     sap01-206 ( 100 ms )