FKK_INV_FREE_SELECTION 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 FKK_INV_FREE_SELECTION into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FKKINV_DIALOG
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FKK_INV_FREE_SELECTION' "
EXPORTING
i_structure = " tabname Table Name
* it_fields_excluding = " fieldname_tab
* it_fields_default_sel = " fieldname_tab Standard Selection
* i_restriction = " sscr_restrict_ds
CHANGING
c_where = " rsds_where
* c_ranges = " rsds_range
* c_id = " dynselid Dynamic selection ID
EXCEPTIONS
NO_FIELDS_FOR_SELECTION = 1 "
. " FKK_INV_FREE_SELECTION
The ABAP code below is a full code listing to execute function module FKK_INV_FREE_SELECTION 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_c_where) = 'Check type of data required'.
DATA(ld_c_ranges) = 'Check type of data required'.
DATA(ld_c_id) = 'Check type of data required'.
DATA(ld_i_structure) = 'Check type of data required'.
DATA(ld_it_fields_excluding) = 'Check type of data required'.
DATA(ld_it_fields_default_sel) = 'Check type of data required'.
DATA(ld_i_restriction) = 'Check type of data required'. . CALL FUNCTION 'FKK_INV_FREE_SELECTION' EXPORTING i_structure = ld_i_structure * it_fields_excluding = ld_it_fields_excluding * it_fields_default_sel = ld_it_fields_default_sel * i_restriction = ld_i_restriction CHANGING c_where = ld_c_where * c_ranges = ld_c_ranges * c_id = ld_c_id EXCEPTIONS NO_FIELDS_FOR_SELECTION = 1 . " FKK_INV_FREE_SELECTION
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
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_where | TYPE RSDS_WHERE , |
| ld_i_structure | TYPE TABNAME , |
| ld_c_ranges | TYPE RSDS_RANGE , |
| ld_it_fields_excluding | TYPE FIELDNAME_TAB , |
| ld_c_id | TYPE DYNSELID , |
| ld_it_fields_default_sel | TYPE FIELDNAME_TAB , |
| ld_i_restriction | TYPE SSCR_RESTRICT_DS . |
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 FKK_INV_FREE_SELECTION or its description.