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

L_TO_CREATE_TR Create Transfer Order for Transfer Requirement

Creates a transfer order for an open transfer requirement, like LT04, for example for production supply or goods receipt putaway. It is used in scheduled jobs and RF programs that process open transfer requirements automatically. Use IT_TRITE for partial quantities and check E_TEILK to see whether the requirement was only partly processed.

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

Importing parameters

ParameterTypeDescriptionRequired
I_LGNUMLTAK-LGNUMWarehouse numberYes
I_TBNUMLTAK-TBNUMTransfer requirement numberYes
I_SQUITRL03T-SQUITConfirm immediately—
I_COMMIT_WORKRL03B-COMITCommit inside the function—
IT_TRITEL03B_TRITE_TItems 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

  • 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_TO_CREATED — No transfer order created
  • PARTIAL_TRANSFER_REQ_FORBIDDEN — Partial processing of the transfer requirement not allowed
  • PREALLOCATED_STOCK — Stock is pre-allocated
  • QM_RELEVANT — Transfer requirement is QM-relevant
  • SQUIT_FORBIDDEN — Immediate confirmation not allowed
  • TR_COMPLETED — Transfer requirement already completed
  • TR_WRONG — Invalid transfer requirement
  • 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_TR'
  EXPORTING
    i_lgnum = lv_i_lgnum
    i_tbnum = lv_i_tbnum
  IMPORTING
    e_tanum = lv_e_tanum
    e_teilk = lv_e_teilk
  TABLES
    t_ltap_vb = lt_t_ltap_vb
  EXCEPTIONS
    drukz_wrong = 1
    foreign_lock = 2
    input_error = 3
    ldest_wrong = 4
    no_authority = 5
    no_to_created = 6
    partial_transfer_req_forbidden = 7
    preallocated_stock = 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