SAP DDIF_FIELDINFO_GET Function Module for DD: Interface for Reading Text on Tables or Types
DDIF_FIELDINFO_GET is a standard ddif fieldinfo get 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 for Reading Text on Tables or Types 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 ddif fieldinfo get FM, simply by entering the name DDIF_FIELDINFO_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDIFRUNTIME
Program Name: SAPLSDIFRUNTIME
Main Program: SAPLSDIFRUNTIME
Appliation area: S
Release date: 25-Dec-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function DDIF_FIELDINFO_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 'DDIF_FIELDINFO_GET'"DD: Interface for Reading Text on Tables or Types.
EXPORTING
TABNAME = "Name of the Table (of the Type) for which Information is Required
* FIELDNAME = ' ' "Use Parameter LFIELDNAME Instead
* LANGU = SY-LANGU "Language of the Texts
* LFIELDNAME = ' ' "If Filled, only Field with this Long Name
* ALL_TYPES = ' ' "Take all Types into Consideration
* GROUP_NAMES = ' ' "Take Named Includes into Consideration
* UCLEN = "Unicode length with which runtime object was generated
* DO_NOT_WRITE = ' ' "Write
IMPORTING
X030L_WA = "Nametab Header of the Table (of the Type)
DDOBJTYPE = "Kind of Type
DFIES_WA = "Single Information if Necessary
LINES_DESCR = "Information about Other Referenced Types
TABLES
* DFIES_TAB = "Field List if Necessary
* FIXED_VALUES = "Description of Domain Fixed Values
EXCEPTIONS
NOT_FOUND = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for DDIF_FIELDINFO_GET
TABNAME - Name of the Table (of the Type) for which Information is Required
Data type: DDOBJNAMEOptional: No
Call by Reference: No ( called with pass by value option)
FIELDNAME - Use Parameter LFIELDNAME Instead
Data type: DFIES-FIELDNAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU - Language of the Texts
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
LFIELDNAME - If Filled, only Field with this Long Name
Data type: DFIES-LFIELDNAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ALL_TYPES - Take all Types into Consideration
Data type: DDBOOL_DDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GROUP_NAMES - Take Named Includes into Consideration
Data type: DDBOOL_DDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
UCLEN - Unicode length with which runtime object was generated
Data type: UNICODELGOptional: Yes
Call by Reference: No ( called with pass by value option)
DO_NOT_WRITE - Write
Data type: DDBOOL_DDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DDIF_FIELDINFO_GET
X030L_WA - Nametab Header of the Table (of the Type)
Data type: X030LOptional: No
Call by Reference: No ( called with pass by value option)
DDOBJTYPE - Kind of Type
Data type: DD02V-TABCLASSOptional: No
Call by Reference: No ( called with pass by value option)
DFIES_WA - Single Information if Necessary
Data type: DFIESOptional: No
Call by Reference: No ( called with pass by value option)
LINES_DESCR - Information about Other Referenced Types
Data type: DDTYPELISTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DDIF_FIELDINFO_GET
DFIES_TAB - Field List if Necessary
Data type: DFIESOptional: Yes
Call by Reference: Yes
FIXED_VALUES - Description of Domain Fixed Values
Data type: DDFIXVALUESOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Nothing found
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Internal Error Occurred
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DDIF_FIELDINFO_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: | ||||
lv_tabname | TYPE DDOBJNAME, " | |||
lv_x030l_wa | TYPE X030L, " | |||
lt_dfies_tab | TYPE STANDARD TABLE OF DFIES, " | |||
lv_not_found | TYPE DFIES, " | |||
lv_ddobjtype | TYPE DD02V-TABCLASS, " | |||
lv_fieldname | TYPE DFIES-FIELDNAME, " ' ' | |||
lt_fixed_values | TYPE STANDARD TABLE OF DDFIXVALUES, " | |||
lv_internal_error | TYPE DDFIXVALUES, " | |||
lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
lv_dfies_wa | TYPE DFIES, " | |||
lv_lfieldname | TYPE DFIES-LFIELDNAME, " ' ' | |||
lv_lines_descr | TYPE DDTYPELIST, " | |||
lv_all_types | TYPE DDBOOL_D, " ' ' | |||
lv_group_names | TYPE DDBOOL_D, " ' ' | |||
lv_uclen | TYPE UNICODELG, " | |||
lv_do_not_write | TYPE DDBOOL_D. " ' ' |
  CALL FUNCTION 'DDIF_FIELDINFO_GET' "DD: Interface for Reading Text on Tables or Types |
EXPORTING | ||
TABNAME | = lv_tabname | |
FIELDNAME | = lv_fieldname | |
LANGU | = lv_langu | |
LFIELDNAME | = lv_lfieldname | |
ALL_TYPES | = lv_all_types | |
GROUP_NAMES | = lv_group_names | |
UCLEN | = lv_uclen | |
DO_NOT_WRITE | = lv_do_not_write | |
IMPORTING | ||
X030L_WA | = lv_x030l_wa | |
DDOBJTYPE | = lv_ddobjtype | |
DFIES_WA | = lv_dfies_wa | |
LINES_DESCR | = lv_lines_descr | |
TABLES | ||
DFIES_TAB | = lt_dfies_tab | |
FIXED_VALUES | = lt_fixed_values | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
INTERNAL_ERROR = 2 | ||
. " DDIF_FIELDINFO_GET |
ABAP code using 7.40 inline data declarations to call FM DDIF_FIELDINFO_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 TABCLASS FROM DD02V INTO @DATA(ld_ddobjtype). | ||||
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_fieldname). | ||||
DATA(ld_fieldname) | = ' '. | |||
"SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
DATA(ld_langu) | = SY-LANGU. | |||
"SELECT single LFIELDNAME FROM DFIES INTO @DATA(ld_lfieldname). | ||||
DATA(ld_lfieldname) | = ' '. | |||
DATA(ld_all_types) | = ' '. | |||
DATA(ld_group_names) | = ' '. | |||
DATA(ld_do_not_write) | = ' '. | |||
Search for further information about these or an SAP related objects