hi all,
i am trying to code selection screen. where in when i click on 1 pushbutton one field should be active and the other one should be invisible.
the code is syntactically correct but when i execute it . it is not working properly .
i am unable to find the error .
so can any one plz take some time and solve it. and plzzz let me know where i was wrong.
this is the code
parameters: mat1 type mara-matnr,
lif1 type lfa1-lifnr.
selection-screen begin of line.
selection-screen pushbutton: (5) lif user-command abc,
10(5) mat user-command dec.
selection-screen end of line.
data: f_1 type i value 1,
s_1 type i.
at selection-screen output.
loop at screen.
case screen-name.
when 'mat1'.
screen-active = f_1.
when 'lif1'.
screen-active = s_1.
endcase.
modify screen.
endloop.
at selection-screen.
if sy-ucomm = 'abc'.
f_1 = 1.
s_1 = 0.
elseif sy-ucomm = 'dec'.
f_1 = 0.
s_1 = 1.
endif.