SAP MCS_LIS_ENVIRONMENT_CREATE Function Module for NOTRANSL: LIS: Umfeld anlegen für externe Daten
MCS_LIS_ENVIRONMENT_CREATE is a standard mcs lis environment 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: LIS: Umfeld anlegen für externe Daten 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 mcs lis environment create FM, simply by entering the name MCS_LIS_ENVIRONMENT_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MCSE
Program Name: SAPLMCSE
Main Program: SAPLMCSE
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MCS_LIS_ENVIRONMENT_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 'MCS_LIS_ENVIRONMENT_CREATE'"NOTRANSL: LIS: Umfeld anlegen für externe Daten.
EXPORTING
* I_ZEITP = "Event
* I_CIMTYP = "Extension IDoc
* I_LOGSYS = "Logical system for IDoc
* I_PARNUM = "Partner for IDoc
* I_NEW_PARTNER = ' ' "New partner ind.
* I_NEW_LOGSYS = ' ' "New logical system ind.
* I_LOGSYSTXT = "IDOC port description
* I_IDOC = "IDOC name
* I_PORTNAME = "Port name, if NEW_PORT = 'X'
* I_PORTTEXT = "Text for port name, if NEW_PORT = 'X'
* I_NEW_PORT = ' ' "Ind.: Port to be created
I_KAPPL = "Application
* I_FLG_INFO = ' ' "
I_CSTRU = "Communication structure
I_ZPTXT = "Short text for event
* I_FGROUP = "Function group
* I_KEYFIELD = "Key field for logging (log)
* I_SEGMNT = "Segment name of IDOC
* I_FIDOC = "Create IDOC-Function MODULE
* I_IDOCTYP = ' ' "Type of IDoc entry
IMPORTING
E_FBSNAME = "Name of the generated entry function module
EXCEPTIONS
COM_STRUCTURE_INCORRECT = 1 NO_BASIC_APPLICATION = 2 NO_AUTHORITY = 3 NO_TRANSPORT = 4 INTERNAL_ERROR = 5 NO_VALUES_DETERMINED = 6
IMPORTING Parameters details for MCS_LIS_ENVIRONMENT_CREATE
I_ZEITP - Event
Data type: DMCSE-ZEITPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CIMTYP - Extension IDoc
Data type: EDISYN-CIMTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LOGSYS - Logical system for IDoc
Data type: DMCSE-LOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARNUM - Partner for IDoc
Data type: DMCSE-PARNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NEW_PARTNER - New partner ind.
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NEW_LOGSYS - New logical system ind.
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOGSYSTXT - IDOC port description
Data type: DMCSE-LOGTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_IDOC - IDOC name
Data type: DMCSE-CSTRUOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PORTNAME - Port name, if NEW_PORT = 'X'
Data type: DMCSE-PORTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PORTTEXT - Text for port name, if NEW_PORT = 'X'
Data type: DMCSE-PORTTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NEW_PORT - Ind.: Port to be created
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KAPPL - Application
Data type: DMCSE-KAPPLOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_INFO -
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CSTRU - Communication structure
Data type: DMCSE-CSTRUOptional: No
Call by Reference: No ( called with pass by value option)
I_ZPTXT - Short text for event
Data type: DMCSE-ZPTXTOptional: No
Call by Reference: No ( called with pass by value option)
I_FGROUP - Function group
Data type: DMCSE-FGROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KEYFIELD - Key field for logging (log)
Data type: DFIES-REFFIELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SEGMNT - Segment name of IDOC
Data type: EDIDD-SEGNAMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FIDOC - Create IDOC-Function MODULE
Data type: DMCSE-FIDOCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_IDOCTYP - Type of IDoc entry
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MCS_LIS_ENVIRONMENT_CREATE
E_FBSNAME - Name of the generated entry function module
Data type: RS38L-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COM_STRUCTURE_INCORRECT - Communication structure is incorrect
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_BASIC_APPLICATION - No basis application selected
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)
NO_TRANSPORT - Transport attributes
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal problems -> Log
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALUES_DETERMINED - Name range could not be determined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MCS_LIS_ENVIRONMENT_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_i_zeitp | TYPE DMCSE-ZEITP, " | |||
| lv_e_fbsname | TYPE RS38L-NAME, " | |||
| lv_com_structure_incorrect | TYPE RS38L, " | |||
| lv_i_cimtyp | TYPE EDISYN-CIMTYP, " | |||
| lv_i_logsys | TYPE DMCSE-LOGSYS, " | |||
| lv_i_parnum | TYPE DMCSE-PARNUM, " | |||
| lv_i_new_partner | TYPE XFLAG, " SPACE | |||
| lv_i_new_logsys | TYPE XFLAG, " SPACE | |||
| lv_i_logsystxt | TYPE DMCSE-LOGTXT, " | |||
| lv_i_idoc | TYPE DMCSE-CSTRU, " | |||
| lv_i_portname | TYPE DMCSE-PORT, " | |||
| lv_i_porttext | TYPE DMCSE-PORTTXT, " | |||
| lv_i_new_port | TYPE XFLAG, " SPACE | |||
| lv_i_kappl | TYPE DMCSE-KAPPL, " | |||
| lv_no_basic_application | TYPE DMCSE, " | |||
| lv_i_flg_info | TYPE XFLAG, " SPACE | |||
| lv_i_cstru | TYPE DMCSE-CSTRU, " | |||
| lv_no_authority | TYPE DMCSE, " | |||
| lv_i_zptxt | TYPE DMCSE-ZPTXT, " | |||
| lv_no_transport | TYPE DMCSE, " | |||
| lv_i_fgroup | TYPE DMCSE-FGROUP, " | |||
| lv_internal_error | TYPE DMCSE, " | |||
| lv_i_keyfield | TYPE DFIES-REFFIELD, " | |||
| lv_no_values_determined | TYPE DFIES, " | |||
| lv_i_segmnt | TYPE EDIDD-SEGNAM, " | |||
| lv_i_fidoc | TYPE DMCSE-FIDOC, " | |||
| lv_i_idoctyp | TYPE C. " SPACE |
|   CALL FUNCTION 'MCS_LIS_ENVIRONMENT_CREATE' "NOTRANSL: LIS: Umfeld anlegen für externe Daten |
| EXPORTING | ||
| I_ZEITP | = lv_i_zeitp | |
| I_CIMTYP | = lv_i_cimtyp | |
| I_LOGSYS | = lv_i_logsys | |
| I_PARNUM | = lv_i_parnum | |
| I_NEW_PARTNER | = lv_i_new_partner | |
| I_NEW_LOGSYS | = lv_i_new_logsys | |
| I_LOGSYSTXT | = lv_i_logsystxt | |
| I_IDOC | = lv_i_idoc | |
| I_PORTNAME | = lv_i_portname | |
| I_PORTTEXT | = lv_i_porttext | |
| I_NEW_PORT | = lv_i_new_port | |
| I_KAPPL | = lv_i_kappl | |
| I_FLG_INFO | = lv_i_flg_info | |
| I_CSTRU | = lv_i_cstru | |
| I_ZPTXT | = lv_i_zptxt | |
| I_FGROUP | = lv_i_fgroup | |
| I_KEYFIELD | = lv_i_keyfield | |
| I_SEGMNT | = lv_i_segmnt | |
| I_FIDOC | = lv_i_fidoc | |
| I_IDOCTYP | = lv_i_idoctyp | |
| IMPORTING | ||
| E_FBSNAME | = lv_e_fbsname | |
| EXCEPTIONS | ||
| COM_STRUCTURE_INCORRECT = 1 | ||
| NO_BASIC_APPLICATION = 2 | ||
| NO_AUTHORITY = 3 | ||
| NO_TRANSPORT = 4 | ||
| INTERNAL_ERROR = 5 | ||
| NO_VALUES_DETERMINED = 6 | ||
| . " MCS_LIS_ENVIRONMENT_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM MCS_LIS_ENVIRONMENT_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 ZEITP FROM DMCSE INTO @DATA(ld_i_zeitp). | ||||
| "SELECT single NAME FROM RS38L INTO @DATA(ld_e_fbsname). | ||||
| "SELECT single CIMTYP FROM EDISYN INTO @DATA(ld_i_cimtyp). | ||||
| "SELECT single LOGSYS FROM DMCSE INTO @DATA(ld_i_logsys). | ||||
| "SELECT single PARNUM FROM DMCSE INTO @DATA(ld_i_parnum). | ||||
| DATA(ld_i_new_partner) | = ' '. | |||
| DATA(ld_i_new_logsys) | = ' '. | |||
| "SELECT single LOGTXT FROM DMCSE INTO @DATA(ld_i_logsystxt). | ||||
| "SELECT single CSTRU FROM DMCSE INTO @DATA(ld_i_idoc). | ||||
| "SELECT single PORT FROM DMCSE INTO @DATA(ld_i_portname). | ||||
| "SELECT single PORTTXT FROM DMCSE INTO @DATA(ld_i_porttext). | ||||
| DATA(ld_i_new_port) | = ' '. | |||
| "SELECT single KAPPL FROM DMCSE INTO @DATA(ld_i_kappl). | ||||
| DATA(ld_i_flg_info) | = ' '. | |||
| "SELECT single CSTRU FROM DMCSE INTO @DATA(ld_i_cstru). | ||||
| "SELECT single ZPTXT FROM DMCSE INTO @DATA(ld_i_zptxt). | ||||
| "SELECT single FGROUP FROM DMCSE INTO @DATA(ld_i_fgroup). | ||||
| "SELECT single REFFIELD FROM DFIES INTO @DATA(ld_i_keyfield). | ||||
| "SELECT single SEGNAM FROM EDIDD INTO @DATA(ld_i_segmnt). | ||||
| "SELECT single FIDOC FROM DMCSE INTO @DATA(ld_i_fidoc). | ||||
| DATA(ld_i_idoctyp) | = ' '. | |||
Search for further information about these or an SAP related objects