SAP Function Modules

RKD_CHECK_SEIG SAP Function module







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

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


Pattern for FM RKD_CHECK_SEIG - RKD CHECK SEIG





CALL FUNCTION 'RKD_CHECK_SEIG' "
  EXPORTING
*   new = 'X'                   " ccvalid-xfeld  Rebuild selection table
*   refresh = SPACE             " ccvalid-xfeld
    rkb1d =                     " rkb1d
    rkb1f =                     " rkb1f
    rkb1x =                     " rkb1x
  IMPORTING
    char_delete =               " ccvalid-xfeld
    char_field_name =           " cdifie-fienm
  TABLES
    seig =                      " cfbse01       Table of characteristics
    fdep_tab =                  " cdidep
    field_tab =                 " cdifie        Field Catalog
    form_tab =                  " cfbfo01       Form table
    sh_tab =                    " cfbsh01       SH_TAB
    var_tab =                   " cfbvp01       Variable table
    zwert =                     " cfbzw01       Key figure table
  CHANGING
    c_t_bed =                   " rkd_t_bed
    c_t_lcol =                  " rkd_t_lcol
    .  "  RKD_CHECK_SEIG

ABAP code example for Function Module RKD_CHECK_SEIG





The ABAP code below is a full code listing to execute function module RKD_CHECK_SEIG 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_char_delete  TYPE CCVALID-XFELD ,
ld_char_field_name  TYPE CDIFIE-FIENM ,
it_seig  TYPE STANDARD TABLE OF CFBSE01,"TABLES PARAM
wa_seig  LIKE LINE OF it_seig ,
it_fdep_tab  TYPE STANDARD TABLE OF CDIDEP,"TABLES PARAM
wa_fdep_tab  LIKE LINE OF it_fdep_tab ,
it_field_tab  TYPE STANDARD TABLE OF CDIFIE,"TABLES PARAM
wa_field_tab  LIKE LINE OF it_field_tab ,
it_form_tab  TYPE STANDARD TABLE OF CFBFO01,"TABLES PARAM
wa_form_tab  LIKE LINE OF it_form_tab ,
it_sh_tab  TYPE STANDARD TABLE OF CFBSH01,"TABLES PARAM
wa_sh_tab  LIKE LINE OF it_sh_tab ,
it_var_tab  TYPE STANDARD TABLE OF CFBVP01,"TABLES PARAM
wa_var_tab  LIKE LINE OF it_var_tab ,
it_zwert  TYPE STANDARD TABLE OF CFBZW01,"TABLES PARAM
wa_zwert  LIKE LINE OF it_zwert .

DATA(ld_c_t_bed) = 'Check type of data required'.
DATA(ld_c_t_lcol) = 'Check type of data required'.

DATA(ld_new) = some text here

DATA(ld_refresh) = some text here
DATA(ld_rkb1d) = 'Check type of data required'.
DATA(ld_rkb1f) = 'Check type of data required'.
DATA(ld_rkb1x) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_seig to it_seig.

"populate fields of struture and append to itab
append wa_fdep_tab to it_fdep_tab.

"populate fields of struture and append to itab
append wa_field_tab to it_field_tab.

"populate fields of struture and append to itab
append wa_form_tab to it_form_tab.

"populate fields of struture and append to itab
append wa_sh_tab to it_sh_tab.

"populate fields of struture and append to itab
append wa_var_tab to it_var_tab.

"populate fields of struture and append to itab
append wa_zwert to it_zwert. . CALL FUNCTION 'RKD_CHECK_SEIG' EXPORTING * new = ld_new * refresh = ld_refresh rkb1d = ld_rkb1d rkb1f = ld_rkb1f rkb1x = ld_rkb1x IMPORTING char_delete = ld_char_delete char_field_name = ld_char_field_name TABLES seig = it_seig fdep_tab = it_fdep_tab field_tab = it_field_tab form_tab = it_form_tab sh_tab = it_sh_tab var_tab = it_var_tab zwert = it_zwert CHANGING c_t_bed = ld_c_t_bed c_t_lcol = ld_c_t_lcol . " RKD_CHECK_SEIG
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_c_t_bed  TYPE RKD_T_BED ,
ld_char_delete  TYPE CCVALID-XFELD ,
ld_new  TYPE CCVALID-XFELD ,
it_seig  TYPE STANDARD TABLE OF CFBSE01 ,
wa_seig  LIKE LINE OF it_seig,
ld_c_t_lcol  TYPE RKD_T_LCOL ,
ld_char_field_name  TYPE CDIFIE-FIENM ,
ld_refresh  TYPE CCVALID-XFELD ,
it_fdep_tab  TYPE STANDARD TABLE OF CDIDEP ,
wa_fdep_tab  LIKE LINE OF it_fdep_tab,
ld_rkb1d  TYPE RKB1D ,
it_field_tab  TYPE STANDARD TABLE OF CDIFIE ,
wa_field_tab  LIKE LINE OF it_field_tab,
ld_rkb1f  TYPE RKB1F ,
it_form_tab  TYPE STANDARD TABLE OF CFBFO01 ,
wa_form_tab  LIKE LINE OF it_form_tab,
ld_rkb1x  TYPE RKB1X ,
it_sh_tab  TYPE STANDARD TABLE OF CFBSH01 ,
wa_sh_tab  LIKE LINE OF it_sh_tab,
it_var_tab  TYPE STANDARD TABLE OF CFBVP01 ,
wa_var_tab  LIKE LINE OF it_var_tab,
it_zwert  TYPE STANDARD TABLE OF CFBZW01 ,
wa_zwert  LIKE LINE OF it_zwert.

ld_c_t_bed = 'Check type of data required'.

ld_new = some text here

"populate fields of struture and append to itab
append wa_seig to it_seig.
ld_c_t_lcol = 'Check type of data required'.

ld_refresh = some text here

"populate fields of struture and append to itab
append wa_fdep_tab to it_fdep_tab.
ld_rkb1d = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_field_tab to it_field_tab.
ld_rkb1f = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_form_tab to it_form_tab.
ld_rkb1x = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_sh_tab to it_sh_tab.

"populate fields of struture and append to itab
append wa_var_tab to it_var_tab.

"populate fields of struture and append to itab
append wa_zwert to it_zwert.

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