SAP CDNAMES_GET Function Module for
CDNAMES_GET is a standard cdnames get 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 cdnames get FM, simply by entering the name CDNAMES_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCDT
Program Name: SAPLSCDT
Main Program: SAPLSCDT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CDNAMES_GET 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 'CDNAMES_GET'".
EXPORTING
IV_OBJECT = "Object Class
TABLES
* IT_TCDRS = "Information on DDIC structures generated by RSSCD000
* IT_TCDRP = "Information on Include programs generated by RSSCD000
* IT_TCDOB = "Objects for change document creation
* IT_TCDOBT = "Texts for objects for change document creation
* IT_NAMES = "CHDO Name Parts Transfer Structure
EXCEPTIONS
OBJECT_SPACE = 1 OBJECT_NOT_FOUND = 2
IMPORTING Parameters details for CDNAMES_GET
IV_OBJECT - Object Class
Data type: TCDOB-OBJECTOptional: No
Call by Reference: Yes
TABLES Parameters details for CDNAMES_GET
IT_TCDRS - Information on DDIC structures generated by RSSCD000
Data type: TCDRSOptional: Yes
Call by Reference: Yes
IT_TCDRP - Information on Include programs generated by RSSCD000
Data type: TCDRPOptional: Yes
Call by Reference: Yes
IT_TCDOB - Objects for change document creation
Data type: TCDOBOptional: Yes
Call by Reference: Yes
IT_TCDOBT - Texts for objects for change document creation
Data type: TCDOBTOptional: Yes
Call by Reference: Yes
IT_NAMES - CHDO Name Parts Transfer Structure
Data type: CDNAMESOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
OBJECT_SPACE -
Data type:Optional: No
Call by Reference: Yes
OBJECT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CDNAMES_GET 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: | ||||
| lt_it_tcdrs | TYPE STANDARD TABLE OF TCDRS, " | |||
| lv_iv_object | TYPE TCDOB-OBJECT, " | |||
| lv_object_space | TYPE TCDOB, " | |||
| lt_it_tcdrp | TYPE STANDARD TABLE OF TCDRP, " | |||
| lv_object_not_found | TYPE TCDRP, " | |||
| lt_it_tcdob | TYPE STANDARD TABLE OF TCDOB, " | |||
| lt_it_tcdobt | TYPE STANDARD TABLE OF TCDOBT, " | |||
| lt_it_names | TYPE STANDARD TABLE OF CDNAMES. " |
|   CALL FUNCTION 'CDNAMES_GET' " |
| EXPORTING | ||
| IV_OBJECT | = lv_iv_object | |
| TABLES | ||
| IT_TCDRS | = lt_it_tcdrs | |
| IT_TCDRP | = lt_it_tcdrp | |
| IT_TCDOB | = lt_it_tcdob | |
| IT_TCDOBT | = lt_it_tcdobt | |
| IT_NAMES | = lt_it_names | |
| EXCEPTIONS | ||
| OBJECT_SPACE = 1 | ||
| OBJECT_NOT_FOUND = 2 | ||
| . " CDNAMES_GET | ||
ABAP code using 7.40 inline data declarations to call FM CDNAMES_GET
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 OBJECT FROM TCDOB INTO @DATA(ld_iv_object). | ||||
Search for further information about these or an SAP related objects