Skip to Content
author's profile photo Former Member
Former Member

Handling Subscreens

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 16, 2004 at 09:46 AM

    You need a third blank subscreen.

    Scott

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2007 at 08:58 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2007 at 09:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2007 at 09:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2007 at 09:32 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.