SAP L_TO_CREATE_DN_MULTIPLE Function Module for NOTRANSL: Erzeugen eines Transportauftrags zu mehreren Lieferscheinen
L_TO_CREATE_DN_MULTIPLE is a standard l to create dn multiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Erzeugen eines Transportauftrags zu mehreren Lieferscheinen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for l to create dn multiple FM, simply by entering the name L_TO_CREATE_DN_MULTIPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: L03B
Program Name: SAPLL03B
Main Program: SAPLL03B
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function L_TO_CREATE_DN_MULTIPLE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'L_TO_CREATE_DN_MULTIPLE'"NOTRANSL: Erzeugen eines Transportauftrags zu mehreren Lieferscheinen.
EXPORTING
I_LGNUM = "Warehouse Number/Warehouse Complex
* I_BNAME = SY-UNAME "User Name
* I_TEILK = ' ' "Ind: partial picking allowed for (sales) delivery notes
* I_REFNR = ' ' "Group
* I_SQUIT = ' ' "Indicator: confirmation of a transfer order item
* I_NIDRU = ' ' "Do not print transfer order
* I_DRUKZ = ' ' "Indicator: form and sort code for printing transfer orders
* I_LDEST = ' ' "Name of printer
* I_KOMIM = ' ' "Adopt Pick Quantity as Del. Qty in Delivery / Post GI
* I_UPDATE_TASK = ' ' "Execute Posting Asynchronously Via Update Task
* I_COMMIT_WORK = 'X' "Processing with COMMIT WORK
TABLES
IT_VBELN = "
* ET_LTAK = "
* ET_LTAP = "
* ET_WMGRP_MSG = "Messages for Creating WM TO for Group
EXCEPTIONS
FOREIGN_LOCK = 1 INPUT_WRONG = 10 LATER_NOT_ACTIVE = 11 XFELD_WRONG = 2 LDEST_WRONG = 3 DRUKZ_WRONG = 4 DELIVERY_NOT_FOUND = 5 NO_TO_CREATED = 6 TEILK_WRONK = 7 UPDATE_WITHOUT_COMMIT = 8 NO_AUTHORITY = 9
IMPORTING Parameters details for L_TO_CREATE_DN_MULTIPLE
I_LGNUM - Warehouse Number/Warehouse Complex
Data type: LTAK-LGNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_BNAME - User Name
Data type: LTAK-BNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TEILK - Ind: partial picking allowed for (sales) delivery notes
Data type: T340D-TEILVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REFNR - Group
Data type: LTAK-REFNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SQUIT - Indicator: confirmation of a transfer order item
Data type: RL03T-SQUITDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NIDRU - Do not print transfer order
Data type: RL03A-NIDRUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DRUKZ - Indicator: form and sort code for printing transfer orders
Data type: T329F-DRUKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LDEST - Name of printer
Data type: LTAP-LDESTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOMIM - Adopt Pick Quantity as Del. Qty in Delivery / Post GI
Data type: RL03T-KOMIMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UPDATE_TASK - Execute Posting Asynchronously Via Update Task
Data type: RL03A-VERBUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COMMIT_WORK - Processing with COMMIT WORK
Data type: RL03B-COMITDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for L_TO_CREATE_DN_MULTIPLE
IT_VBELN -
Data type: VBELN_TABOptional: No
Call by Reference: Yes
ET_LTAK -
Data type: LTAK_VBOptional: Yes
Call by Reference: Yes
ET_LTAP -
Data type: LTAP_VBOptional: Yes
Call by Reference: Yes
ET_WMGRP_MSG - Messages for Creating WM TO for Group
Data type: WMGRP_MSGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: Yes
INPUT_WRONG -
Data type:Optional: No
Call by Reference: Yes
LATER_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: Yes
XFELD_WRONG -
Data type:Optional: No
Call by Reference: Yes
LDEST_WRONG - Printer does not exist
Data type:Optional: No
Call by Reference: Yes
DRUKZ_WRONG -
Data type:Optional: No
Call by Reference: Yes
DELIVERY_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_TO_CREATED -
Data type:Optional: No
Call by Reference: Yes
TEILK_WRONK -
Data type:Optional: No
Call by Reference: Yes
UPDATE_WITHOUT_COMMIT -
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY - No Authorization
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for L_TO_CREATE_DN_MULTIPLE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_lgnum | TYPE LTAK-LGNUM, " | |||
| lt_it_vbeln | TYPE STANDARD TABLE OF VBELN_TAB, " | |||
| lv_foreign_lock | TYPE VBELN_TAB, " | |||
| lv_i_bname | TYPE LTAK-BNAME, " SY-UNAME | |||
| lv_input_wrong | TYPE LTAK, " | |||
| lv_i_teilk | TYPE T340D-TEILV, " SPACE | |||
| lv_later_not_active | TYPE T340D, " | |||
| lt_et_ltak | TYPE STANDARD TABLE OF LTAK_VB, " | |||
| lv_i_refnr | TYPE LTAK-REFNR, " SPACE | |||
| lv_xfeld_wrong | TYPE LTAK, " | |||
| lt_et_ltap | TYPE STANDARD TABLE OF LTAP_VB, " | |||
| lv_i_squit | TYPE RL03T-SQUIT, " SPACE | |||
| lv_ldest_wrong | TYPE RL03T, " | |||
| lv_i_nidru | TYPE RL03A-NIDRU, " SPACE | |||
| lv_drukz_wrong | TYPE RL03A, " | |||
| lt_et_wmgrp_msg | TYPE STANDARD TABLE OF WMGRP_MSG, " | |||
| lv_i_drukz | TYPE T329F-DRUKZ, " SPACE | |||
| lv_delivery_not_found | TYPE T329F, " | |||
| lv_i_ldest | TYPE LTAP-LDEST, " SPACE | |||
| lv_no_to_created | TYPE LTAP, " | |||
| lv_i_komim | TYPE RL03T-KOMIM, " SPACE | |||
| lv_teilk_wronk | TYPE RL03T, " | |||
| lv_i_update_task | TYPE RL03A-VERBU, " SPACE | |||
| lv_update_without_commit | TYPE RL03A, " | |||
| lv_no_authority | TYPE RL03A, " | |||
| lv_i_commit_work | TYPE RL03B-COMIT. " 'X' |
|   CALL FUNCTION 'L_TO_CREATE_DN_MULTIPLE' "NOTRANSL: Erzeugen eines Transportauftrags zu mehreren Lieferscheinen |
| EXPORTING | ||
| I_LGNUM | = lv_i_lgnum | |
| I_BNAME | = lv_i_bname | |
| I_TEILK | = lv_i_teilk | |
| I_REFNR | = lv_i_refnr | |
| I_SQUIT | = lv_i_squit | |
| I_NIDRU | = lv_i_nidru | |
| I_DRUKZ | = lv_i_drukz | |
| I_LDEST | = lv_i_ldest | |
| I_KOMIM | = lv_i_komim | |
| I_UPDATE_TASK | = lv_i_update_task | |
| I_COMMIT_WORK | = lv_i_commit_work | |
| TABLES | ||
| IT_VBELN | = lt_it_vbeln | |
| ET_LTAK | = lt_et_ltak | |
| ET_LTAP | = lt_et_ltap | |
| ET_WMGRP_MSG | = lt_et_wmgrp_msg | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| INPUT_WRONG = 10 | ||
| LATER_NOT_ACTIVE = 11 | ||
| XFELD_WRONG = 2 | ||
| LDEST_WRONG = 3 | ||
| DRUKZ_WRONG = 4 | ||
| DELIVERY_NOT_FOUND = 5 | ||
| NO_TO_CREATED = 6 | ||
| TEILK_WRONK = 7 | ||
| UPDATE_WITHOUT_COMMIT = 8 | ||
| NO_AUTHORITY = 9 | ||
| . " L_TO_CREATE_DN_MULTIPLE | ||
ABAP code using 7.40 inline data declarations to call FM L_TO_CREATE_DN_MULTIPLE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single LGNUM FROM LTAK INTO @DATA(ld_i_lgnum). | ||||
| "SELECT single BNAME FROM LTAK INTO @DATA(ld_i_bname). | ||||
| DATA(ld_i_bname) | = SY-UNAME. | |||
| "SELECT single TEILV FROM T340D INTO @DATA(ld_i_teilk). | ||||
| DATA(ld_i_teilk) | = ' '. | |||
| "SELECT single REFNR FROM LTAK INTO @DATA(ld_i_refnr). | ||||
| DATA(ld_i_refnr) | = ' '. | |||
| "SELECT single SQUIT FROM RL03T INTO @DATA(ld_i_squit). | ||||
| DATA(ld_i_squit) | = ' '. | |||
| "SELECT single NIDRU FROM RL03A INTO @DATA(ld_i_nidru). | ||||
| DATA(ld_i_nidru) | = ' '. | |||
| "SELECT single DRUKZ FROM T329F INTO @DATA(ld_i_drukz). | ||||
| DATA(ld_i_drukz) | = ' '. | |||
| "SELECT single LDEST FROM LTAP INTO @DATA(ld_i_ldest). | ||||
| DATA(ld_i_ldest) | = ' '. | |||
| "SELECT single KOMIM FROM RL03T INTO @DATA(ld_i_komim). | ||||
| DATA(ld_i_komim) | = ' '. | |||
| "SELECT single VERBU FROM RL03A INTO @DATA(ld_i_update_task). | ||||
| DATA(ld_i_update_task) | = ' '. | |||
| "SELECT single COMIT FROM RL03B INTO @DATA(ld_i_commit_work). | ||||
| DATA(ld_i_commit_work) | = 'X'. | |||
Search for further information about these or an SAP related objects