Hi guys,
In my report I have three blocks on selection screen, each block has three parameters and one select-option and I am trying to make dynamic SELECT statement with it. I was wondering if I could do something like this:
DATA:
line(200) type c,
list like table of line(200).
LOOP AT parameters_from_sel_screen.
IF parameter_n is not initial.
CONCATENATE 'field_n =' parameter_n INTO line SEPARATED BY space.
APPEND line to list.
CLEAR line.
ENDIF.
ENDLOOP.
SELECT * FROM table
WHERE (list).
Thank you in advance for your help.