SAP L_TO_CREATE_MULTIPLE Function Module for NOTRANSL: Erzeugen eines Transportauftrags mit mehreren Positionen









L_TO_CREATE_MULTIPLE is a standard l to create 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 mit mehreren Positionen 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 multiple FM, simply by entering the name L_TO_CREATE_MULTIPLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: L03B
Program Name: SAPLL03B
Main Program: SAPLL03B
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function L_TO_CREATE_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_MULTIPLE'"NOTRANSL: Erzeugen eines Transportauftrags mit mehreren Positionen
EXPORTING
I_LGNUM = "Warehouse number
* I_COMMIT_WORK = 'X' "
* I_BNAME = SY-UNAME "
* I_KOMPL = 'X' "
* I_SOLEX = 0 "Planned Transfer Order Processing Time from External System
* I_PERNR = 0 "Personnel Number
* I_MINWM = ' ' "
* I_AUSFB = ' ' "
I_BWLVS = "Movement Type
* I_BETYP = ' ' "Requirement Type
* I_BENUM = ' ' "Requirement Number
* I_LZNUM = ' ' "
* I_NIDRU = ' ' "Do not print
* I_DRUKZ = ' ' "Print Indicator
* I_NOSPL = ' ' "No TO split
* I_UPDATE_TASK = ' ' "

IMPORTING
E_TANUM = "

TABLES
T_LTAP_CREAT = "
* T_LTAK = "
* T_LTAP_VB = "

EXCEPTIONS
NO_TO_CREATED = 1 NLTYP_WRONG = 10 NLPLA_WRONG = 11 NLTYP_MISSING = 12 RLTYP_WRONG = 13 RLPLA_WRONG = 14 RLTYP_MISSING = 15 SQUIT_FORBIDDEN = 16 MANUAL_TO_FORBIDDEN = 17 LETYP_WRONG = 18 VLPLA_MISSING = 19 BWLVS_WRONG = 2 NLPLA_MISSING = 20 SOBKZ_WRONG = 21 SOBKZ_MISSING = 22 SONUM_MISSING = 23 BESTQ_WRONG = 24 LGBER_WRONG = 25 XFELD_WRONG = 26 DATE_WRONG = 27 DRUKZ_WRONG = 28 LDEST_WRONG = 29 BETYP_WRONG = 3 UPDATE_WITHOUT_COMMIT = 30 NO_AUTHORITY = 31 MATERIAL_NOT_FOUND = 32 LENUM_WRONG = 33 MATNR_MISSING = 34 WERKS_MISSING = 35 ANFME_MISSING = 36 ALTME_MISSING = 37 LGORT_WRONG_OR_MISSING = 38 BENUM_MISSING = 4 BETYP_MISSING = 5 FOREIGN_LOCK = 6 VLTYP_WRONG = 7 VLPLA_WRONG = 8 VLTYP_MISSING = 9
.



IMPORTING Parameters details for L_TO_CREATE_MULTIPLE

I_LGNUM - Warehouse number

Data type: LTAK-LGNUM
Optional: No
Call by Reference: No ( called with pass by value option)

I_COMMIT_WORK -

Data type: RL03B-COMIT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BNAME -

Data type: LTAK-BNAME
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KOMPL -

Data type: RL03B-KOMPL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SOLEX - Planned Transfer Order Processing Time from External System

Data type: LTAK-SOLEX
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PERNR - Personnel Number

Data type: LTAK-PERNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MINWM -

Data type: LTAK-MINWM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AUSFB -

Data type: LTAK-AUSFB
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BWLVS - Movement Type

Data type: LTAK-BWLVS
Optional: No
Call by Reference: No ( called with pass by value option)

I_BETYP - Requirement Type

Data type: LTAK-BETYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BENUM - Requirement Number

Data type: LTAK-BENUM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LZNUM -

Data type: LTAK-LZNUM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NIDRU - Do not print

Data type: RL03A-NIDRU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DRUKZ - Print Indicator

Data type: T329F-DRUKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NOSPL - No TO split

Data type: RL03A-NOSPL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPDATE_TASK -

Data type: RL03A-VERBU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for L_TO_CREATE_MULTIPLE

E_TANUM -

Data type: LTAK-TANUM
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for L_TO_CREATE_MULTIPLE

T_LTAP_CREAT -

Data type: LTAP_CREAT
Optional: No
Call by Reference: No ( called with pass by value option)

T_LTAK -

Data type: LTAK_VB
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_LTAP_VB -

