‎2008 Apr 25 11:31 AM
Hi.... all
I am having three screens....
1000
2000
3000
if i enter into 3000 through 1000 its one work like tickets booking...
If i enter into 3000 through 2000 its another work like ticket cancelling...
So here my requirement is screen number has to appear with one extra pushbutton...,
if i enter into that through 2000 screen.....
(above is only example and my requirement is very urgent and i will get back to you with max:points)
Thank you,
Naveen Inuganti.
‎2008 Apr 25 11:46 AM
Hi!
You have to store the sender screen number. Store it in a global variable (f.e. gv_dynnr), define in a top include, and you can use the sy-dynnr system variable to save.
On the 3000 screen's PBO, make a LOOP AT SCREEN statement.
IF screen-name = 'MYBUTTON'.
IF gv_dynnr = 2000.
MOVE 0 TO screen-active.
ELSE:
MOVE 0 TO screen-active.
ENDIF.
MODIFY screen.
ENDIF.
Regards
Tamá
‎2008 Apr 25 11:36 AM
instead of using 3 screens use 4 screens...
1000 n 2000 with their normal functionality
and 3000 for booking & 4000 for cancellation...
this way you can call 3000 for booking and 4000 for cancellation
‎2008 Apr 25 11:46 AM
Hi!
You have to store the sender screen number. Store it in a global variable (f.e. gv_dynnr), define in a top include, and you can use the sy-dynnr system variable to save.
On the 3000 screen's PBO, make a LOOP AT SCREEN statement.
IF screen-name = 'MYBUTTON'.
IF gv_dynnr = 2000.
MOVE 0 TO screen-active.
ELSE:
MOVE 0 TO screen-active.
ENDIF.
MODIFY screen.
ENDIF.
Regards
Tamá