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
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_LGNUM | LTAK-LGNUM | Warehouse number | Yes |
| I_VBELN | LTAK-VBELN | Delivery number | Yes |
| I_REFNR | LTAK-REFNR | Group (reference number) | — |
| I_SQUIT | RL03T-SQUIT | Confirm immediately | — |
| I_COMMIT_WORK | RL03B-COMIT | Commit inside the function | — |
| IT_DELIT | L03B_DELIT_T | Delivery 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
- 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.