SAP Function DDIF_FIELDINFO_GET - DD: Interface for Reading Text on Tables or Types

Parameter Reference Type Length Default Optional Text
ALL_TYPES DDBOOL_D C 1 ' ' X Take all Types into Consideration
DO_NOT_WRITE DDBOOL_D C 1 ' ' X Write
FIELDNAME DFIES-FIELDNAME C 30 ' ' X Use Parameter LFIELDNAME Instead
GROUP_NAMES DDBOOL_D C 1 ' ' X Take Named Includes into Consideration
LANGU SYST-LANGU C 1 SY-LANGU X Language of the Texts
LFIELDNAME DFIES-LFIELDNAME C 132 ' ' X If Filled, only Field with this Long Name
TABNAME DDOBJNAME C 30 Name of the Table (of the Type) for which Information is Required
UCLEN UNICODELG X 1 X Unicode length with which runtime object was generated

Parameter Reference Type Length Text
DDOBJTYPE DD02V-TABCLASS C 8 Kind of Type
DFIES_WA DFIES u 675 Single Information if Necessary
LINES_DESCR DDTYPELIST h 48 Information about Other Referenced Types
X030L_WA X030L u 147 Nametab Header of the Table (of the Type)

Parameter Reference Length Optional Text
DFIES_TAB DFIES 675 X Field List if Necessary
FIXED_VALUES DDFIXVALUES 83 X Description of Domain Fixed Values

Exception Text
INTERNAL_ERROR Internal Error Occurred
NOT_FOUND Nothing found

Functionality
This function module reads the runtime information of a table or ingeneral of any type of the ABAP Dictionary. The runtimeinformation also contains text informaiton. If you do not need textinformation, you should use the more efficient function moduleDDIF_NAMETAB_GET. This document alsoexplains terms that are used below.
This module gets the runtime information for the type whose name isdefined in the IMPORT parameter TABNAME. If there is no suchtype, the exception NOT_FOUND is triggered.
Caution: If the IMPORT parameter ALL_TYPES is not set,only flat structured types are taken into consideration. In this casethe exception is also triggered if the specified type is a dataelement, a deep structure or a table type.
If the type in question is a structured type, its field list isreturned in parameter DFIES_TAB.
However, if the IMPORT parameter FIELDNAME does not have theinitial value, only the fields whose name is the same as the contentsof this parameter are taken into consideration. If there is no suchfield (or if the type is a data element or a table type), the exceptionNOT_FOUND is triggered.
If the IMPORT parameter LFIELDNAME does not have the initialvalue, only those fields whose long name is the same as the contents ofthe parameter are taken into consideration. Since there can be at mostone such field, the information is then returned in the EXPORTparameter DFIES_WA. DFIES_TAB is undefined in this case. Ifthere is no such field (or if the type is a data element or a tabletype), the exception NOT_FOUND is triggered.
If the type is a data element or a table type (and ALL_TYPES is set),the description of the type is also returned in parameter DFIES_WA, butif one of the two parameters FIELDNAME and LFIELDNAME does not have theinitial value, the exception NOT_FOUND is triggered.
The text is returned in the language defined in parameter LANGU.If this parameter is initial, the contents of the text fields areundefined. The contents of the text fields for table types and for thefields that do not have an elementary type are also undefined. Dataelements and fields with elementary type for which there is no text inthe specified language can be recognized by the fact that the fieldDFIES-LANGU has initial value.
With this module you can also define the fixed values (including thecorresponding fixed value texts) of elementary types. If the specifiedtype is a data element for which fixed values were defined or if thetype of the field specified by parameter LFIELDNAME is a data element,the module defines these fixed values. The corresponding fixed valuetexts are added in the language defined by LANGU. This information isreturned in TABLES parameter FIXED_VALUES. (This parameter isempty in all other cases.)

Notes
This module provides the runtime information of the table. Ifthe description of the table is required as presented in themaintenance transaction of the ABAP Dictionary, you should use thefunction module DDIF_TABL_GET (orDDIF_DTEL_GET orDDIF_TTYP_GET).
This module only gets the data of the defined parameters. You shouldtherefore only define the parameters whose contents are to be definedwhen you execute the call. For example, if you do not need anyinformation about the fixed values of the types that were handled, youshould not define the TABLES parameter FIXED_VALUES in the call.
If both IMPORT parameters FIELDNAME and LFIELDNAME do not have initialvalue, both restrictions are analyzed. The results can be found inDFIES_WA.
In general you should only use parameter LFIELDNAME. ParameterFIELDNAME is only supported for compatibility reasons.
You should not use this module to define the text for a single fixedvalue. Use function module
DDUT_TEXT_FOR_VALUE instead.
You should not use this module to read fixed values for this purposeeither. In this case use the function module
DDUT_INPUT_CHECK.
Prior to Release 4.0, this function module and the obsolete moduleGET_FIELDTAB returned the wrong ABAP data type 'X' for the Dictionarydata types INT1, INT2, INT4 and PREC. With 4.0, this module alsoreturns the correct ABAP data type for fields of this type.
INCLUDE DDIF_DDOBJTYPE OBJECT DOKU ID TX
INCLUDE DDDOC_FIELDINFO_LINES_DESCR OBJECT DOKU ID TX
INCLUDE DDIF_ALL_TYPES OBJECT DOKU ID TX
INCLUDE DDDOC_FIELDINFO_GROUP_NAMES OBJECT DOKU ID TX
INCLUDE DDIF_NAMETAB_TABNAME OBJECT DOKU ID TX

1614802Mass activation hangs during INSERT in the table DDFTX
1155807Database deadlock when executing DD_INT_UPDATE_DDFTX
1231267Code optimization for Master Data operations
460089Minimum authorization profile for external RFC programs
1029444DDIF_FIELDINFO_GET:Prob with UCLEN <> system Unicode length
136103670SP22: Exclusive lock on table NRIV & DDFTX during upload
1019446Wrong queue names formed in Unicode ERP server
451587Follow-on note for Note 388992, mass processing