Menu

SAP Function Module FREE_SELECTIONS_INIT

Initialize dynamic selection: Declare permitted tables ...

The Function Module FREE_SELECTIONS_INIT (Initialize dynamic selection: Declare permitted tables ...) is a standard Function Module in SAP ERP and is part of the function group SSEL within the package SLDBV.

Technical Information

Function Module FREE_SELECTIONS_INIT
Short Text Initialize dynamic selection: Declare permitted tables ...
Function Group SSEL
Package SLDBV
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ALV LIKE Internal Use
CURR_QUAN_PROG LIKE SY-REPID SY-CPROG Program for fetching currency reference
CURR_QUAN_RELATION TYPE SSCR_CURR_QUAN_T Assignment quantity field -> currency key field.
EXPRESSIONS TYPE RSDS_TEXPR Initial selections
FIELD_GROUPS_KEY LIKE RSDSQCAT Selection view key
FIELD_RANGES_INT TYPE RSDS_TRANGE Initial Selections in Form of Ranges Tables
KIND LIKE 'T' Type of field list
RESTRICTION TYPE SSCR_RESTRICT_DS Option restrictions of individual selections

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
EXPRESSIONS TYPE RSDS_TEXPR Initial selections
FIELD_RANGES TYPE RSDS_TRANGE Selections in form of RANGES tables
NUMBER_OF_ACTIVE_FIELDS LIKE SY-TFILL Number of fields with selections
SELECTION_ID LIKE RSDYNSEL-SELID Identification for FREE_SELECTIONS_DIALOG
WHERE_CLAUSES TYPE RSDS_TWHERE Selections in form of WHERE clauses

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ALV_QINFO LIKE LVC_S_QINF Structure for Quickinfos of Exceptions
EVENTS LIKE RSDSEVENTS Events for which control is required
EVENT_FIELDS LIKE RSDSEVFLDS Fields for field-specific events
FIELDS_NOT_SELECTED LIKE RSDSFIELDS Kind F: Fields not initially selected
FIELDS_TAB LIKE RSDSFIELDS Preselect fields
FIELD_DESC LIKE FLDCONVERT Description of non-Dictionary fields
FIELD_TEXTS LIKE RSDSTEXTS Own selection texts
TABLES_TAB LIKE RSDSTABS Desired tables

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
AREA_NOT_FOUND Invalid key FIELD_GROUPS_KEY
AREA_NO_FIELD Selection view has no fields
DUP_EVENT_FIELD Field doubled in EVENT_FIELDS
DUP_FIELD Field doubles in FIELDS_TAB
EXPRESSION_NOT_SUPPORTED Expression not (yet) supported
FIELDS_INCOMPLETE Only PRIM_FNAME filled
FIELDS_NO_JOIN Field assignment without join
FIELD_ILL_TYPE Non-allowed field type
FIELD_NOT_FOUND Dictionary field not found
FIELD_NO_TYPE No field type in the field description
ILLEGAL_KIND KIND not equal to T,G,F or: G without P_RSDSQCAT
INCONSISTENT_AREA Inconsistent selection view
INCORRECT_EXPRESSION Incorrect logical expression
KIND_F_NO_FIELDS KIND - F, but no field passed
KIND_F_NO_FIELDS_LEFT KIND - F, but no field left after cleanup
NODE_NOT_IN_LDB Node not part of logical database
NO_TABLES Table P_TABLES is empty
TABLE_NOT_FOUND A table from P_TABLES was not found
TOO_MANY_FIELDS Too many entries in FIELDS_TAB