SAP Function Modules

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







DDIF_FIELDINFO_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name DDIF_FIELDINFO_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SDIFRUNTIME
Released Date: 25.12.1999
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DDIF_FIELDINFO_GET - DDIF FIELDINFO GET





CALL FUNCTION 'DDIF_FIELDINFO_GET' "DD: Interface for Reading Text on Tables or Types
  EXPORTING
    tabname =                   " ddobjname     Name of the Table (of the Type) for which Information is Required
*   fieldname = ' '             " dfies-fieldname  Use Parameter LFIELDNAME Instead
*   langu = SY-LANGU            " sy-langu      Language of the Texts
*   lfieldname = ' '            " dfies-lfieldname  If Filled, only Field with this Long Name
*   all_types = ' '             " ddbool_d      Take all Types into Consideration
*   group_names = ' '           " ddbool_d      Take Named Includes into Consideration
*   uclen =                     " unicodelg     Unicode length with which runtime object was generated
*   do_not_write = ' '          " ddbool_d      Write
  IMPORTING
    x030l_wa =                  " x030l         Nametab Header of the Table (of the Type)
    ddobjtype =                 " dd02v-tabclass  Kind of Type
    dfies_wa =                  " dfies         Single Information if Necessary
    lines_descr =               " ddtypelist    Information about Other Referenced Types
* TABLES
*   dfies_tab =                 " dfies         Field List if Necessary
*   fixed_values =              " ddfixvalues   Description of Domain Fixed Values
  EXCEPTIONS
    NOT_FOUND = 1               "               Nothing found
    INTERNAL_ERROR = 2          "               Internal Error Occurred
    .  "  DDIF_FIELDINFO_GET

ABAP code example for Function Module DDIF_FIELDINFO_GET





The ABAP code below is a full code listing to execute function module DDIF_FIELDINFO_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_x030l_wa  TYPE X030L ,
ld_ddobjtype  TYPE DD02V-TABCLASS ,
ld_dfies_wa  TYPE DFIES ,
ld_lines_descr  TYPE DDTYPELIST ,
it_dfies_tab  TYPE STANDARD TABLE OF DFIES,"TABLES PARAM
wa_dfies_tab  LIKE LINE OF it_dfies_tab ,
it_fixed_values  TYPE STANDARD TABLE OF DDFIXVALUES,"TABLES PARAM
wa_fixed_values  LIKE LINE OF it_fixed_values .

DATA(ld_tabname) = 'Check type of data required'.

DATA(ld_fieldname) = some text here
DATA(ld_langu) = 'Check type of data required'.

DATA(ld_lfieldname) = some text here
DATA(ld_all_types) = 'Check type of data required'.
DATA(ld_group_names) = 'Check type of data required'.
DATA(ld_uclen) = 'Check type of data required'.
DATA(ld_do_not_write) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dfies_tab to it_dfies_tab.

"populate fields of struture and append to itab
append wa_fixed_values to it_fixed_values. . CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = ld_tabname * fieldname = ld_fieldname * langu = ld_langu * lfieldname = ld_lfieldname * all_types = ld_all_types * group_names = ld_group_names * uclen = ld_uclen * do_not_write = ld_do_not_write IMPORTING x030l_wa = ld_x030l_wa ddobjtype = ld_ddobjtype dfies_wa = ld_dfies_wa lines_descr = ld_lines_descr * TABLES * dfies_tab = it_dfies_tab * fixed_values = it_fixed_values EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 . " DDIF_FIELDINFO_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_x030l_wa  TYPE X030L ,
ld_tabname  TYPE DDOBJNAME ,
it_dfies_tab  TYPE STANDARD TABLE OF DFIES ,
wa_dfies_tab  LIKE LINE OF it_dfies_tab,
ld_ddobjtype  TYPE DD02V-TABCLASS ,
ld_fieldname  TYPE DFIES-FIELDNAME ,
it_fixed_values  TYPE STANDARD TABLE OF DDFIXVALUES ,
wa_fixed_values  LIKE LINE OF it_fixed_values,
ld_dfies_wa  TYPE DFIES ,
ld_langu  TYPE SY-LANGU ,
ld_lines_descr  TYPE DDTYPELIST ,
ld_lfieldname  TYPE DFIES-LFIELDNAME ,
ld_all_types  TYPE DDBOOL_D ,
ld_group_names  TYPE DDBOOL_D ,
ld_uclen  TYPE UNICODELG ,
ld_do_not_write  TYPE DDBOOL_D .

ld_tabname = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dfies_tab to it_dfies_tab.

ld_fieldname = some text here

"populate fields of struture and append to itab
append wa_fixed_values to it_fixed_values.
ld_langu = 'Check type of data required'.

ld_lfieldname = some text here
ld_all_types = 'Check type of data required'.
ld_group_names = 'Check type of data required'.
ld_uclen = 'Check type of data required'.
ld_do_not_write = 'Check type of data required'.

SAP Documentation for FM DDIF_FIELDINFO_GET


This function module reads the runtime information of a table or in general of any type of the ABAP Dictionary. The runtime ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DDIF_FIELDINFO_GET or its description.