SAP Function L_TO_CREATE_SINGLE - Create a transfer order with one item

Parameter Reference Type Length Default Optional Text
I_ABLAD LTAP-ABLAD C 25 SPACE X Unload.point
I_ALTME LTAP-ALTME C 3 Unit of measure
I_ANFME RL03T-ANFME P 7 Requested qty.
I_AUSFB LTAK-AUSFB C 4 SPACE X
I_BENUM LTAK-BENUM C 10 SPACE X Requirement number
I_BESTQ LTAP-BESTQ C 1 SPACE X Stock category
I_BETYP LTAK-BETYP C 1 SPACE X Requirement type
I_BNAME LTAK-BNAME C 12 SY-UNAME X User who is generating the TO
I_BWLVS LTAK-BWLVS N 3 Movement type
I_CHARG LTAP-CHARG C 10 SPACE X Batch
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_KOMPL RL03B-KOMPL C 1 'X' X Only generate TO if requested amount supplied
I_LDEST LTAP-LDEST C 4 SPACE X Printer
I_LETYP LTAP-LETYP C 3 SPACE X Storage unit type
I_LGNUM LTAK-LGNUM C 3 Warehouse number
I_LGORT LTAP-LGORT C 4 SPACE X
I_LZNUM LTAK-LZNUM C 20 SPACE X Additional ref.number
I_MATNR LTAP-MATNR C 18 Material no.
I_NIDRU RL03A-NIDRU C 1 SPACE X Do not print
I_NLBER LTAP-NLBER C 3 SPACE X Destination storage section
I_NLENR LTAP-NLENR C 20 SPACE X Dest.storage unit
I_NLPLA LTAP-NLPLA C 10 SPACE X Destination storage bin
I_NLQNR LTAP-NLQNR N 10 SPACE X Dest.quant
I_NLTYP LTAP-NLTYP C 3 SPACE X Destination storage type
I_NPPOS LTAP-NPPOS C 2 SPACE X Position in destionation storage bin
I_PERNR LTAK-PERNR N 8 0 X
I_RLBER LTAP-RLBER C 3 SPACE X Return storage area
I_RLPLA LTAP-RLPLA C 10 SPACE X Return storage bin
I_RLQNR LTAP-RLQNR N 10 SPACE X Return quant
I_RLTYP LTAP-RLTYP C 3 SPACE X Return storage type
I_SOBKZ LTAP-SOBKZ C 1 SPACE X Special stock indicator
I_SOLEX LTAK-SOLEX P 7 0 X
I_SONUM LTAP-SONUM C 16 SPACE X Special stock number
I_SQUIT RL03T-SQUIT C 1 SPACE X Immed.confirmat.
I_UPDATE_TASK RL03A-VERBU C 1 SPACE X Indicator: update via update task
I_VFDAT LTAP-VFDAT D 8 INIT_DATUM X Expiration date
I_VLBER LTAP-VLBER C 3 SPACE X Source storage section
I_VLENR LTAP-VLENR C 20 SPACE X Source storage unit
I_VLPLA LTAP-VLPLA C 10 SPACE X Source storage bin
I_VLQNR LTAP-VLQNR N 10 SPACE X Src.quant
I_VLTYP LTAP-VLTYP C 3 SPACE X Source storage type
I_VPPOS LTAP-VPPOS C 2 SPACE X Item in source storage bin
I_WDATU LTAP-WDATU D 8 INIT_DATUM X Goods receipt date
I_WEMPF LTAP-WEMPF C 12 SPACE X Consignee
I_WERKS LTAP-WERKS C 4 Plant
I_ZEUGN LTAP-ZEUGN C 10 SPACE X Certificate number

Parameter Reference Type Length Text
E_LTAP LTAP u 890 Transfer order item
E_TANUM LTAK-TANUM N 10 Transfer order number

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

Exception Text
BENUM_MISSING Req.number missing
BESTQ_WRONG Stock category does not exist
BETYP_MISSING Req.type missing
BETYP_WRONG Req.type does not match movement type
BWLVS_WRONG Mov.type incorrect
DATE_WRONG Incorrect date specification
DRUKZ_WRONG Print code does not exist
FOREIGN_LOCK An SAP block has been set by another user
LDEST_WRONG Printer does not exist
LENUM_WRONG SU number cannot be converted
LETYP_WRONG Storage unit type does not exist
LGBER_WRONG Stor.section does not exist
MANUAL_TO_FORBIDDEN Manual transfer order not allowed
MATERIAL_NOT_FOUND Material not maintained for this process
NLPLA_MISSING Dest.storage bin for item missing
NLPLA_WRONG Dest.storage bin does not match movement type
NLTYP_MISSING Dest.storage bin required if bin is set
NLTYP_WRONG Dest.storage type does not match movement type
NO_AUTHORITY No authorization
NO_TO_CREATED No TO generated
RLPLA_WRONG Ret.storage bin does not match movement type
RLTYP_MISSING Ret.storage type required if bin is set
RLTYP_WRONG Return storage type does not match mov.type
SOBKZ_MISSING Special stock indicator missing
SOBKZ_WRONG Special stock indicator does not exist
SONUM_MISSING Special stock number is missing
SQUIT_FORBIDDEN Immediate conf.not allowed for movement type
UPDATE_WITHOUT_COMMIT Update via update task only using Commit
VLPLA_MISSING Src.storage bin for item missing
VLPLA_WRONG Src.storage bin does not match movement type
VLTYP_MISSING Src.storage type required if bin is set
VLTYP_WRONG Src.storage type does not match movement type
XFELD_WRONG Incorrect value for checkbox

Functionality
With this function module, you can create a transfer order with anitem. Via the parameters you can control the structure. For moreinformation, refer to the detailed documentation for the individualparameters. The paramters that have been passed on are first submittedto a plausibility check. Then the actual transfer 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 without a reference whenyou press the pushbutton "Single item". If the documentation for theindividual parameters is not sufficient, you can call up the F1documentation for the fields in this transaction.

Description
No check occurs for this number. This means,for example, that thespecial stock number is not checked against the vendor master recordfor special stock 'K'.
For special stock indicator Q, the transfer must occur in an internalformat. Two routines are available in program SAPFL000 for convertingand checking the special stock number, which you can execute via"external perform".

357726Error L3803 when creating a transfer order