SAP MCS_EVENT_DELETE Function Module for NOTRANSL: LIS: Ereignis löschen
MCS_EVENT_DELETE is a standard mcs event delete 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 löschen 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 delete FM, simply by entering the name MCS_EVENT_DELETE 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_DELETE 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_DELETE'"NOTRANSL: LIS: Ereignis löschen.
EXPORTING
I_ZEITP = "Event
* NO_TRANSPORT = ' ' "No deletion of transport after incorrect create
* NO_UPDATE_CHECK = ' ' "No check if update rules exist
CHANGING
* I_KAPPL = "Application for event
EXCEPTIONS
EVENT_NOT_EXIST = 1 EVENT_CANNOT_DELETED = 2
IMPORTING Parameters details for MCS_EVENT_DELETE
I_ZEITP - Event
Data type: DMCSE-ZEITPOptional: No
Call by Reference: No ( called with pass by value option)
NO_TRANSPORT - No deletion of transport after incorrect create
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_UPDATE_CHECK - No check if update rules exist
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MCS_EVENT_DELETE
I_KAPPL - Application for event
Data type: DMCSE-KAPPLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EVENT_NOT_EXIST - Event does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EVENT_CANNOT_DELETED - Event cannot be deleted
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MCS_EVENT_DELETE 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_kappl | TYPE DMCSE-KAPPL, " | |||
| lv_i_zeitp | TYPE DMCSE-ZEITP, " | |||
| lv_event_not_exist | TYPE DMCSE, " | |||
| lv_no_transport | TYPE XFLAG, " SPACE | |||
| lv_event_cannot_deleted | TYPE XFLAG, " | |||
| lv_no_update_check | TYPE XFLAG. " SPACE |
|   CALL FUNCTION 'MCS_EVENT_DELETE' "NOTRANSL: LIS: Ereignis löschen |
| EXPORTING | ||
| I_ZEITP | = lv_i_zeitp | |
| NO_TRANSPORT | = lv_no_transport | |
| NO_UPDATE_CHECK | = lv_no_update_check | |
| CHANGING | ||
| I_KAPPL | = lv_i_kappl | |
| EXCEPTIONS | ||
| EVENT_NOT_EXIST = 1 | ||
| EVENT_CANNOT_DELETED = 2 | ||
| . " MCS_EVENT_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM MCS_EVENT_DELETE
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 KAPPL FROM DMCSE INTO @DATA(ld_i_kappl). | ||||
| "SELECT single ZEITP FROM DMCSE INTO @DATA(ld_i_zeitp). | ||||
| DATA(ld_no_transport) | = ' '. | |||
| DATA(ld_no_update_check) | = ' '. | |||
Search for further information about these or an SAP related objects