WM
BAPI
RFC
Used the same way in S/4HANA
BAPI_WHSE_TO_GET_LIST Get Transfer Order List
Returns the keys of transfer orders in a warehouse number, filtered by material, source storage type, source bins and confirmation status. It is used as the selection step in RF and interface programs before reading details. Limit the hits with MAXROWS and the filters, because busy warehouses hold many transfer orders.
- Function group
- L2018
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| WAREHOUSENUMBER | BAPI2018B-WHSENUMBER | Warehouse number | Yes |
| MATERIAL | BAPI2018B-MATERIAL | Material number | — |
| SRCSTORAGETYPE | BAPI2018B-SOURCE_TYPE | Source storage type | — |
| CONFIRMIND | BAPI2018B-CONFIRM_IND | Confirmation status | — |
| MAXROWS | BAPIF4A-MAX_ROWS | Maximum number of hits | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| TRANSORDERKEY | BAPITRANSORDERKEY | Keys of selected transfer orders | Yes |
| SOURCEBINSELECT | BAPI2018F | Source storage bin selection | — |
| RETURN | BAPIRET2 | Return messages | Yes |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_WHSE_TO_GET_LIST'
EXPORTING
warehousenumber = lv_warehousenumber
TABLES
transorderkey = lt_transorderkey
sourcebinselect = lt_sourcebinselect
return = lt_return.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.