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

subscreens

I have designed one main screen 1000 and underthat i have designed two subscreens 2000 and 3000.I want to know the logic for it.First the logic goes to pbo of screen1000 then after that plz explain me clearly.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 11:10 AM

    manjula,

    u can't use the screen number 1000. It is meant for the standard screen for selection-screens.

    But in ur case, v have to use the following stmts in the first screen.

    PROCESS BEFORE OUTPUT.

    MODULE STATUS_0100.

    MODULE TEST.

    CALL SUBSCREEN: SUB1 INCLUDING 'Ztest' '0200',

    SUB2 INCLUDING 'Ztest' '0300'.

    PROCESS AFTER INPUT.

    MODULE USER_COMMAND_0100.

    CALL SUBSCREEN SUB1.

    CALL SUBSCREEN SUB2.

    Regards...

    Arun.

    Reward points if useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 11:06 AM

    Hi Manjula,

    At first the control goes to PBO of screen 1000.After that it will go to PAI of Screen 1000.Based on the Condition u wrote in the PAI of the Screen 1000,it will go to the PBO of the Subscreen 2000 or 3000.After that it will go to the PAI of the screen Correspondingly

    Regards,

    Padmam.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2007 at 11:07 AM

    HI,

    in the PBO if your screen 1000 you will have to put CALL SBUSCREEN statements for 2000 and 3000 as per your need.

    SO if you call 2000 first then BO of 2000 is called and then PBO of 3000 is called.

    Similarly you have to put CALL SUBSCREEN in the PAI of 1000.

    @padmam, With out calling the PBO of the subscreens how will you display the screen with all the subscreens so all PBO will be called before you goto any PAI.

    Regards,

    Sesh

    Message was edited by:

    Seshatalpasai Madala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 11:20 AM

    first of all the subscreen cannot process ok_code operation.

    A subscreen screen may not have a named OK code field. Function codes can only be passed to the OK code field of the main screen.

    first conrol will pass to the PBO of the main screen 1000 . then if there is call subscreen stmt in PBO of 1000 it will move to PBO of the corresponding SUbscreen if it 2000 it will go there and return to main screen1000. if there is another call subscreen in the mainscreen for 3000 it will go the PBO of the 3000 subscreen and will return to the main pgm and will start processing the PAI of the main screen 1000.. then till continue with the call subscreen stmt which first appear in the PAI ..if it is2000. it will process that .. then to 3000....

    actually subscreen does not have an ok_code.. so it is better process the ok_code in the usercommand module of the main screen...

    for calling two subscreen it is better practice to assign one subscreen area in the main screen and based on condition map the corresponding subscreen 2000 or 3000 to this subscreen area instead of creating two different subscreen area for each subscreen . and handle the ok_code ine usercommand module of the main screen 1000..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 11:30 AM

    Hello Manjula...

    screen 1000.

    PBO..

    call subscreen <sub1> including sy-cprog '2000'.

    call subscreen <sub2> including sy-cprog '3000'.

    PAI..

    call subscreen <sub1>.

    call subscreen <sub2>.

    if this is the case... see how control goes...

    PBO 1000 --> PBO 2000 --> PBO 3000 --> PAI 1000 --> PAI 2000 --> PAI 3000.

    <b>ALWAYS REMEMBER THAT FIRST CONTROL GOES TO PBOs FIRST AND THEN PAIs</b>

    <b>REWARD POINTS IF HELPFUL</b>

    Regards

    --

    Sasidhar Reddy Matli.

    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.