SAP CA_CU_READ_RGDIR_NEW Function Module for
CA_CU_READ_RGDIR_NEW is a standard ca cu read rgdir new 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 ca cu read rgdir new FM, simply by entering the name CA_CU_READ_RGDIR_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPRU
Program Name: SAPLRPRU
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CA_CU_READ_RGDIR_NEW 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 'CA_CU_READ_RGDIR_NEW'".
EXPORTING
PERSNR = "
* CLUSTER = ' ' "
* CHECK_READ_AUTHORITY = 'X' "
* IMP_CLIENT = "
IMPORTING
MOLGA = "
TABLES
CU_CA_RGDIR = "
EXCEPTIONS
IMPORT_MISMATCH_ERROR_CU = 1 IMPORT_MISMATCH_ERROR_CA = 2 NO_READ_AUTHORITY_CA = 3 NO_READ_AUTHORITY_CU = 4 ERROR_READING_CU = 5 ERROR_READING_CA = 6 NO_RECORD_FOUND = 7
IMPORTING Parameters details for CA_CU_READ_RGDIR_NEW
PERSNR -
Data type: P0000-PERNROptional: No
Call by Reference: No ( called with pass by value option)
CLUSTER -
Data type: PCL2-RELIDDefault: ' '
Optional: Yes
Call by Reference: Yes
CHECK_READ_AUTHORITY -
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IMP_CLIENT -
Data type: PCL2-CLIENTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CA_CU_READ_RGDIR_NEW
MOLGA -
Data type: T500L-MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CA_CU_READ_RGDIR_NEW
CU_CA_RGDIR -
Data type: PC261Optional: No
Call by Reference: Yes
EXCEPTIONS details
IMPORT_MISMATCH_ERROR_CU -
Data type:Optional: No
Call by Reference: Yes
IMPORT_MISMATCH_ERROR_CA -
Data type:Optional: No
Call by Reference: Yes
NO_READ_AUTHORITY_CA -
Data type:Optional: No
Call by Reference: Yes
NO_READ_AUTHORITY_CU -
Data type:Optional: No
Call by Reference: Yes
ERROR_READING_CU -
Data type:Optional: No
Call by Reference: Yes
ERROR_READING_CA -
Data type:Optional: No
Call by Reference: Yes
NO_RECORD_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CA_CU_READ_RGDIR_NEW 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_molga | TYPE T500L-MOLGA, " | |||
| lv_persnr | TYPE P0000-PERNR, " | |||
| lt_cu_ca_rgdir | TYPE STANDARD TABLE OF PC261, " | |||
| lv_import_mismatch_error_cu | TYPE PC261, " | |||
| lv_cluster | TYPE PCL2-RELID, " ' ' | |||
| lv_import_mismatch_error_ca | TYPE PCL2, " | |||
| lv_check_read_authority | TYPE CHAR01, " 'X' | |||
| lv_no_read_authority_ca | TYPE CHAR01, " | |||
| lv_imp_client | TYPE PCL2-CLIENT, " | |||
| lv_no_read_authority_cu | TYPE PCL2, " | |||
| lv_error_reading_cu | TYPE PCL2, " | |||
| lv_error_reading_ca | TYPE PCL2, " | |||
| lv_no_record_found | TYPE PCL2. " |
|   CALL FUNCTION 'CA_CU_READ_RGDIR_NEW' " |
| EXPORTING | ||
| PERSNR | = lv_persnr | |
| CLUSTER | = lv_cluster | |
| CHECK_READ_AUTHORITY | = lv_check_read_authority | |
| IMP_CLIENT | = lv_imp_client | |
| IMPORTING | ||
| MOLGA | = lv_molga | |
| TABLES | ||
| CU_CA_RGDIR | = lt_cu_ca_rgdir | |
| EXCEPTIONS | ||
| IMPORT_MISMATCH_ERROR_CU = 1 | ||
| IMPORT_MISMATCH_ERROR_CA = 2 | ||
| NO_READ_AUTHORITY_CA = 3 | ||
| NO_READ_AUTHORITY_CU = 4 | ||
| ERROR_READING_CU = 5 | ||
| ERROR_READING_CA = 6 | ||
| NO_RECORD_FOUND = 7 | ||
| . " CA_CU_READ_RGDIR_NEW | ||
ABAP code using 7.40 inline data declarations to call FM CA_CU_READ_RGDIR_NEW
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 MOLGA FROM T500L INTO @DATA(ld_molga). | ||||
| "SELECT single PERNR FROM P0000 INTO @DATA(ld_persnr). | ||||
| "SELECT single RELID FROM PCL2 INTO @DATA(ld_cluster). | ||||
| DATA(ld_cluster) | = ' '. | |||
| DATA(ld_check_read_authority) | = 'X'. | |||
| "SELECT single CLIENT FROM PCL2 INTO @DATA(ld_imp_client). | ||||
Search for further information about these or an SAP related objects