2023 Apr 12 11:18 AM
REPORT zmgtest.
TABLES sflight.
SELECT-OPTIONS : so_type FOR sflight-planetype NO INTERVALS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_type-low.
so_type-sign = 'I'.
so_type-option = 'EQ'.
so_type-low = 'ABC'.
APPEND so_type.
so_type-low = 'DEF'.
APPEND so_type.
When I run this report and click on the F4 help, I click the multiple selection button and I see DEF twice. Then if I click the F4 help again I see DEF, DEF, ABC, DEF.
I expect to see ABC and DEF on one click of the button. Does anyone know why I don't?
What I'm actually trying to do is create a select option for a filename and have the user select multiple files. The above is just demo code to illustrate my issue.
2023 Apr 12 11:27 AM
At the event the first thing you should do is
CLEAR: so_type,
so_type[].
If you run it in debug it'll be obvious why.
2023 Apr 12 11:35 AM
matthew.billingham I tried that but I get the same result. Have you tried running the report?
TABLES sflight.
SELECT-OPTIONS : so_type FOR sflight-planetype NO INTERVALS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_type-low.
CLEAR: so_type, so_type[].
so_type-sign = 'I'.
so_type-option = 'EQ'.
so_type-low = 'ABC'.
APPEND so_type.
so_type-low = 'DEF'.
APPEND so_type.
2023 Apr 12 12:47 PM
This is to do with the transport of values to and from the select options. You can't just set values in so_type. (Sorry, so long since I did this, I'd forgotten this point).
You have to use FM DYNP_VALUES_UPDATE and DYNP_VALUES_READ
2023 Apr 12 2:05 PM
For selection screens, instead of using DYNP_VALUES_... (UPDATE/READ), SAP recommends using RS_SELECTIONSCREEN_... (UPDATE/READ), so that it works for the detailed selection criteria dialog too.
2023 Apr 12 2:07 PM
2023 Apr 17 3:58 PM
matthew.billingham, a very long time indeed (New Function Modules)
2023 Apr 17 4:15 PM