SAP Function L_TO_CREATE_TR - Create a transfer order for transfer requirement

Parameter Reference Type Length Default Optional Text
IT_TRITE L03B_TRITE_T h 103 X
I_BNAME LTAK-BNAME C 12 SY-UNAME X User who is generating the TO
I_COMMIT_WORK RL03B-COMIT C 1 'X' X Indicator whether COMMIT WORK in function module
I_DRUKZ T329F-DRUKZ C 2 SPACE X Print code
I_LDEST LTAP-LDEST C 4 SPACE X Printer
I_LDEST_LANG TSP03L-LNAME C 30 SPACE X
I_LGNUM LTAK-LGNUM C 3 Warehouse number
I_NIDRU RL03A-NIDRU C 1 SPACE X Do not print
I_NOSPL RL03A-NOSPL C 1 SPACE X
I_PERNR LTAK-PERNR N 8 0 X
I_REFNR LTAK-REFNR C 10 SPACE X Reference number
I_RSNUM LTAK-RSNUM N 10 SPACE X
I_SOLEX LTAK-SOLEX P 7 0 X
I_SQUIT RL03T-SQUIT C 1 SPACE X Immed.confirmat.
I_TBELI RL03T-TBELI C 1 SPACE X
I_TBNUM LTAK-TBNUM N 10 Transfer requirement number
I_TEILK T340D-TEILV C 1 SPACE X Partial picking allowed
I_UPDATE_TASK RL03A-VERBU C 1 SPACE X Indicator: update via update task

Parameter Reference Type Length Text
E_TANUM LTAK-TANUM N 10 Transfer order number
E_TEILK T340D-TEILV C 1

Parameter Reference Length Optional Text
T_LTAK LTAK_VB 306 X
T_LTAP_VB LTAP_VB 1430 X
T_WMGRP_MSG WMGRP_MSG 157 X

Exception Text
DRUKZ_WRONG Print code does not exist
FOREIGN_LOCK An SAP block has been set by another user
INPUT_ERROR
LDEST_WRONG Printer does not exist
NO_AUTHORITY No authorization
NO_TO_CREATED No TO generated
PARTIAL_TRANSFER_REQ_FORBIDDEN
PREALLOCATED_STOCK Material is pre-allocated
QM_RELEVANT TR is resevant for QSS
SQUIT_FORBIDDEN Immediate conf.not allowed for movement type
TR_COMPLETED TR is already fully supplied
TR_WRONG TR does not exist
UPDATE_WITHOUT_COMMIT Update via update task only using Commit
XFELD_WRONG Incorrect value for checkbox

Functionality
With this function module you can create a transfer order for atransfer requirement. For more information, refer to the detaileddocumentation for the individual parameters. The parameters that arepassed on are first submitted to a plausibility check. Then thetransfer order is created.

Notes
If the function module is called up several times within a program, aCOMMIT WORK should be placed between the calls and the blocks set upshould be removed.

Further information
For the most part, this function module behaves in the same way as thetransaction used to create a transfer order for a transfer requirementin background processing. If the detailed documentation for theparameters does not contain sufficient information, you can call up theF1 documentation for the fields in this transaction.

Description
You use this parameter to define item specifications so that the systemdoes not create transfer orders for all open quantities of the transferrequirement with the function module L_TO_CREATE_TR.
The system only creates transfer orders from this table for thespecifications in varying degrees of detail. You can specify thefollowing data for the item numbers:

  • Quantity

  • Batch

  • Specifications for the destination storage bin

  • Specifications for the source storage bin
  • Description
    I_TEILK controls the system reaction during stock removal. If theindicator is blank (' ') and the system does not find enough material,it terminates TO processing. If the indicator is set to 'X', a TO iscreated with a smaller amount.

542295Direct TO creation when posting material document