Application Development 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: 

Program DEMO_SEL_SCREEN_WITH_SUBSCREEN

Former Member
0 Kudos

Dear all,

I'm referring program DEMO_SEL_SCREEN_WITH_SUBSCREEN to develop my subscreen selection.

The demo program consist of 3 subscreens, 100, 200, and 300.

When i'm in subscreen 300, i press execute button. Then it will proceed with report listing, when i click on back button, it always bring me back to screen 100.

My question is, how can i stay on the last screen (this case is 300) after come back from listing screen?

Please comment.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

at selection-screen

export sy-dnnr to memory id 'DYNNR'.

INITIALIZATION.

IMPORT 'DYNNR' TO 'VAR'.

SUB-DYNNR = VAR.

SUB-PROG = SY-REPID.

Hope this will work

Edited by: Dande on Jun 7, 2009 7:23 AM

1 REPLY 1

Former Member
0 Kudos

Hi,

at selection-screen

export sy-dnnr to memory id 'DYNNR'.

INITIALIZATION.

IMPORT 'DYNNR' TO 'VAR'.

SUB-DYNNR = VAR.

SUB-PROG = SY-REPID.

Hope this will work

Edited by: Dande on Jun 7, 2009 7:23 AM