# 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.

- Modules: WM
- Type: BAPI
- Function group: L2018
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-whse-to-get-list/

## 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)

```abap
CALL FUNCTION 'BAPI_WHSE_TO_GET_LIST'
  EXPORTING
    warehousenumber = lv_warehousenumber
  TABLES
    transorderkey = lt_transorderkey
    sourcebinselect = lt_sourcebinselect
    return = lt_return.
```

## Related tables

LTAK, LTAP

