SAP CUD2_PROCESS_TABLE Function Module for
CUD2_PROCESS_TABLE is a standard cud2 process table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 cud2 process table FM, simply by entering the name CUD2_PROCESS_TABLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CUD2
Program Name: SAPLCUD2
Main Program: SAPLCUD2
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CUD2_PROCESS_TABLE 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 'CUD2_PROCESS_TABLE'".
EXPORTING
* CUD2_DISPLAY = ' ' "Checkbox Field
* CUD2_LANGUAGE = SY-LANGU "
CUD2_TABLE = "
CUD2_DATE = "Valid-From Date
EXCEPTIONS
CONTENT_MAINTENANCE_NOT_FREE = 1 TABLE_STRUCTURE_WORK_COMMITTED = 10 CHANGE_NO_REQUIRED = 2 ENQUEUE_FAIL = 3 NO_AUTHORITY_TABLE_CONTENT = 4 NO_AUTHORITY_TABLE_STRUCTURE = 5 NO_AUTHORITY_VAR_TABLES = 6 NO_CHARACTERISTICS = 7 TABLE_NAME_INCORRECT = 8 TABLE_NOT_FOUND = 9
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCUD2_800
IMPORTING Parameters details for CUD2_PROCESS_TABLE
CUD2_DISPLAY - Checkbox Field
Data type: RCUTU-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CUD2_LANGUAGE -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
CUD2_TABLE -
Data type: CUVTAB-VTNAMOptional: No
Call by Reference: No ( called with pass by value option)
CUD2_DATE - Valid-From Date
Data type: RCUD2-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CONTENT_MAINTENANCE_NOT_FREE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_STRUCTURE_WORK_COMMITTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGE_NO_REQUIRED -
Data type:Optional: No
Call by Reference: Yes
ENQUEUE_FAIL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_TABLE_CONTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_TABLE_STRUCTURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_VAR_TABLES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CHARACTERISTICS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NAME_INCORRECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CUD2_PROCESS_TABLE 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_cud2_display | TYPE RCUTU-SELKZ, " SPACE | |||
| lv_content_maintenance_not_free | TYPE RCUTU, " | |||
| lv_table_structure_work_committed | TYPE RCUTU, " | |||
| lv_cud2_language | TYPE SY-LANGU, " SY-LANGU | |||
| lv_change_no_required | TYPE SY, " | |||
| lv_cud2_table | TYPE CUVTAB-VTNAM, " | |||
| lv_enqueue_fail | TYPE CUVTAB, " | |||
| lv_cud2_date | TYPE RCUD2-DATUM, " | |||
| lv_no_authority_table_content | TYPE RCUD2, " | |||
| lv_no_authority_table_structure | TYPE RCUD2, " | |||
| lv_no_authority_var_tables | TYPE RCUD2, " | |||
| lv_no_characteristics | TYPE RCUD2, " | |||
| lv_table_name_incorrect | TYPE RCUD2, " | |||
| lv_table_not_found | TYPE RCUD2. " |
|   CALL FUNCTION 'CUD2_PROCESS_TABLE' " |
| EXPORTING | ||
| CUD2_DISPLAY | = lv_cud2_display | |
| CUD2_LANGUAGE | = lv_cud2_language | |
| CUD2_TABLE | = lv_cud2_table | |
| CUD2_DATE | = lv_cud2_date | |
| EXCEPTIONS | ||
| CONTENT_MAINTENANCE_NOT_FREE = 1 | ||
| TABLE_STRUCTURE_WORK_COMMITTED = 10 | ||
| CHANGE_NO_REQUIRED = 2 | ||
| ENQUEUE_FAIL = 3 | ||
| NO_AUTHORITY_TABLE_CONTENT = 4 | ||
| NO_AUTHORITY_TABLE_STRUCTURE = 5 | ||
| NO_AUTHORITY_VAR_TABLES = 6 | ||
| NO_CHARACTERISTICS = 7 | ||
| TABLE_NAME_INCORRECT = 8 | ||
| TABLE_NOT_FOUND = 9 | ||
| . " CUD2_PROCESS_TABLE | ||
ABAP code using 7.40 inline data declarations to call FM CUD2_PROCESS_TABLE
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 SELKZ FROM RCUTU INTO @DATA(ld_cud2_display). | ||||
| DATA(ld_cud2_display) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_cud2_language). | ||||
| DATA(ld_cud2_language) | = SY-LANGU. | |||
| "SELECT single VTNAM FROM CUVTAB INTO @DATA(ld_cud2_table). | ||||
| "SELECT single DATUM FROM RCUD2 INTO @DATA(ld_cud2_date). | ||||
Search for further information about these or an SAP related objects