Fonction SAP L_TO_CREATE_DN - Create a transfer order for delivery note

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IT_DELIT L03B_DELIT_T h 105 X Partial creation: Details
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_EINLM RL03T-EINLM C 1 SPACE X Copy putaway quantities into delivery / post GR
I_EINTA RL03T-EINTA C 1 SPACE X Processing for putaway transfer order
I_KOMIM RL03T-KOMIM C 1 SPACE X Copy pick quantities into delivery / Post GI
I_LDEST LTAP-LDEST C 4 SPACE X Printer
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 No TO split
I_PERNR LTAK-PERNR N 8 0 X Personnel Number
I_REFNR LTAK-REFNR C 10 SPACE X Reference number
I_SOLEX LTAK-SOLEX P 7 0 X Planned transfer order processing time from external system
I_SQUIT RL03T-SQUIT C 1 SPACE X Immed.confirmat.
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
I_VBELN LTAK-VBELN C 10 Delivery note no.

Paramètre Reférence Type Long. Description
E_TANUM LTAK-TANUM N 10 Transfer order number
E_TEILK T340D-TEILV C 1 Partial pick executed

Paramètre Reférence Long. Facultatif Description
T_LTAK LTAK_VB 306 X Table of created TO headers
T_LTAP_VB LTAP_VB 1430 X Table of created TO items
T_WMGRP_MSG WMGRP_MSG 157 X

Exception Description
DN_COMPLETED Delivery note does not contain any open items
DN_HU_NOT_CHOOSABLE TO for delivery items or HU not clear
DN_WRONG Delivery note does not exist
DRUKZ_WRONG Print code does not exist
FOREIGN_LOCK An SAP block has been set by another user
INPUT_ERROR Missing item entry
LDEST_WRONG Printer does not exist
NO_AUTHORITY No authorization
NO_PICKING_ALLOWED Picking not allowed
NO_TO_CREATED No TO generated
PARTIAL_DELIVERY_FORBIDDEN Delivery note must be picked for entire qty
SQUIT_FORBIDDEN Immediate conf.not allowed for movement type
TEILK_WRONG Partial picking not allowed in warehouse
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 adelivery note. 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 generated.

Notes
If the function module is called up several times in 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 delivery note inbackground processing. If the detailed documentation for theindividual parameters is not sufficient, you can call up the F1documentation for the fields in this transaction.

Description
You use this parameter to define item specifications, so that thesystem does not create transfer orders for all open quantities of thedelivery with function module L_TO_CREATE_DN.
The system only creates transfer orders from this table for thespecifications in varying levels of detail.
You can enter the following data for the item number:

  • Quantity

  • Batch

  • Specifications for destination storage bin

  • Specifications for source storage bin

  • Item specifications are not allowed for Handling Unit items when youcreate transfer orders for outbound deliveries. The system issues anerror message.

    Description
    I_TEILK controls the system reaction during stock removal. If theindicator is not set ' ' 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 quantity.