Ansicht
Dokumentation

ABENFREE_SELECTIONS_FREE - FREE SELECTIONS FREE

ABENFREE_SELECTIONS_FREE - FREE SELECTIONS FREE

General Data in Customer Master   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Dialog Calls for Entering Selections.

This documentation describes the option which allows you to call dialogs to enter selections for practically any list of ABAP/4 Dictionary fields from an ABAP/4 program.

The functionality involves two function modules - FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. For more detailed information, refer to the function module documentation and the documentation for the parameters of these function modules.

FREE_SELECTIONS_INIT

This function module gets the field list for the dialog. It returns a selections ID which serves as the input for the function module FREE_SELECTIONS_DIALOG.

The function module can be called several times in the course of the transaction (with a different field list) and returns a new selections ID each time. This allows you to perform dialogs for different field lists during a transaction.

FREE_SELECTIONS_DIALOG

The most simple procedure is where a selection screen is displayed for the fields specified in FREE_SELECTIONS_INIT after the function module is called. After you have entered your selections and pressed the appropriate pushbutton, the function module returns the selections to the calling program in three different formats:

  1. WHERE clauses which you can pass directly to a SELECT statement.
  2. RANGES tables which are used with SELECT and in logical expressions for the IN operator.
  3. An internal format: You can store this object and pass it to the function module FREE_SELECTIONS_INIT later. The old selections then appear at once the next time FREE_SELECTIONS_DIALOG is called.





BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2186 Date: 20240420 Time: 045648     sap01-206 ( 38 ms )