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: 

ISSUE WITH CALL SUBSCREEN

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

reward if useful