cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Subscreens

Former Member
0 Kudos

Hi all,

i'm fighting here with subscreens.

Following problem :

I have a screen (100) and 2 subscreens (200,300).

On the screen 100 i have a subscreen area (subscreen1) and 2 Buttons.

Now when i open the screen 100 i want to show the 2 Buttons and an empty subscreen area. When i press button1 i want to show subscreen 200 and when i press button2 i want to show subscreen 300.

How do i have to handle this ? I don't get it work.

Henning

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

here is an example....(part of the code)

In the PBO of screen 100

....

...

CALL SUBSCREEN gv_subscreen

INCLUDING sy-cprog dynnr.

...

...

In the PAI of screen 100.

..

..

CALL SUBSCREEN gv_subscreen.

...

...

In the above example code, gv_subscreen is the sub screen area, dyynnr is variable which has dynamic value of the screen number.

Initially put the space in dyynr,

when the first button is selected, put 200 in dynnr and if button 2 is selected put 300 in dynnr.

Hope this helps.if u have not understood, i will send the full code.

Regards,

Prasanth

*Reward if this helps

Former Member
0 Kudos

hi henning,

instead of going for two push buttons why dont you go for tabstrip with 2 tabs include inside it one subscreen area .. and call your 200 and 300 screens using two tabs.

regards,

pankaj singh

Former Member
0 Kudos

Hi Henning,

You can have the first subscreen 200 in the main screen 100 with 2 buttons.

When you press the button 2 subscreen 300 should get displayed and when you press button 1 scubscreen 200 should get displayed.

Handle this in the PAI module of the main screen 100. At user command corresponding the button clicked call the appropriate sub screen .

Regards,

George

Former Member
0 Kudos

may be u can solve this by the following- In PAI event of screen 100, u call screen 100 again .

In 100 screen put a flag condition for calling 200 or 300 screen. set this flag in the Pai event of screen 100 depending on the button clicked.

Former Member
0 Kudos

You need a third blank subscreen.

Scott