Data type: LTAP_VB
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_TO_CREATED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NLTYP_WRONG - Destination storage type contradicts movement type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NLPLA_WRONG - Destination storage bin contradicts movement type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NLTYP_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RLTYP_WRONG - Return storage type contradicts movement type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RLPLA_WRONG - Return storage bin contradicts movement type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RLTYP_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SQUIT_FORBIDDEN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MANUAL_TO_FORBIDDEN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LETYP_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VLPLA_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BWLVS_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NLPLA_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SOBKZ_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SOBKZ_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SONUM_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BESTQ_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LGBER_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

XFELD_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DATE_WRONG - Incorrect Date Entry

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DRUKZ_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LDEST_WRONG - Printer does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BETYP_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

UPDATE_WITHOUT_COMMIT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY - No Authorization

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MATERIAL_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LENUM_WRONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MATNR_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WERKS_MISSING - Plant missing

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ANFME_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ALTME_MISSING - Unit of measure missing

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LGORT_WRONG_OR_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BENUM_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BETYP_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FOREIGN_LOCK -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VLTYP_WRONG - Source storage type contradicts movement type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VLPLA_WRONG - Source storage bin contradicts movement type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VLTYP_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for L_TO_CREATE_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_e_tanum  TYPE LTAK-TANUM, "   
lv_i_lgnum  TYPE LTAK-LGNUM, "   
lt_t_ltap_creat  TYPE STANDARD TABLE OF LTAP_CREAT, "   
lv_no_to_created  TYPE LTAP_CREAT, "   
lv_nltyp_wrong  TYPE LTAP_CREAT, "   
lv_i_commit_work  TYPE RL03B-COMIT, "   'X'
lv_i_bname  TYPE LTAK-BNAME, "   SY-UNAME
lv_nlpla_wrong  TYPE LTAK, "   
lv_i_kompl  TYPE RL03B-KOMPL, "   'X'
lv_nltyp_missing  TYPE RL03B, "   
lv_i_solex  TYPE LTAK-SOLEX, "   0
lv_rltyp_wrong  TYPE LTAK, "   
lv_i_pernr  TYPE LTAK-PERNR, "   0
lv_rlpla_wrong  TYPE LTAK, "   
lv_i_minwm  TYPE LTAK-MINWM, "   SPACE
lv_rltyp_missing  TYPE LTAK, "   
lv_i_ausfb  TYPE LTAK-AUSFB, "   SPACE
lv_squit_forbidden  TYPE LTAK, "   
lv_manual_to_forbidden  TYPE LTAK, "   
lv_letyp_wrong  TYPE LTAK, "   
lv_vlpla_missing  TYPE LTAK, "   
lt_t_ltak  TYPE STANDARD TABLE OF LTAK_VB, "   
lv_i_bwlvs  TYPE LTAK-BWLVS, "   
lv_bwlvs_wrong  TYPE LTAK, "   
lv_nlpla_missing  TYPE LTAK, "   
lv_sobkz_wrong  TYPE LTAK, "   
lv_sobkz_missing  TYPE LTAK, "   
lv_sonum_missing  TYPE LTAK, "   
lv_bestq_wrong  TYPE LTAK, "   
lv_lgber_wrong  TYPE LTAK, "   
lv_xfeld_wrong  TYPE LTAK, "   
lv_date_wrong  TYPE LTAK, "   
lv_drukz_wrong  TYPE LTAK, "   
lv_ldest_wrong  TYPE LTAK, "   
lv_i_betyp  TYPE LTAK-BETYP, "   SPACE
lt_t_ltap_vb  TYPE STANDARD TABLE OF LTAP_VB, "   
lv_betyp_wrong  TYPE LTAP_VB, "   
lv_update_without_commit  TYPE LTAP_VB, "   
lv_no_authority  TYPE LTAP_VB, "   
lv_material_not_found  TYPE LTAP_VB, "   
lv_lenum_wrong  TYPE LTAP_VB, "   
lv_matnr_missing  TYPE LTAP_VB, "   
lv_werks_missing  TYPE LTAP_VB, "   
lv_anfme_missing  TYPE LTAP_VB, "   
lv_altme_missing  TYPE LTAP_VB, "   
lv_lgort_wrong_or_missing  TYPE LTAP_VB, "   
lv_i_benum  TYPE LTAK-BENUM, "   SPACE
lv_benum_missing  TYPE LTAK, "   
lv_i_lznum  TYPE LTAK-LZNUM, "   SPACE
lv_betyp_missing  TYPE LTAK, "   
lv_i_nidru  TYPE RL03A-NIDRU, "   SPACE
lv_foreign_lock  TYPE RL03A, "   
lv_i_drukz  TYPE T329F-DRUKZ, "   SPACE
lv_vltyp_wrong  TYPE T329F, "   
lv_i_nospl  TYPE RL03A-NOSPL, "   SPACE
lv_vlpla_wrong  TYPE RL03A, "   
lv_i_update_task  TYPE RL03A-VERBU, "   SPACE
lv_vltyp_missing  TYPE RL03A. "   

  CALL FUNCTION 'L_TO_CREATE_MULTIPLE'  "NOTRANSL: Erzeugen eines Transportauftrags mit mehreren Positionen
    EXPORTING
         I_LGNUM = lv_i_lgnum
         I_COMMIT_WORK = lv_i_commit_work
         I_BNAME = lv_i_bname
         I_KOMPL = lv_i_kompl
         I_SOLEX = lv_i_solex
         I_PERNR = lv_i_pernr
         I_MINWM = lv_i_minwm
         I_AUSFB = lv_i_ausfb
         I_BWLVS = lv_i_bwlvs
         I_BETYP = lv_i_betyp
         I_BENUM = lv_i_benum
         I_LZNUM = lv_i_lznum
         I_NIDRU = lv_i_nidru
         I_DRUKZ = lv_i_drukz
         I_NOSPL = lv_i_nospl
         I_UPDATE_TASK = lv_i_update_task
    IMPORTING
         E_TANUM = lv_e_tanum
    TABLES
         T_LTAP_CREAT = lt_t_ltap_creat
         T_LTAK = lt_t_ltak
         T_LTAP_VB = lt_t_ltap_vb
    EXCEPTIONS
        NO_TO_CREATED = 1
        NLTYP_WRONG = 10
        NLPLA_WRONG = 11
        NLTYP_MISSING = 12
        RLTYP_WRONG = 13
        RLPLA_WRONG = 14
        RLTYP_MISSING = 15
        SQUIT_FORBIDDEN = 16
        MANUAL_TO_FORBIDDEN = 17
        LETYP_WRONG = 18
        VLPLA_MISSING = 19
        BWLVS_WRONG = 2
        NLPLA_MISSING = 20
        SOBKZ_WRONG = 21
        SOBKZ_MISSING = 22
        SONUM_MISSING = 23
        BESTQ_WRONG = 24
        LGBER_WRONG = 25
        XFELD_WRONG = 26
        DATE_WRONG = 27
        DRUKZ_WRONG = 28
        LDEST_WRONG = 29
        BETYP_WRONG = 3
        UPDATE_WITHOUT_COMMIT = 30
        NO_AUTHORITY = 31
        MATERIAL_NOT_FOUND = 32
        LENUM_WRONG = 33
        MATNR_MISSING = 34
        WERKS_MISSING = 35
        ANFME_MISSING = 36
        ALTME_MISSING = 37
        LGORT_WRONG_OR_MISSING = 38
        BENUM_MISSING = 4
        BETYP_MISSING = 5
        FOREIGN_LOCK = 6
        VLTYP_WRONG = 7
        VLPLA_WRONG = 8
        VLTYP_MISSING = 9
