Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

answer please....!!

naveen_inuganti2
Active Contributor
0 Likes
413

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

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á

2 REPLIES 2
Read only

Former Member
0 Likes
386

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

Read only

Former Member
0 Likes
387

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á