‎2009 Oct 20 11:34 AM
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
‎2009 Oct 20 11:40 AM
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
‎2009 Oct 20 11:40 AM
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
‎2009 Oct 20 11:45 AM
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
‎2009 Oct 20 11:53 AM
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
‎2009 Oct 20 12:04 PM
‎2009 Oct 21 10:33 AM
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
‎2009 Oct 21 12:25 PM
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
‎2009 Oct 20 11:53 AM
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
‎2009 Oct 21 10:29 AM
New Problem with Subscreen.
Edited by: Nikhil Joshi on Oct 21, 2009 3:00 PM