SAP WM BAPI for Warehouse Transfer and Stock List/Data

SAP WM Tables SAP WM BAPI SAP WM Tcodes

In this article, we will list the 4 main SAP WM BAPI for Warehouse TraIf you are looking for the full list of SAP WM BAPI, check the following article about Stock Data.

The 2 first BAPI let you retrieve the list and the detail of Warehouse Transfer Order Data. The next 2 BAPI can be used to read Stock List and Stock Data.

SAP Transfer Requirements in SAP WM

Transfer Requirement Functions in SAP WM

The list of the most important SAP Function modules for WM Transfer Requirement is:

  • L_TR_CREATE_CHECK: Plausibility checks
  • L_TR_CREATE_UPDATE : Database updates according to plausibility checks
  • L_TR_CREATE : Plausibility checks and database updates Function Module Description
  • L_TR_CANCEL : Cancel plausibility checks and database updates

User-exit for SAP WM Transfer Requirement

MWMTOAU1: SAP WM Transfer Requirement User-Exit

This custom exit MWMTOAU1 allows influencing the selection of transfer requirements for the automatic creation of transfer orders.

MWMTOAU2: Transfer Requirement User-Exit

This SAP WM exit MWMTOAU2 allows you to influence the selection of transfer requirements for the automatic creation of multiple transfer orders using groups.

SAP Transfer Order BAPI, Function modules and Exit

WM Transfer Order Function Modules

In order to handle Transfer Order in SAP Warehouse Management, you can use the following functions modules:

BAPISAP Transfer Order BAPI
L_TO_CREATE_SINGLECreate a transfer order with one item
L_TO_CREATE_MULTIPLECreate a transfer order with two or more items
L_TO_CREATE_MOVE_SUCreate a transfer order to move a storage unit
L_TO_CREATE_MOVE_LSRInitiate a stock transfer of storage units from an external system
L_TO_CREATE_TRCreate a transfer order for a transfer requirement
L_TO_CREATE_DNCreate a transfer order for a delivery
L_TO_CONFIRMConfirm a transfer order
L_TO_CONFIRM_SUConfirm a transfer order for a storage unit
L_TO_CANCELCancel a transfer order
L_TO_CANCEL_SUCancel a transfer order for a storage unit
L_REF_CREATECreate transfer orders using multiple processing
L_TO_CREATE_2_STEP_PICKINGCreate transfer orders for 2-step picking
L_TO_CREATE_POSTING_CHANGECreate transfer orders for posting changes

SAP User-Exit for Transfer Order in WM

If you want to custom the standard processing of Transfer Order in SAP warehouse management, check these SAP transfer Order User-exits:

User-Exit SAP User-Exit for Transfer Order in WM
MWMTO001Update own data after creating transfer orders
MWMTO002Update own data after confirming transfer orders Customer exit Description
MWMTO003Customer-defined putaway strategy. This task allows you to create and implement your own putaway strategy.
MWMTO004Customer-defined picking strategy
MWMTO005TO-related under-delivery (shortage)
MWMTO006Storage-bin-related over-delivery
MWMTO007Palletization and storage type search for putaway
MWMTO008Storage type search for picking
MWMTO009Prevents deletion of TO items

SAP WM Transfor Order BAPI

BAPI_WHSE_TO_GET_LIST

  • Function module name: Warehouse Transfer Order
  • Object Type : BUS2018
  • Object Name: WarehouseTransOrder
  • Methode Name: GetList

Here is the signature of BAPI_WHSE_TO_GET_LIST for BAPI for Transfer Order List

function bapi_whse_to_get_list.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(WAREHOUSENUMBER) LIKE  BAPI2018B-WHSENUMBER
*"     VALUE(MATERIAL) LIKE  BAPI2018B-MATERIAL OPTIONAL
*"     VALUE(CONFIRMIND) LIKE  BAPI2018B-CONFIRM_IND OPTIONAL
*"     VALUE(SRCSTORAGETYPE) LIKE  BAPI2018B-SOURCE_TYPE OPTIONAL
*"     VALUE(MAXROWS) LIKE  BAPIF4A-MAX_ROWS DEFAULT 0
*"     VALUE(MATERIAL_EVG) TYPE  BAPIMGVMATNR OPTIONAL
*"  TABLES
*"      SOURCEBINSELECT STRUCTURE  BAPI2018F OPTIONAL
*"      TRANSORDERKEY STRUCTURE  BAPITRANSORDERKEY
*"      RETURN STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------

