‎2007 May 02 8:19 AM
hi all
i have a requirement...i need to give three values in the screen 10,20, & 30...please giv d code and also tell me and giv d code like if the value is 10 in the abap editor i need to call a window1 in the script and if value is 20 then i need to select the window 2 and if its 30 then i need to select window3.....please tell me or send me d code if possible,,,,
with rgards
vijay
‎2007 May 02 8:23 AM
hi,
Simply check the value...and use fm write_form....with different windows....
Amitava
‎2007 May 02 8:26 AM
hey give it in if condiiton...
selection-screen begin of screen 100.
select-option : .....
selection-screen end of screen 100.
selection-screen begin of screen 200.
select-option : .....
selection-screen end of screen 200.
selection-screen begin of screen 300.
select-option : .....
selection-screen end of screen 300.
if selection_criteria = '10'.
call selection-screen 100.
endif.
if selection_criteria = '20'.
call selection-screen 200.
endif.
if selection_criteria = '30'.
call selection-screen 300.
endif.
You can do this way...in this way you will have diffrent selectionparameres in all the three screens...
Regards,
Jayant
Please award if helpful
‎2007 May 02 8:28 AM
‎2007 May 02 8:30 AM
hi,
use 3 subroutines to call the 3 windown in the write_form n use it in an case statement.
like this
open_form.
case 'screen'
when '10'
perform win1.
when '20'
perform win2.
..............
end_form.
form win1
write_form..-->> here give ur window name
endrom.
...............
try soething like this
reward if useful
ravi
‎2007 May 10 6:54 AM