WM
Function module
RFC
Used the same way in S/4HANA
L_TO_CREATE_POSTING_CHANGE Create Transfer Order for Posting Change
Creates a transfer order for a posting change notice, like LU04, for example stock category or batch changes inside the warehouse. It is used in programs that process posting change notices created by IM postings. Pass either I_UBNUM or I_LUBUI, and give the quants in T_LUBQU when they cannot be determined automatically.
- Function group
- L03B
- Remote-enabled (RFC)
- Yes
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_LGNUM | LTAK-LGNUM | Warehouse number | Yes |
| I_UBNUM | LTAK-UBNUM | Posting change notice number | — |
| I_LUBUI | LUBUI | Posting change notice data | — |
| I_SQUIT | RL03T-SQUIT | Confirm immediately | — |
| I_COMMIT_WORK | RL03B-COMIT | Commit inside the function | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| E_TANUM | LTAK-TANUM | Created transfer order number |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| T_LUBQU | LUBQU | Quants for the posting change | — |
| T_LTAP_VB | LTAP_VB | Created transfer order items | — |
Exceptions
- I_UBNUM_OR_I_LUBU — Pass either the notice number or the notice data
- T_LUBQU_REQUIRED — Quant table required
- TP_COMPLETED — Posting change notice already completed
- TP_WRONG — Invalid posting change notice
- NO_QUANTS — No quants found
- QUANT_NOT_SELECTABLE — Quant cannot be selected
- QUANTITY_WRONG — Invalid quantity
- MENGE_TO_BIG — Quantity too large
- MATERIAL_NOT_FOUND — Material not found
- BWLVS_WRONG — Invalid WM movement type
- BESTQ_WRONG — Invalid stock category
- SOBKZ_WRONG — Invalid special stock indicator
- NLTYP_MISSING — Destination storage type missing
- NLPLA_MISSING — Destination storage bin missing
- LOCK_EXISTS — Lock exists
- FOREIGN_LOCK — Object locked by another user
- SQUIT_FORBIDDEN — Immediate confirmation not allowed
- MANUAL_TO_FORBIDDEN — Manual transfer order not allowed
- NO_TO_CREATED — No transfer order created
- 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_POSTING_CHANGE'
EXPORTING
i_lgnum = lv_i_lgnum
IMPORTING
e_tanum = lv_e_tanum
TABLES
t_lubqu = lt_t_lubqu
t_ltap_vb = lt_t_ltap_vb
EXCEPTIONS
i_ubnum_or_i_lubu = 1
t_lubqu_required = 2
tp_completed = 3
tp_wrong = 4
no_quants = 5
quant_not_selectable = 6
quantity_wrong = 7
menge_to_big = 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.