SAP Function Modules

RKD_FILL_DATA_TITLE SAP Function module







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

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


Pattern for FM RKD_FILL_DATA_TITLE - RKD FILL DATA TITLE





CALL FUNCTION 'RKD_FILL_DATA_TITLE' "
  EXPORTING
    i_t_print =                 " rkd_t_print   Output options
    i_t_text =                  " rkd_t_texte   Text Table
*   i_unit = ' '                " char1
    i_list_type =               " rkb1d-alist
    i_rkb1f =                   " rkb1f
    i_col_no =                  " i
    i_col_off =                 " rkb1d-spoff
  IMPORTING
    e_t_data_title =            " kcdd_t_data_title  Column Headers
    e_text_align =              " cfbpr01-lright
    e_t_col_width =             " standard table  Column Widths
    .  "  RKD_FILL_DATA_TITLE

ABAP code example for Function Module RKD_FILL_DATA_TITLE





The ABAP code below is a full code listing to execute function module RKD_FILL_DATA_TITLE 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_e_t_data_title  TYPE KCDD_T_DATA_TITLE ,
ld_e_text_align  TYPE CFBPR01-LRIGHT ,
ld_e_t_col_width  TYPE STANDARD TABLE .

DATA(ld_i_t_print) = 'Check type of data required'.
DATA(ld_i_t_text) = 'Check type of data required'.
DATA(ld_i_unit) = 'Check type of data required'.

DATA(ld_i_list_type) = some text here
DATA(ld_i_rkb1f) = 'Check type of data required'.
DATA(ld_i_col_no) = 'Check type of data required'.

DATA(ld_i_col_off) = 123 . CALL FUNCTION 'RKD_FILL_DATA_TITLE' EXPORTING i_t_print = ld_i_t_print i_t_text = ld_i_t_text * i_unit = ld_i_unit i_list_type = ld_i_list_type i_rkb1f = ld_i_rkb1f i_col_no = ld_i_col_no i_col_off = ld_i_col_off IMPORTING e_t_data_title = ld_e_t_data_title e_text_align = ld_e_text_align e_t_col_width = ld_e_t_col_width . " RKD_FILL_DATA_TITLE
IF SY-SUBRC EQ 0. "All OK 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_e_t_data_title  TYPE KCDD_T_DATA_TITLE ,
ld_i_t_print  TYPE RKD_T_PRINT ,
ld_e_text_align  TYPE CFBPR01-LRIGHT ,
ld_i_t_text  TYPE RKD_T_TEXTE ,
ld_e_t_col_width  TYPE STANDARD TABLE ,
ld_i_unit  TYPE CHAR1 ,
ld_i_list_type  TYPE RKB1D-ALIST ,
ld_i_rkb1f  TYPE RKB1F ,
ld_i_col_no  TYPE I ,
ld_i_col_off  TYPE RKB1D-SPOFF .

ld_i_t_print = 'Check type of data required'.
ld_i_t_text = 'Check type of data required'.
ld_i_unit = 'Check type of data required'.

ld_i_list_type = some text here
ld_i_rkb1f = 'Check type of data required'.
ld_i_col_no = 'Check type of data required'.

ld_i_col_off = 123

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