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
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_LGNUM | LTAK-LGNUM | Warehouse number | Yes |
| I_TBNUM | LTAK-TBNUM | Transfer requirement number | Yes |
| I_SQUIT | RL03T-SQUIT | Confirm immediately | — |
| I_COMMIT_WORK | RL03B-COMIT | Commit inside the function | — |
| IT_TRITE | L03B_TRITE_T | Items for partial processing | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| E_TANUM | LTAK-TANUM | Created transfer order number |
| E_TEILK | T340D-TEILV | Partial processing indicator |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| T_LTAP_VB | LTAP_VB | Created 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.