SAP L_COMMUNICATION_TO_CREATE Function Module for NOTRANSL: Tranportauftragserstellung im Hintergrund
L_COMMUNICATION_TO_CREATE is a standard l communication to create 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: Tranportauftragserstellung im Hintergrund 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 communication to create FM, simply by entering the name L_COMMUNICATION_TO_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: LCMB
Program Name: SAPLLCMB
Main Program: SAPLLCMB
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function L_COMMUNICATION_TO_CREATE 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_COMMUNICATION_TO_CREATE'"NOTRANSL: Tranportauftragserstellung im Hintergrund.
EXPORTING
* MBELEG = ' ' "
* VLTYP = ' ' "Source Storage Type
* NLTYP = ' ' "Destination Storage Type
* BERKZ = ' ' "
* LANGU = "Current System Language
* MJAHR = ' ' "Material Document Year
MAILK = "Mail Indicator
BUSER = "Mail Recipient
* EXPRESS = ' ' "
* LVSDZ = ' ' "
* BETYP = ' ' "Requirement Type
* BENUM = ' ' "Requirement Number
* MATNR = ' ' "Material Number
TABLES
T_LTBUB = "
* T_LDILE = "Transmission Struct.for Stor.Units for Immediate TO Creation
IMPORTING Parameters details for L_COMMUNICATION_TO_CREATE
MBELEG -
Data type: MSEG-MBLNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VLTYP - Source Storage Type
Data type: LTBK-VLTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NLTYP - Destination Storage Type
Data type: LTBK-NLTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BERKZ -
Data type: PKHD-BERKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU - Current System Language
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
MJAHR - Material Document Year
Data type: MSEG-MJAHRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAILK - Mail Indicator
Data type: T333M-MAILKOptional: No
Call by Reference: No ( called with pass by value option)
BUSER - Mail Recipient
Data type: MKPF-USNAMOptional: No
Call by Reference: No ( called with pass by value option)
EXPRESS -
Data type: T333M-MSNDEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LVSDZ -
Data type: T340D-LVSDZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BETYP - Requirement Type
Data type: LTBK-BETYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BENUM - Requirement Number
Data type: LTBK-BENUMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATNR - Material Number
Data type: MARA-MATNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for L_COMMUNICATION_TO_CREATE
T_LTBUB -
Data type: LTBUBOptional: No
Call by Reference: No ( called with pass by value option)
T_LDILE - Transmission Struct.for Stor.Units for Immediate TO Creation
Data type: LDILEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for L_COMMUNICATION_TO_CREATE 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_mbeleg | TYPE MSEG-MBLNR, " SPACE | |||
| lt_t_ltbub | TYPE STANDARD TABLE OF LTBUB, " | |||
| lv_vltyp | TYPE LTBK-VLTYP, " SPACE | |||
| lv_nltyp | TYPE LTBK-NLTYP, " SPACE | |||
| lv_berkz | TYPE PKHD-BERKZ, " SPACE | |||
| lv_langu | TYPE SY-LANGU, " | |||
| lv_mjahr | TYPE MSEG-MJAHR, " SPACE | |||
| lt_t_ldile | TYPE STANDARD TABLE OF LDILE, " | |||
| lv_mailk | TYPE T333M-MAILK, " | |||
| lv_buser | TYPE MKPF-USNAM, " | |||
| lv_express | TYPE T333M-MSNDE, " SPACE | |||
| lv_lvsdz | TYPE T340D-LVSDZ, " SPACE | |||
| lv_betyp | TYPE LTBK-BETYP, " SPACE | |||
| lv_benum | TYPE LTBK-BENUM, " SPACE | |||
| lv_matnr | TYPE MARA-MATNR. " SPACE |
|   CALL FUNCTION 'L_COMMUNICATION_TO_CREATE' "NOTRANSL: Tranportauftragserstellung im Hintergrund |
| EXPORTING | ||
| MBELEG | = lv_mbeleg | |
| VLTYP | = lv_vltyp | |
| NLTYP | = lv_nltyp | |
| BERKZ | = lv_berkz | |
| LANGU | = lv_langu | |
| MJAHR | = lv_mjahr | |
| MAILK | = lv_mailk | |
| BUSER | = lv_buser | |
| EXPRESS | = lv_express | |
| LVSDZ | = lv_lvsdz | |
| BETYP | = lv_betyp | |
| BENUM | = lv_benum | |
| MATNR | = lv_matnr | |
| TABLES | ||
| T_LTBUB | = lt_t_ltbub | |
| T_LDILE | = lt_t_ldile | |
| . " L_COMMUNICATION_TO_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM L_COMMUNICATION_TO_CREATE
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 MBLNR FROM MSEG INTO @DATA(ld_mbeleg). | ||||
| DATA(ld_mbeleg) | = ' '. | |||
| "SELECT single VLTYP FROM LTBK INTO @DATA(ld_vltyp). | ||||
| DATA(ld_vltyp) | = ' '. | |||
| "SELECT single NLTYP FROM LTBK INTO @DATA(ld_nltyp). | ||||
| DATA(ld_nltyp) | = ' '. | |||
| "SELECT single BERKZ FROM PKHD INTO @DATA(ld_berkz). | ||||
| DATA(ld_berkz) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
| "SELECT single MJAHR FROM MSEG INTO @DATA(ld_mjahr). | ||||
| DATA(ld_mjahr) | = ' '. | |||
| "SELECT single MAILK FROM T333M INTO @DATA(ld_mailk). | ||||
| "SELECT single USNAM FROM MKPF INTO @DATA(ld_buser). | ||||
| "SELECT single MSNDE FROM T333M INTO @DATA(ld_express). | ||||
| DATA(ld_express) | = ' '. | |||
| "SELECT single LVSDZ FROM T340D INTO @DATA(ld_lvsdz). | ||||
| DATA(ld_lvsdz) | = ' '. | |||
| "SELECT single BETYP FROM LTBK INTO @DATA(ld_betyp). | ||||
| DATA(ld_betyp) | = ' '. | |||
| "SELECT single BENUM FROM LTBK INTO @DATA(ld_benum). | ||||
| DATA(ld_benum) | = ' '. | |||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_matnr). | ||||
| DATA(ld_matnr) | = ' '. | |||
Search for further information about these or an SAP related objects