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

L_TO_CREATE_DN Create Transfer Order for Delivery

Creates a picking or putaway transfer order for a delivery, like LT03. It is used in shipping automation, wave or group processing and RF picking programs. Use IT_DELIT for partial processing, check E_TEILK for partial picks, and handle exceptions such as DN_COMPLETED when the delivery is already processed.

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

Importing parameters

ParameterTypeDescriptionRequired
I_LGNUMLTAK-LGNUMWarehouse numberYes
I_VBELNLTAK-VBELNDelivery numberYes
I_REFNRLTAK-REFNRGroup (reference number)—
I_SQUITRL03T-SQUITConfirm immediately—
I_COMMIT_WORKRL03B-COMITCommit inside the function—
IT_DELITL03B_DELIT_TDelivery items for partial processing—

Exporting parameters

ParameterTypeDescription
E_TANUMLTAK-TANUMCreated transfer order number
E_TEILKT340D-TEILVPartial processing indicator

Tables parameters

ParameterTypeDescriptionRequired
T_LTAP_VBLTAP_VBCreated transfer order items—

Exceptions

  • DN_COMPLETED — Delivery already processed
  • DN_HU_NOT_CHOOSABLE — Handling unit of the delivery cannot be selected
  • DN_WRONG — Invalid delivery
  • DRUKZ_WRONG — Invalid print code
  • FOREIGN_LOCK — Object locked by another user
  • INPUT_ERROR — Input error
  • LDEST_WRONG — Invalid printer
  • NO_AUTHORITY — No authorization
  • NO_PICKING_ALLOWED — Picking not allowed
  • NO_TO_CREATED — No transfer order created
  • PARTIAL_DELIVERY_FORBIDDEN — Partial delivery not allowed
  • SQUIT_FORBIDDEN — Immediate confirmation not allowed
  • TEILK_WRONG — Invalid partial processing indicator
  • 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_DN'
  EXPORTING
    i_lgnum = lv_i_lgnum
    i_vbeln = lv_i_vbeln
  IMPORTING
    e_tanum = lv_e_tanum
    e_teilk = lv_e_teilk
  TABLES
    t_ltap_vb = lt_t_ltap_vb
  EXCEPTIONS
    dn_completed = 1
    dn_hu_not_choosable = 2
    dn_wrong = 3
    drukz_wrong = 4
    foreign_lock = 5
    input_error = 6
    ldest_wrong = 7
    no_authority = 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