11-23-2022 5:43 AM
I need to loop the select-options value for the condition when the user will enter random values with the help of the select single values option in select-options. I need to validate those entries against the TVARVC table value for the low-high range. so, how we can loop select-options entries (i/p)s without using a loop statement?
Can we loop it with the help of ranges ?
Could you assist me with the same?
11-23-2022 7:12 AM
loop at <your select-option>.
endloop.
This will loop your values in select-options one by one.
Is this you are looking for?
11-23-2022 7:12 AM
how we can loop select-options entries (i/p)s without using a loop statement?
Why do you want to not used LOOP ?
11-23-2022 7:15 AM
Hi Aditya, Without the Loop statement, I want to proceed. Is there any other way you know?
11-23-2022 7:16 AM
Hi Frederic, my lead don't want me to use loop for select-options.
11-23-2022 7:26 AM
Hi shubh7767,
Check these new Iteration Expression.
https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abeniteration_expressions.htm
Regards,
Aditya
11-23-2022 7:39 AM
you should not use LOOP with RANGES because it is a non-sens. You have to make a SELECT and use the result of the SELECT. But you specify you would like to read the LOW value, not used the RANGES
11-23-2022 8:04 AM
Hey Frederic, Exactly, what i had been told to my lead. Thank you for your inputs and confirmation.
11-23-2022 8:18 AM
I'm not sure to understand exactly what you are looking for, but based on the discussion between you and Frederic, if you use at least HANA and ABAP 7.52, you can use SELECT ... FROM @itab:
or more directly you could possibly use SELECT ... FROM tvarvc WHERE ... IN @s_xx ...