SAP MCS_EVENT_UNIT_OBJECTS_INSERT Function Module for NOTRANSL: LIS Ereignis/Einheit in den Transportauftrag einstellen









MCS_EVENT_UNIT_OBJECTS_INSERT is a standard mcs event unit objects insert 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 Ereignis/Einheit in den Transportauftrag einstellen 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 event unit objects insert FM, simply by entering the name MCS_EVENT_UNIT_OBJECTS_INSERT 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_EVENT_UNIT_OBJECTS_INSERT 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_EVENT_UNIT_OBJECTS_INSERT'"NOTRANSL: LIS Ereignis/Einheit in den Transportauftrag einstellen
EXPORTING
* I_ZEITP = "Event
* I_SFEIN = "Unit
* I_FGROUP = "
* I_COMSTRU = "Communication structure
* NO_MESSAGE = ' ' "Indicator: to be locked!
* I_FLG_DELETE = ' ' "Deletion indicator

EXCEPTIONS
OBJECT_NOT_ALLOWED = 1 NO_PARAMETER = 2
.



IMPORTING Parameters details for MCS_EVENT_UNIT_OBJECTS_INSERT

I_ZEITP - Event

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

I_SFEIN - Unit

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

I_FGROUP -

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

I_COMSTRU - Communication structure

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

NO_MESSAGE - Indicator: to be locked!

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

I_FLG_DELETE - Deletion indicator

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

EXCEPTIONS details

OBJECT_NOT_ALLOWED - No event transferred

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

NO_PARAMETER - Neither event nor unit transferred

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

Copy and paste ABAP code example for MCS_EVENT_UNIT_OBJECTS_INSERT 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_object_not_allowed  TYPE DMCSE, "   
lv_i_sfein  TYPE TMC6-SFEIN, "   
lv_no_parameter  TYPE TMC6, "   
lv_i_fgroup  TYPE DMCSE-FGROUP, "   
lv_i_comstru  TYPE DMCSE-CSTRU, "   
lv_no_message  TYPE XFLAG, "   SPACE
lv_i_flg_delete  TYPE XFLAG. "   SPACE

  CALL FUNCTION 'MCS_EVENT_UNIT_OBJECTS_INSERT'  "NOTRANSL: LIS Ereignis/Einheit in den Transportauftrag einstellen
    EXPORTING
         I_ZEITP = lv_i_zeitp
         I_SFEIN = lv_i_sfein
         I_FGROUP = lv_i_fgroup
         I_COMSTRU = lv_i_comstru
         NO_MESSAGE = lv_no_message
         I_FLG_DELETE = lv_i_flg_delete
    EXCEPTIONS
        OBJECT_NOT_ALLOWED = 1
        NO_PARAMETER = 2
. " MCS_EVENT_UNIT_OBJECTS_INSERT




ABAP code using 7.40 inline data declarations to call FM MCS_EVENT_UNIT_OBJECTS_INSERT

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 SFEIN FROM TMC6 INTO @DATA(ld_i_sfein).
 
 
"SELECT single FGROUP FROM DMCSE INTO @DATA(ld_i_fgroup).
 
"SELECT single CSTRU FROM DMCSE INTO @DATA(ld_i_comstru).
 
DATA(ld_no_message) = ' '.
 
DATA(ld_i_flg_delete) = ' '.
 


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!