Skip to Content
0
Former Member
Apr 02, 2008 at 11:30 AM

how to fill empty parameter (selection-option)

239 Views

Hi!

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[1] = 'u1'.
s_emipd[2] = 'u7'.
s_emipd[3] = '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!

T.