SAP EXIT_SAPLC10Y_001 Function Module for EHS: Additional Checks for Status Assignments
EXIT_SAPLC10Y_001 is a standard exit saplc10y 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Additional Checks for Status Assignments 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 exit saplc10y 001 FM, simply by entering the name EXIT_SAPLC10Y_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XC1A
Program Name: SAPLXC1A
Main Program: SAPLXC1A
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLC10Y_001 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 'EXIT_SAPLC10Y_001'"EHS: Additional Checks for Status Assignments.
EXPORTING
I_ACTYPE = "Activity Type
I_ADDINF = "Change Number and Key Date
I_KEYPATH = "Current Object
I_TRTYPE = "Transaction Type
I_FLG_DIALOG = "= 'X': Dialog Logic; = ' ': API Logic
* I_OKCODE = ' ' "OK Code (in Dialog Logic Only)
CHANGING
* X_ADD_PARAMS = "(Further Parameters)
TABLES
I_IOTAB_SAV = "Table of Current Status Assignments
I_IOTAB = "Table of Planned Creations and Changes
I_IOTAB_DEL = "Table of Planned Deletions
E_STATUS_CHANGES_REFUSED_TAB = "Table of Rejected Status Changes
EXCEPTIONS
ILLEGAL_INPUT = 1 INTERNAL_ERROR = 2
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.C10Y_DEFAULT_STATUS_IOTAB_GET NOTRANSL: EHS: (obsolet) Statusvoreinstellungen aus Customizing ermitteln
C10Y_ENTRY NOTRANSL: EHS: (obsolet)
C10Y_ESTST_BUF_READ NOTRANSL: EHS: (obsolet) Lesen der Statuseinträge mit Berücksichtigung des
C10Y_FLG_CHANGED_GET NOTRANSL: EHS: (obsolet) das Änderungskennzeichen auslesen
C10Y_FLG_SAVE_PEND_GET NOTRANSL: EHS: (obsolet) prüfen, ob noch Daten zu sichern sind
C10Y_FLG_SAVE_PEND_RESET NOTRANSL: EHS: (obsolet) Kennzeichen 'ungesicherte Daten' zurücksetzen
C10Y_IOTAB_OBJECTNAME_BUILD NOTRANSL: EHS: (obsolet) Für eine Steploop-Zeile einen Objektnamen generie
C10Y_OKCODE_HANDLER NOTRANSL: EHS: (obsolet) Ok-Code Behandlung für Statuszuordnungen
C10Y_OTYPE_CHECK NOTRANSL: EHS: (obsolet) den Objekttypen des Verantwortlichen eines Status
C10Y_OTYPE_REALO_USER_GET NOTRANSL: EHS: (obsolet) die Verantwortlichen aufgrund von Otype und Realo
C10Y_STATUS_ALLOC_DESCR_GET NOTRANSL: EHS: (obsolet) die Bezeichner einer Statuszuordnung ermitteln
C10Y_STATUS_USER_INFO_GET NOTRANSL: EHS: (obsolet) Verantwortliche Benutzer zum Status ermitteln
C10Y_STAT_DIALOG_DATA_GET_SET NOTRANSL: EHS: (obsolet) Dialogdaten der Statuszuordnungen lesen/setzen
C10Y_TABSCREEN_CLOSE NOTRANSL: EHS: (obsolet) Nachverarbeitung Registerkarten Statuszuordnungen
C10Y_TABSCREEN_INIT NOTRANSL: EHS: (obsolet) Initialisiert globale Verwaltungsinformationen
C10Y_TABSCREEN_OPEN NOTRANSL: EHS: (obsolet) Vorverarbeitung Registerkarten Verwaltungsinforma
C10Y_USER_EXIT_CALLS NOTRANSL: EHS: (obsolet) Aufruf der Customer-Exits für die Statuszuordnung
C10Y_USREXT_WRAPPER_APPLSCP_C NOTRANSL: EHS: EXIT_SAPLC10Y_001 aus dem Geltungsbereich aufrufen
C10Y_USREXT_WRAPPER_APPLSCP_S NOTRANSL: EHS: EXIT_SAPLC10Y_002 aus dem Geltungsbereich aufrufen
CONVERSION_EXIT_SUBST_INPUT NOTRANSL: EHS: (obsolet) Konvertierung Status: Eingabe -> internes Format
CONVERSION_EXIT_SUBST_OUTPUT NOTRANSL: EHS: (obsolet) Konvertierung Status: internes Format -> Ausgabe
IMPORTING Parameters details for EXIT_SAPLC10Y_001
I_ACTYPE - Activity Type
Data type: RCGDIALCTR-ACTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_ADDINF - Change Number and Key Date
Data type: RCGADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_KEYPATH - Current Object
Data type: RCGKPATHOptional: No
Call by Reference: No ( called with pass by value option)
I_TRTYPE - Transaction Type
Data type: RCGDIALCTR-TRTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_DIALOG - = 'X': Dialog Logic; = ' ': API Logic
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
I_OKCODE - OK Code (in Dialog Logic Only)
Data type: ESP1_OKCODE_TYPEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLC10Y_001
X_ADD_PARAMS - (Further Parameters)
Data type: ESP7_ADD_PARAMS_STATUS_TYPEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for EXIT_SAPLC10Y_001
I_IOTAB_SAV - Table of Current Status Assignments
Data type: RCGSTIOTOptional: No
Call by Reference: No ( called with pass by value option)
I_IOTAB - Table of Planned Creations and Changes
Data type: RCGSTIOTOptional: No
Call by Reference: No ( called with pass by value option)
I_IOTAB_DEL - Table of Planned Deletions
Data type: RCGSTIOTOptional: No
Call by Reference: No ( called with pass by value option)
E_STATUS_CHANGES_REFUSED_TAB - Table of Rejected Status Changes
Data type: ESP7_STATUS_REFUSED_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ILLEGAL_INPUT - Invalid Entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal System Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLC10Y_001 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_actype | TYPE RCGDIALCTR-ACTYPE, " | |||
| lt_i_iotab_sav | TYPE STANDARD TABLE OF RCGSTIOT, " | |||
| lv_x_add_params | TYPE ESP7_ADD_PARAMS_STATUS_TYPE, " | |||
| lv_illegal_input | TYPE ESP7_ADD_PARAMS_STATUS_TYPE, " | |||
| lt_i_iotab | TYPE STANDARD TABLE OF RCGSTIOT, " | |||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lv_internal_error | TYPE RCGADDINF, " | |||
| lv_i_keypath | TYPE RCGKPATH, " | |||
| lt_i_iotab_del | TYPE STANDARD TABLE OF RCGSTIOT, " | |||
| lv_i_trtype | TYPE RCGDIALCTR-TRTYPE, " | |||
| lt_e_status_changes_refused_tab | TYPE STANDARD TABLE OF ESP7_STATUS_REFUSED_TAB_TYPE, " | |||
| lv_i_flg_dialog | TYPE ESP1_BOOLEAN, " | |||
| lv_i_okcode | TYPE ESP1_OKCODE_TYPE. " SPACE |
|   CALL FUNCTION 'EXIT_SAPLC10Y_001' "EHS: Additional Checks for Status Assignments |
| EXPORTING | ||
| I_ACTYPE | = lv_i_actype | |
| I_ADDINF | = lv_i_addinf | |
| I_KEYPATH | = lv_i_keypath | |
| I_TRTYPE | = lv_i_trtype | |
| I_FLG_DIALOG | = lv_i_flg_dialog | |
| I_OKCODE | = lv_i_okcode | |
| CHANGING | ||
| X_ADD_PARAMS | = lv_x_add_params | |
| TABLES | ||
| I_IOTAB_SAV | = lt_i_iotab_sav | |
| I_IOTAB | = lt_i_iotab | |
| I_IOTAB_DEL | = lt_i_iotab_del | |
| E_STATUS_CHANGES_REFUSED_TAB | = lt_e_status_changes_refused_tab | |
| EXCEPTIONS | ||
| ILLEGAL_INPUT = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " EXIT_SAPLC10Y_001 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLC10Y_001
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 ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype). | ||||
| "SELECT single TRTYPE FROM RCGDIALCTR INTO @DATA(ld_i_trtype). | ||||
| DATA(ld_i_okcode) | = ' '. | |||
Search for further information about these or an SAP related objects