On selection screen I have two parameters (s_egrid and s_empid). If user enter something in first (but not in second) one, second one should be filled from database.
The problem is that I don't know how to fill the empty parameter.
Let's say that i have an internal table i_zemployee with list of all necessary employee Id's (stored in field empid)
if I Ioop like this
loop at i_zemployee into wa_zemployee. insert wa_zemployee-empid into s_empid. endloop.
... I did something stupid 😊 but i hope that you understand what i need:
s_emipd = 'u1'. s_emipd = 'u7'. s_emipd = 'u9'.
... like array of user id's.
and this s_empid I need in my next SELECT statement like
SELECT * FROM ... .... WHERE empid in s_empid.
if someone knows the solution thanks in advance!