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

BAPI_WHSE_STOCK_GET_DETAIL Get Warehouse Stock per Quant

Reads the stock data of one quant in a warehouse number, such as material, batch, storage bin and quantities. It is used by RF, label printing and interface programs that need quant details through a released API. Read STOCKDATA only when RETURN contains no error.

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

Importing parameters

ParameterTypeDescriptionRequired
WHSENUMBERBAPI3016C-WHSENUMBERWarehouse numberYes
QUANTBAPI3016C-QUANTQuant numberYes

Tables parameters

ParameterTypeDescriptionRequired
STOCKDATABAPIQUANTStock data of the quantYes
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_STOCK_GET_DETAIL'
  EXPORTING
    whsenumber = lv_whsenumber
    quant = lv_quant
  TABLES
    stockdata = lt_stockdata
    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