Hello
I'm facing a problem in a report where I want to use a dynamic selection screen.
I got my internal table with e.g. 20 entries. In a LOOP I want to add with every entry a new parameter in my selection screen. So far so good, i already finished this, but its not that comfortable for me, because I wanted it some easier way if possible with field symbols.
I want in every LOOP entry that the content of one entry variable will be given to the parameters name or description. Is this possible? Any clever solution for this?
At the moment it looks pretty undynamical, because I had a limited amount of fields.
************************************************************************
INITIALIZATION.
************************************************************************LOOP AT lt_lxe ASSIGNING <ls_lxe>.
mac_para sy-tabix <ls_lxe>-language.
ENDLOOP.
DEFINE mac_para.
case &1.
when 1.
selection-screen begin of block s03 with frame title text-z02.
parameter: p_01 as checkbox.
%_p_01_%_app_%-text = &2.
when 2.
parameter: p_02 as checkbox.
%_p_02_%_app_%-text = &2.
when 3.
parameter: p_03 as checkbox.
%_p_03_%_app_%-text = &2.
when 4.
parameter: p_04 as checkbox.
%_p_04_%_app_%-text = &2.
when 5.
parameter: p_05 as checkbox.
%_p_05_%_app_%-text = &2.
when 6.
parameter: p_06 as checkbox.
%_p_06_%_app_%-text = &2.
when 7.
parameter: p_07 as checkbox.
%_p_07_%_app_%-text = &2.
when 8.
parameter: p_08 as checkbox.
%_p_08_%_app_%-text = &2.
when 9.
parameter: p_09 as checkbox.
%_p_09_%_app_%-text = &2.
when 10.
parameter: p_10 as checkbox.
%_p_10_%_app_%-text = &2.
when 11.
parameter: p_11 as checkbox.
%_p_11_%_app_%-text = &2.
when 12.
parameter: p_12 as checkbox.
%_p_12_%_app_%-text = &2.
selection-screen end of block s03.
when others.
endcase.
END-OF-DEFINITION.
Regards
Michael