WM BAPI RFC Used the same way in S/4HANA

BAPI_WHSE_TO_GET_DETAIL Get Transfer Order Details

Reads header and item data of a transfer order, optionally for a single item. It is used in RF, label printing and outbound interfaces that report warehouse tasks. Use BAPI_WHSE_TO_GET_LIST first when you need to find the transfer order numbers.

Function group
L2018
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
WHSENUMBERBAPI2018A-WHSENUMBERWarehouse numberYes
TRANSFERORDERNOBAPI2018A-TRANSFERORDERNOTransfer order numberYes
TRANSFERORDERITEMBAPI2018C-TRANSFERORDERITEMTransfer order item—

Tables parameters

ParameterTypeDescriptionRequired
TOHEADERDATABAPITOHEADTransfer order header dataYes
TOITEMDATABAPITOITEMTransfer order item dataYes
EXTENSIONOUTBAPIPAREXCustomer extension outputYes
RETURNBAPIRET2Return messagesYes

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_DETAIL'
  EXPORTING
    whsenumber = lv_whsenumber
    transferorderno = lv_transferorderno
  TABLES
    toheaderdata = lt_toheaderdata
    toitemdata = lt_toitemdata
    extensionout = lt_extensionout
    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.

Request a custom report