. " L_TO_CREATE_MULTIPLE




ABAP code using 7.40 inline data declarations to call FM L_TO_CREATE_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 TANUM FROM LTAK INTO @DATA(ld_e_tanum).
 
"SELECT single LGNUM FROM LTAK INTO @DATA(ld_i_lgnum).
 
 
 
 
"SELECT single COMIT FROM RL03B INTO @DATA(ld_i_commit_work).
DATA(ld_i_commit_work) = 'X'.
 
"SELECT single BNAME FROM LTAK INTO @DATA(ld_i_bname).
DATA(ld_i_bname) = SY-UNAME.
 
 
"SELECT single KOMPL FROM RL03B INTO @DATA(ld_i_kompl).
DATA(ld_i_kompl) = 'X'.
 
 
"SELECT single SOLEX FROM LTAK INTO @DATA(ld_i_solex).
 
 
"SELECT single PERNR FROM LTAK INTO @DATA(ld_i_pernr).
 
 
"SELECT single MINWM FROM LTAK INTO @DATA(ld_i_minwm).
DATA(ld_i_minwm) = ' '.
 
 
"SELECT single AUSFB FROM LTAK INTO @DATA(ld_i_ausfb).
DATA(ld_i_ausfb) = ' '.
 
 
 
 
 
 
"SELECT single BWLVS FROM LTAK INTO @DATA(ld_i_bwlvs).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single BETYP FROM LTAK INTO @DATA(ld_i_betyp).
DATA(ld_i_betyp) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single BENUM FROM LTAK INTO @DATA(ld_i_benum).
DATA(ld_i_benum) = ' '.
 
 
"SELECT single LZNUM FROM LTAK INTO @DATA(ld_i_lznum).
DATA(ld_i_lznum) = ' '.
 
 
"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 NOSPL FROM RL03A INTO @DATA(ld_i_nospl).
DATA(ld_i_nospl) = ' '.
 
 
"SELECT single VERBU FROM RL03A INTO @DATA(ld_i_update_task).
DATA(ld_i_update_task) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!