SAP AFWCH_FL_GET_SELECT Function Module for AFWCH: Filter - Liefert Selektionstabelle (rekursiv)
AFWCH_FL_GET_SELECT is a standard afwch fl get select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for AFWCH: Filter - Liefert Selektionstabelle (rekursiv) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for afwch fl get select FM, simply by entering the name AFWCH_FL_GET_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: AFWCH_FL_APPL
Program Name: SAPLAFWCH_FL_APPL
Main Program: SAPLAFWCH_FL_APPL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AFWCH_FL_GET_SELECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'AFWCH_FL_GET_SELECT'"AFWCH: Filter - Liefert Selektionstabelle (rekursiv).
EXPORTING
I_FLID = "Filter: Name
* I_CUST = "Filterobjekt: Selektionen
* I_VARIANTE = "Filter: Index
* I_TEST = "Filterobjekt: Testselektionen
* I_DISP = "nur Anzeige, ignoriere Status
IMPORTING
E_NINDEX = "Filter: Index
E_FRANGE_T = "Filter: Selektionstabelle (1. Ebene)
E_TRANGE = "Filter: Selektionstabelle (Komb. aufgelöst)
E_UPTSTP = "Zeitstempel
EXCEPTIONS
NOT_FOUND = 1 INCONSISTENT = 2 ERROR_UNKOWN = 3 ERROR_RECURSIVE_CALL = 4 ERROR_REF_2_MYSELF = 5 FLID_STATE_ERROR = 6
IMPORTING Parameters details for AFWCH_FL_GET_SELECT
I_FLID - Filter: Name
Data type: AFWCH_FLIDOptional: No
Call by Reference: Yes
I_CUST - Filterobjekt: Selektionen
Data type: AFWCH_FLAG_SELEOptional: Yes
Call by Reference: Yes
I_VARIANTE - Filter: Index
Data type: AFWCH_INDEXOptional: Yes
Call by Reference: Yes
I_TEST - Filterobjekt: Testselektionen
Data type: AFWCH_FLAG_SELEOptional: Yes
Call by Reference: Yes
I_DISP - nur Anzeige, ignoriere Status
Data type: AFWCH_FLAGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for AFWCH_FL_GET_SELECT
E_NINDEX - Filter: Index
Data type: AFWCH_INDEXOptional: No
Call by Reference: Yes
E_FRANGE_T - Filter: Selektionstabelle (1. Ebene)
Data type: RSDS_FRANGE_TOptional: No
Call by Reference: Yes
E_TRANGE - Filter: Selektionstabelle (Komb. aufgelöst)
Data type: RSDS_TRANGEOptional: No
Call by Reference: Yes
E_UPTSTP - Zeitstempel
Data type: AFW_TIMESTPOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Keine Selektionen vorhanden
Data type:Optional: No
Call by Reference: Yes
INCONSISTENT - Inkonsistenz vorhandener Selektionen
Data type:Optional: No
Call by Reference: Yes
ERROR_UNKOWN - Allgemeiner Fehler
Data type:Optional: No
Call by Reference: Yes
ERROR_RECURSIVE_CALL - Fehler beim rekursiven Aufruf
Data type:Optional: No
Call by Reference: Yes
ERROR_REF_2_MYSELF - Fehler: Filter referenziert sich selbst
Data type:Optional: No
Call by Reference: Yes
FLID_STATE_ERROR - Filter hat Status inkonsistent
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AFWCH_FL_GET_SELECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_flid | TYPE AFWCH_FLID, " | |||
| lv_e_nindex | TYPE AFWCH_INDEX, " | |||
| lv_not_found | TYPE AFWCH_INDEX, " | |||
| lv_i_cust | TYPE AFWCH_FLAG_SELE, " | |||
| lv_e_frange_t | TYPE RSDS_FRANGE_T, " | |||
| lv_inconsistent | TYPE RSDS_FRANGE_T, " | |||
| lv_e_trange | TYPE RSDS_TRANGE, " | |||
| lv_i_variante | TYPE AFWCH_INDEX, " | |||
| lv_error_unkown | TYPE AFWCH_INDEX, " | |||
| lv_i_test | TYPE AFWCH_FLAG_SELE, " | |||
| lv_e_uptstp | TYPE AFW_TIMESTP, " | |||
| lv_error_recursive_call | TYPE AFW_TIMESTP, " | |||
| lv_i_disp | TYPE AFWCH_FLAG, " | |||
| lv_error_ref_2_myself | TYPE AFWCH_FLAG, " | |||
| lv_flid_state_error | TYPE AFWCH_FLAG. " |
|   CALL FUNCTION 'AFWCH_FL_GET_SELECT' "AFWCH: Filter - Liefert Selektionstabelle (rekursiv) |
| EXPORTING | ||
| I_FLID | = lv_i_flid | |
| I_CUST | = lv_i_cust | |
| I_VARIANTE | = lv_i_variante | |
| I_TEST | = lv_i_test | |
| I_DISP | = lv_i_disp | |
| IMPORTING | ||
| E_NINDEX | = lv_e_nindex | |
| E_FRANGE_T | = lv_e_frange_t | |
| E_TRANGE | = lv_e_trange | |
| E_UPTSTP | = lv_e_uptstp | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| INCONSISTENT = 2 | ||
| ERROR_UNKOWN = 3 | ||
| ERROR_RECURSIVE_CALL = 4 | ||
| ERROR_REF_2_MYSELF = 5 | ||
| FLID_STATE_ERROR = 6 | ||
| . " AFWCH_FL_GET_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM AFWCH_FL_GET_SELECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects