WM Function module RFC Used the same way in S/4HANA

L_TO_CREATE_SINGLE Create Transfer Order with One Item

Creates a transfer order with one item for a material, plant, quantity and WM movement type, like LT01; source and destination can be given or determined by the warehouse strategies. It is widely used in RF transactions and custom putaway or replenishment programs. The function commits by default (I_COMMIT_WORK), so set it to space inside a larger LUW, and evaluate the classic exceptions with sy-subrc and the system message fields.

Function group
L03B
Remote-enabled (RFC)
Yes
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
I_LGNUMLTAK-LGNUMWarehouse numberYes
I_BWLVSLTAK-BWLVSWM movement typeYes
I_MATNRLTAP-MATNRMaterial numberYes
I_WERKSLTAP-WERKSPlantYes
I_ANFMERL03T-ANFMERequested quantityYes
I_ALTMELTAP-ALTMEUnit of measureYes
I_LGORTLTAP-LGORTStorage location—
I_CHARGLTAP-CHARGBatch—
I_VLTYPLTAP-VLTYPSource storage type—
I_VLPLALTAP-VLPLASource storage bin—
I_NLTYPLTAP-NLTYPDestination storage type—
I_NLPLALTAP-NLPLADestination storage bin—
I_SQUITRL03T-SQUITConfirm immediately—
I_COMMIT_WORKRL03B-COMITCommit inside the function—

Exporting parameters

ParameterTypeDescription
E_TANUMLTAK-TANUMCreated transfer order number
E_LTAPLTAPCreated transfer order item

Exceptions

  • NO_TO_CREATED — No transfer order created
  • MATERIAL_NOT_FOUND — Material not found
  • BWLVS_WRONG — Invalid WM movement type
  • VLTYP_WRONG — Invalid source storage type
  • VLPLA_WRONG — Invalid source storage bin
  • NLTYP_WRONG — Invalid destination storage type
  • NLPLA_WRONG — Invalid destination storage bin
  • VLTYP_MISSING — Source storage type missing
  • NLTYP_MISSING — Destination storage type missing
  • SQUIT_FORBIDDEN — Immediate confirmation not allowed
  • MANUAL_TO_FORBIDDEN — Manual transfer order not allowed
  • FOREIGN_LOCK — Object locked by another user
  • NO_AUTHORITY — No authorization
  • UPDATE_WITHOUT_COMMIT — Update task used without commit

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 'L_TO_CREATE_SINGLE'
  EXPORTING
    i_lgnum = lv_i_lgnum
    i_bwlvs = lv_i_bwlvs
    i_matnr = lv_i_matnr
    i_werks = lv_i_werks
    i_anfme = lv_i_anfme
    i_altme = lv_i_altme
  IMPORTING
    e_tanum = lv_e_tanum
    e_ltap = lv_e_ltap
  EXCEPTIONS
    no_to_created = 1
    material_not_found = 2
    bwlvs_wrong = 3
    vltyp_wrong = 4
    vlpla_wrong = 5
    nltyp_wrong = 6
    nlpla_wrong = 7
    vltyp_missing = 8
    OTHERS = 9.

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