Application Development and Automation 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: 
Read only

Problem with Subscreen

Former Member
0 Likes
1,721

Dear Experts ,

I am facing a problem with the subscreens. My senario is as follows :

Main screen is 0100. On this screen i have defind one subscreen area and in this subscreen area i have called another screen 0110. On this 0110 , there are 3 another subscreen areas where I have called screens 0200 ,0300 and 0400 respectively . Now I am facing problem as follows :

1. When I enter any value on screen 0200 and Hit Enter , that value goes off. Same with the case of 0300 and 0400

2 . I want to pass the data on screen 0200 , to the corresponding fields on screen 0300. How to do that ?

Please suggest.

regards,

Nikhil

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,431

Hi

In Top Include declare a variable and same variable is given for the input fields on all the screen where you want the automatic data transfer needed.

in the First screen you need to use CALL SUBSCREEN SUB INCLUDE SY-REPID SY-DYNNR

and also in the First Subscreen where you are calling further subscreens.

Hope this serves your purpose.

Cheers

Ram

8 REPLIES 8
Read only

Former Member
0 Likes
1,432

Hi

In Top Include declare a variable and same variable is given for the input fields on all the screen where you want the automatic data transfer needed.

in the First screen you need to use CALL SUBSCREEN SUB INCLUDE SY-REPID SY-DYNNR

and also in the First Subscreen where you are calling further subscreens.

Hope this serves your purpose.

Cheers

Ram

Read only

0 Likes
1,431

Dear Ramchander ,

We have done the same thing as mentioned by you. But still when i enter any data on the subscreen 0200 and hit Enter system goes to the PAI of 0100 which is my parent screen. Actually it should go to the PAI of 0200.

Please suggest.

regards,

Nikhil

Read only

0 Likes
1,431

HI

in the PAI of first screen call the subscreen first before the User Command statement.

like this.

call subscreen sub. -- then

module user_command_100.

Check in debug what is sequence of screens followed.

Cheers

Ram

Read only

0 Likes
1,431

Thanks Rama. You are the Gem.

Problem solved.

Regards,

Nikhil

Read only

0 Likes
1,431

Dear Ram,

Now there is no Problem on subscreen 0100. Data is retained even after any event on it.

But when I enter any value on subscreen 0200 or 0300 , that data is lost when I hit Enter on it.

Please suggest.

Regards,

Nikhil

Read only

0 Likes
1,431

Hi Nikhil,

1) Same procedure need to be followed. Check the Screen Field name and Variable name in Top include must be same.

2) Check what is happening in PBO of respective Screen before they are displayed

3) Are you using any Clear Statements

4) Change the Order or Calling the CALL SUBSCREEN both in PBO and PAI (if Required only)

5) Are you passing any other values to these variables through program ( by select query or any other move statements or assigning with = symbol

Check all these.

From the beginning --->

After you enter a value to the field --> enter /H and follow the process where this is getting cleared.

whether in the PAI of main screen or PBO of Main Screen or while calling other sub screens

Hope this will serve your purpose.

Cheers

Ram

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,431

Hello,

That is happening becuase of inconsitencey in your code.

Always remember once you press enter it trigger PAI.

Just debug it and See what your program is doing ..You will know the error.

Regards,

Nabheet Madan

Read only

Former Member
0 Likes
1,431

New Problem with Subscreen.

Edited by: Nikhil Joshi on Oct 21, 2009 3:00 PM