SAP Function Modules

RS_DS_INT_FIELD_INFO SAP Function module







RS_DS_INT_FIELD_INFO 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 RS_DS_INT_FIELD_INFO into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SSELSERVICE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RS_DS_INT_FIELD_INFO - RS DS INT FIELD INFO





CALL FUNCTION 'RS_DS_INT_FIELD_INFO' "
  EXPORTING
    p_tablename =               " dd03l-tabname
    p_fieldname =               " dd03l-fieldname
*   p_language = SY-LANGU       " sy-langu
  IMPORTING
    p_fieldtext =               " dd04v-ddtext
    p_seltext =                 " dd04v-scrtext_l
    p_convert =                 " syfrs_convert
    p_reffield =                " rsscr-dbfield
    p_checktable =              " dfies-checktable
    p_valexi =                  " dfies-valexi
    p_f4 =                      " dfies-f4availabl
  EXCEPTIONS
    FIELD_NOT_FOUND = 1         "
    .  "  RS_DS_INT_FIELD_INFO

ABAP code example for Function Module RS_DS_INT_FIELD_INFO





The ABAP code below is a full code listing to execute function module RS_DS_INT_FIELD_INFO 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_p_fieldtext  TYPE DD04V-DDTEXT ,
ld_p_seltext  TYPE DD04V-SCRTEXT_L ,
ld_p_convert  TYPE SYFRS_CONVERT ,
ld_p_reffield  TYPE RSSCR-DBFIELD ,
ld_p_checktable  TYPE DFIES-CHECKTABLE ,
ld_p_valexi  TYPE DFIES-VALEXI ,
ld_p_f4  TYPE DFIES-F4AVAILABL .


SELECT single TABNAME
FROM DD03L
INTO @DATA(ld_p_tablename).


SELECT single FIELDNAME
FROM DD03L
INTO @DATA(ld_p_fieldname).

DATA(ld_p_language) = 'Check type of data required'. . CALL FUNCTION 'RS_DS_INT_FIELD_INFO' EXPORTING p_tablename = ld_p_tablename p_fieldname = ld_p_fieldname * p_language = ld_p_language IMPORTING p_fieldtext = ld_p_fieldtext p_seltext = ld_p_seltext p_convert = ld_p_convert p_reffield = ld_p_reffield p_checktable = ld_p_checktable p_valexi = ld_p_valexi p_f4 = ld_p_f4 EXCEPTIONS FIELD_NOT_FOUND = 1 . " RS_DS_INT_FIELD_INFO
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_p_fieldtext  TYPE DD04V-DDTEXT ,
ld_p_tablename  TYPE DD03L-TABNAME ,
ld_p_seltext  TYPE DD04V-SCRTEXT_L ,
ld_p_fieldname  TYPE DD03L-FIELDNAME ,
ld_p_convert  TYPE SYFRS_CONVERT ,
ld_p_language  TYPE SY-LANGU ,
ld_p_reffield  TYPE RSSCR-DBFIELD ,
ld_p_checktable  TYPE DFIES-CHECKTABLE ,
ld_p_valexi  TYPE DFIES-VALEXI ,
ld_p_f4  TYPE DFIES-F4AVAILABL .


SELECT single TABNAME
FROM DD03L
INTO ld_p_tablename.


SELECT single FIELDNAME
FROM DD03L
INTO ld_p_fieldname.

ld_p_language = 'Check type of data required'.

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 RS_DS_INT_FIELD_INFO or its description.