SAP WM BAPI : BAPI_WHSE_TO_GET_DETAIL

  • Function module name: Read Header and Item Data per Transfer Order
  • Object Type : BUS2018
  • Object Name: WarehouseTransOrder
  • Methode Name: GetDetail

Here is the signature of BAPI_WHSE_TO_GET_DETAIL – BAPI for Header and Item Data per Transfer Order

function bapi_whse_to_get_detail.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(WHSENUMBER) LIKE  BAPI2018A-WHSENUMBER
*"     VALUE(TRANSFERORDERNO) LIKE  BAPI2018A-TRANSFERORDERNO
*"     VALUE(TRANSFERORDERITEM) LIKE  BAPI2018C-TRANSFERORDERITEM
*"       OPTIONAL
*"  TABLES
*"      TOHEADERDATA STRUCTURE  BAPITOHEAD
*"      TOITEMDATA STRUCTURE  BAPITOITEM
*"      EXTENSIONOUT STRUCTURE  BAPIPAREX
*"      RETURN STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------

If you are looking for the full list of SAP WM BAPI, check the following article aboutSAP WMS BAPI and Exits.

SAP WM BAPI : BAPI_WHSE_STOCK_GET_LIST

  • Function module name: Stock List
  • Object Type : BUS3016
  • Object Name: WarehouseStock
  • Methode Name: GetList

The signature of BAPI_WHSE_STOCK_GET_LIST : BAPI for Details of Stock per Material is

function bapi_whse_stock_get_list .
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(WAREHOUSENUMBER) LIKE  BAPI3016A-WAREHOUSENUMBER
*"     VALUE(MATERIAL) LIKE  BAPI3016A-MATERIAL
*"     VALUE(PLANT) LIKE  BAPI3016A-PLANT
*"     VALUE(STORAGELOCATION) LIKE  BAPI3016A-STGE_LOC OPTIONAL
*"     VALUE(STORAGETYPE) LIKE  BAPI3016A-STGE_TYPE OPTIONAL
*"     VALUE(STOCKCATEGORY) LIKE  BAPI3016A-STOCK_CAT OPTIONAL
*"     VALUE(SPECIALSTOCKIND) LIKE  BAPI3016A-SPEC_STOCK OPTIONAL
*"     VALUE(SPECIALSTOCKNO) LIKE  BAPI3016A-SP_STCK_NO OPTIONAL
*"     VALUE(BATCH) LIKE  BAPI3016A-BATCH OPTIONAL
*"     VALUE(PICKAREA) LIKE  BAPI3016A-PICK_AREA OPTIONAL
*"     VALUE(MAXROWS) LIKE  BAPIF4A-MAX_ROWS DEFAULT 0
*"     VALUE(MATERIAL_EVG) TYPE  BAPIMGVMATNR OPTIONAL
*"  TABLES
*"      STORAGEBINSELECT STRUCTURE  BAPI3016B OPTIONAL
*"      STOCKKEY STRUCTURE  BAPIQUANTKEY
*"      RETURN STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------

BAPI_WHSE_STOCK_GET_DETAIL

  • Function module name: Read Stock Data per Quant
  • Object Type : BUS3016
  • Object Name: WarehouseStock
  • Methode Name: GetDetail
function bapi_whse_stock_get_detail.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(WHSENUMBER) LIKE  BAPI3016C-WHSENUMBER
*"     VALUE(QUANT) LIKE  BAPI3016C-QUANT
*"  TABLES
*"      STOCKDATA STRUCTURE  BAPIQUANT
*"      EXTENSIONOUT STRUCTURE  BAPIPAREX
*"      RETURN STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------

Sources & Reference