Skip to Content
author's profile photo
Former Member

ISSUE WITH CALL SUBSCREEN

Hi ,

I have created a subscreen 1020

SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.

SELECT-OPTIONS : s_belnr1 FOR bsis-belnr.

SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 1020.

And included this is in my screen using :

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN AREA_001 INCLUDING 'ZVMCCSCREENS' g_screen.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

CALL SUBSCREEN AREA_001.

Now in PAI of 100 i need the value s_belnr1 entered by user. How do I access it.

Any help will be rewarded.

Regards,

Sudhir Atluru

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Jul 16, 2007 at 10:31 PM

    Hi Sridhar,

    Just create a gloabl variable, you can create the same in the program too. Once you create that just pass the value of s_belnr1 in PAI of 1020 screen. You can create a new module in PAI of 1020 in that you can pass the value to global variable.

    From global variable you can capture the data in to the screen 100.

    Normally when you call PBO / PAI of the main program then automatically same events will be triggered for subscreens too.

    Please let me know if you need any further clarifications.

    regards,

    • Dj

    reward all helpful answers.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 06:19 AM

    Hi Sudhir,

    According to me one of the best ways to deal these type of problems are as follows:

    Generally when we need to share data from a subscreen in to the main screen,

    1) Create a function group,

    2) Embedd all the subscreens in that function group,

    3) Use functional Modules to transfer data from the calling program to screen and vice versa, it is done through interface parameters of the functional module.

    4) In the calling program u need to import the export parameters of the function modules in to global variables of the calling program.

    I think this serves the purpose, sudhir.

    If u have any furrther queries, feel free to contact,

    Cheers

    Message was edited by:

    Shashikanth Divakaruni

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 06:21 AM

    Instead of g_screen give screen number that u have created in screen painter.

    reward if useful

    Add comment
    10|10000 characters needed characters exceeded