SAP CY_READ_SELECTION_SET Function Module for Initiates the breakdown of the set belonging to a selection list
CY_READ_SELECTION_SET is a standard cy read selection set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initiates the breakdown of the set belonging to a selection list 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 cy read selection set FM, simply by entering the name CY_READ_SELECTION_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CYFI
Program Name: SAPLCYFI
Main Program: SAPLCYFI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CY_READ_SELECTION_SET 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 'CY_READ_SELECTION_SET'"Initiates the breakdown of the set belonging to a selection list.
EXPORTING
HILFEFKT = "Help function active?
LISTTYPE = "List for which the set should be deleted
SET = "
IMPORTING
VAR_EXIST = "Do variables exist at all in the set?
TABLES
DEFTAB = "
EXCEPTIONS
CAPACITY_SET_NOT_FOUND = 1 ENTRY_SET_NOT_FOUND = 2 INVALID_LISTTYPE = 3 ORDER_SET_NOT_FOUND = 4 WORKCENTER_SET_NOT_FOUND = 5
IMPORTING Parameters details for CY_READ_SELECTION_SET
HILFEFKT - Help function active?
Data type: CYINDI-HILFEFKTOptional: No
Call by Reference: No ( called with pass by value option)
LISTTYPE - List for which the set should be deleted
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
SET -
Data type: TCY07-ARBPL_SETOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CY_READ_SELECTION_SET
VAR_EXIST - Do variables exist at all in the set?
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CY_READ_SELECTION_SET
DEFTAB -
Data type: CYXRANGESOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CAPACITY_SET_NOT_FOUND - The capacity set does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENTRY_SET_NOT_FOUND - The initial set does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_LISTTYPE - List category does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ORDER_SET_NOT_FOUND - The order set does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WORKCENTER_SET_NOT_FOUND - The work center set does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CY_READ_SELECTION_SET 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: | ||||
| lt_deftab | TYPE STANDARD TABLE OF CYXRANGES, " | |||
| lv_hilfefkt | TYPE CYINDI-HILFEFKT, " | |||
| lv_var_exist | TYPE C, " | |||
| lv_capacity_set_not_found | TYPE C, " | |||
| lv_listtype | TYPE I, " | |||
| lv_entry_set_not_found | TYPE I, " | |||
| lv_set | TYPE TCY07-ARBPL_SET, " | |||
| lv_invalid_listtype | TYPE TCY07, " | |||
| lv_order_set_not_found | TYPE TCY07, " | |||
| lv_workcenter_set_not_found | TYPE TCY07. " |
|   CALL FUNCTION 'CY_READ_SELECTION_SET' "Initiates the breakdown of the set belonging to a selection list |
| EXPORTING | ||
| HILFEFKT | = lv_hilfefkt | |
| LISTTYPE | = lv_listtype | |
| SET | = lv_set | |
| IMPORTING | ||
| VAR_EXIST | = lv_var_exist | |
| TABLES | ||
| DEFTAB | = lt_deftab | |
| EXCEPTIONS | ||
| CAPACITY_SET_NOT_FOUND = 1 | ||
| ENTRY_SET_NOT_FOUND = 2 | ||
| INVALID_LISTTYPE = 3 | ||
| ORDER_SET_NOT_FOUND = 4 | ||
| WORKCENTER_SET_NOT_FOUND = 5 | ||
| . " CY_READ_SELECTION_SET | ||
ABAP code using 7.40 inline data declarations to call FM CY_READ_SELECTION_SET
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.| "SELECT single HILFEFKT FROM CYINDI INTO @DATA(ld_hilfefkt). | ||||
| "SELECT single ARBPL_SET FROM TCY07 INTO @DATA(ld_set). | ||||
Search for further information about these or an SAP related objects