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

L_TO_CREATE_MULTIPLE Create Transfer Order with Several Items

Creates one transfer order with several items passed in T_LTAP_CREAT, all using the same WM movement type. It is used in custom programs that move several materials or bins in one warehouse task, for example replenishment or bin clean-up. Check the created items in T_LTAP_VB and remember that the function commits unless I_COMMIT_WORK is space.

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

Importing parameters

ParameterTypeDescriptionRequired
I_LGNUMLTAK-LGNUMWarehouse numberYes
I_BWLVSLTAK-BWLVSWM movement typeYes
I_BETYPLTAK-BETYPRequirement type—
I_BENUMLTAK-BENUMRequirement number—
I_COMMIT_WORKRL03B-COMITCommit inside the function—

Exporting parameters

ParameterTypeDescription
E_TANUMLTAK-TANUMCreated transfer order number

Tables parameters

ParameterTypeDescriptionRequired
T_LTAP_CREATLTAP_CREATItems to createYes
T_LTAP_VBLTAP_VBCreated transfer order items—

Exceptions

  • NO_TO_CREATED — No transfer order created
  • MATERIAL_NOT_FOUND — Material not found
  • MATNR_MISSING — Material number missing
  • WERKS_MISSING — Plant missing
  • ANFME_MISSING — Requested quantity missing
  • ALTME_MISSING — Unit of measure missing
  • 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
  • LGORT_WRONG_OR_MISSING — Storage location invalid or missing
  • SOBKZ_WRONG — Invalid special stock indicator
  • BESTQ_WRONG — Invalid stock category
  • 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
  • XFELD_WRONG — Invalid indicator value

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_MULTIPLE'
  EXPORTING
    i_lgnum = lv_i_lgnum
    i_bwlvs = lv_i_bwlvs
  IMPORTING
    e_tanum = lv_e_tanum
  TABLES
    t_ltap_creat = lt_t_ltap_creat
    t_ltap_vb = lt_t_ltap_vb
  EXCEPTIONS
    no_to_created = 1
    material_not_found = 2
    matnr_missing = 3
    werks_missing = 4
    anfme_missing = 5
    altme_missing = 6
    bwlvs_wrong = 7
    vltyp_wrong = 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