SAP Function Modules

CY17_FILL_SEL_KBED SAP Function module







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

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


Pattern for FM CY17_FILL_SEL_KBED - CY17 FILL SEL KBED





CALL FUNCTION 'CY17_FILL_SEL_KBED' "
  EXPORTING
    iindi =                     " cyindiei      Contains the indic, before selections (input)
    irc65b =                    " rc65b         Contains the selection periods
    sel_path =                  " cyrefs-character
  IMPORTING
    eindi =                     " cyindiei      Contains the indic. after selections (out)
  TABLES
    ifil_tab =                  " cyfil_tab     Contains the filter table (input)
    index_kako_gruppe =         " cysel_obj     Contains the indices/group/selection capacity (input)
    index_kbed_gruppe =         " cysel_obj     Contains the indices/group/selection capacity requirements (out)
  EXCEPTIONS
    NO_ENTRY_KBED = 1           "               No capacity records read
    .  "  CY17_FILL_SEL_KBED

ABAP code example for Function Module CY17_FILL_SEL_KBED





The ABAP code below is a full code listing to execute function module CY17_FILL_SEL_KBED 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_eindi  TYPE CYINDIEI ,
it_ifil_tab  TYPE STANDARD TABLE OF CYFIL_TAB,"TABLES PARAM
wa_ifil_tab  LIKE LINE OF it_ifil_tab ,
it_index_kako_gruppe  TYPE STANDARD TABLE OF CYSEL_OBJ,"TABLES PARAM
wa_index_kako_gruppe  LIKE LINE OF it_index_kako_gruppe ,
it_index_kbed_gruppe  TYPE STANDARD TABLE OF CYSEL_OBJ,"TABLES PARAM
wa_index_kbed_gruppe  LIKE LINE OF it_index_kbed_gruppe .

DATA(ld_iindi) = 'Check type of data required'.
DATA(ld_irc65b) = 'Check type of data required'.

DATA(ld_sel_path) = some text here

"populate fields of struture and append to itab
append wa_ifil_tab to it_ifil_tab.

"populate fields of struture and append to itab
append wa_index_kako_gruppe to it_index_kako_gruppe.

"populate fields of struture and append to itab
append wa_index_kbed_gruppe to it_index_kbed_gruppe. . CALL FUNCTION 'CY17_FILL_SEL_KBED' EXPORTING iindi = ld_iindi irc65b = ld_irc65b sel_path = ld_sel_path IMPORTING eindi = ld_eindi TABLES ifil_tab = it_ifil_tab index_kako_gruppe = it_index_kako_gruppe index_kbed_gruppe = it_index_kbed_gruppe EXCEPTIONS NO_ENTRY_KBED = 1 . " CY17_FILL_SEL_KBED
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_eindi  TYPE CYINDIEI ,
ld_iindi  TYPE CYINDIEI ,
it_ifil_tab  TYPE STANDARD TABLE OF CYFIL_TAB ,
wa_ifil_tab  LIKE LINE OF it_ifil_tab,
ld_irc65b  TYPE RC65B ,
it_index_kako_gruppe  TYPE STANDARD TABLE OF CYSEL_OBJ ,
wa_index_kako_gruppe  LIKE LINE OF it_index_kako_gruppe,
ld_sel_path  TYPE CYREFS-CHARACTER ,
it_index_kbed_gruppe  TYPE STANDARD TABLE OF CYSEL_OBJ ,
wa_index_kbed_gruppe  LIKE LINE OF it_index_kbed_gruppe.

ld_iindi = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ifil_tab to it_ifil_tab.
ld_irc65b = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_index_kako_gruppe to it_index_kako_gruppe.

ld_sel_path = some text here

"populate fields of struture and append to itab
append wa_index_kbed_gruppe to it_index_kbed_gruppe.

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