SAP DMC_DDIF_DTEL_GET_WRAPPER Function Module for DD: interface to read data element from ABAP Dictionary
DMC_DDIF_DTEL_GET_WRAPPER is a standard dmc ddif dtel get wrapper SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DD: interface to read data element from ABAP Dictionary 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 dmc ddif dtel get wrapper FM, simply by entering the name DMC_DDIF_DTEL_GET_WRAPPER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV0
Program Name: SAPLCNV0
Main Program: SAPLCNV0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DMC_DDIF_DTEL_GET_WRAPPER 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 'DMC_DDIF_DTEL_GET_WRAPPER'"DD: interface to read data element from ABAP Dictionary.
EXPORTING
I_NAME = "name of the table to be read
* I_STATE = 'A' "reading state of table
* I_LANGU = SY-LANGU "language in which texts are read
* I_FIELDNAME = "Field Name
IMPORTING
E_GOTSTATE = "state when read
ES_DD02V = "table header
TABLES
* ET_DD03P = "table fields
EXCEPTIONS
ILLEGAL_INPUT = 1 UNDEFINED_ERROR = 2
IMPORTING Parameters details for DMC_DDIF_DTEL_GET_WRAPPER
I_NAME - name of the table to be read
Data type: DCOBJDEF-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_STATE - reading state of table
Data type: DCOBJDEF-STATEDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU - language in which texts are read
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FIELDNAME - Field Name
Data type: FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DMC_DDIF_DTEL_GET_WRAPPER
E_GOTSTATE - state when read
Data type: DCOBJIF-GOTSTATEOptional: No
Call by Reference: No ( called with pass by value option)
ES_DD02V - table header
Data type: DD02VOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DMC_DDIF_DTEL_GET_WRAPPER
ET_DD03P - table fields
Data type: DD03POptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ILLEGAL_INPUT - invalid value of a parameter
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNDEFINED_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DMC_DDIF_DTEL_GET_WRAPPER 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_name | TYPE DCOBJDEF-NAME, " | |||
| lt_et_dd03p | TYPE STANDARD TABLE OF DD03P, " | |||
| lv_e_gotstate | TYPE DCOBJIF-GOTSTATE, " | |||
| lv_illegal_input | TYPE DCOBJIF, " | |||
| lv_i_state | TYPE DCOBJDEF-STATE, " 'A' | |||
| lv_es_dd02v | TYPE DD02V, " | |||
| lv_undefined_error | TYPE DD02V, " | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_i_fieldname | TYPE FIELDNAME. " |
|   CALL FUNCTION 'DMC_DDIF_DTEL_GET_WRAPPER' "DD: interface to read data element from ABAP Dictionary |
| EXPORTING | ||
| I_NAME | = lv_i_name | |
| I_STATE | = lv_i_state | |
| I_LANGU | = lv_i_langu | |
| I_FIELDNAME | = lv_i_fieldname | |
| IMPORTING | ||
| E_GOTSTATE | = lv_e_gotstate | |
| ES_DD02V | = lv_es_dd02v | |
| TABLES | ||
| ET_DD03P | = lt_et_dd03p | |
| EXCEPTIONS | ||
| ILLEGAL_INPUT = 1 | ||
| UNDEFINED_ERROR = 2 | ||
| . " DMC_DDIF_DTEL_GET_WRAPPER | ||
ABAP code using 7.40 inline data declarations to call FM DMC_DDIF_DTEL_GET_WRAPPER
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 NAME FROM DCOBJDEF INTO @DATA(ld_i_name). | ||||
| "SELECT single GOTSTATE FROM DCOBJIF INTO @DATA(ld_e_gotstate). | ||||
| "SELECT single STATE FROM DCOBJDEF INTO @DATA(ld_i_state). | ||||
| DATA(ld_i_state) | = 'A'. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects