01-26-2011 12:02 PM
Hi All,
I am developing a module pool program with 3 screens. Upon entering the data in screen 9000, it navigates to screen 9001.
The third screen 9002 which is to be displayed, is modal dialog box which has to be displayed as a popup.
After the processing in the screen 9002, it has to return to screen 9001. But when I am using LEAVE TO SCREEN 0, it navigates to screen 9000, which in this case is displayed as full screen. But I need to navigate back to screen 9001. So when I use LEAVE TO SCREEN 9001, it shows the screen 9001 which is a full screen as a popup.
Please help me out in this regard. Now I am using call screen from 9002 to return to screen 9001. It works fine, but I know that the nested use of CALL SCREEN will lead to dump, when the number of calls exceed 50.
So please let me know how I can overcome this issue.
Thanks in advance.
Regards,
Joseph M
01-26-2011 12:33 PM
Calling sequence should be
CALL SCREEN 9000
-> in PAI CALL SCREEN 9001
-> in PAI CALL SCREEN 9002 (popup)
The closing sequence should be
<- LEAVE TO SCREEN 0 (go back to 9001)
<- LEAVE TO SCREEN 0 (go back to 9000)
SCREEN 9000
Apparently the calling sequence is not as above (i.e. you set 9001 after 9000 as next screen) that's why LEAVE TO SCREEN skips 9001 and returns directly to 9000.
Regards
Marcin
01-26-2011 12:39 PM
Look at dynpro 9001 PAI, after the CALL SCREEN 9002 (i.e. where you will go after a leave to screen 0 in 9002 PAI)
- Is there an explicit LEAVE TO SCREEN else check the value of "next screen" attribute of 9001 screen for an implicit LEAVE TO SCREEN ?
- of course if you used a LEAVE TO SCREEN 9002, forget about going back to 9001 via SET/LEAVE TO SCREEN 0
Regards,
Raymond
01-26-2011 3:31 PM
Hi,
I have maintained in attributes tab of the screens as following:
In screen 9000 ---> 9000 is maintained as next screen
In screen 9001 ---> 9001 is maintained as next screen
In screen 9002 ---> 9002 is maintained as next screen
I have called screen 9001 in PAI of screen 9000.
I have called screen 9002 in PAI of screen 9001.
Still when I use LEAVE TO SCREEN 0, it navigates directly from screen 9002 to screen 9000.
Am I missing something which needs to be done?
Regards,
Joseph M
01-27-2011 11:05 AM
Dranzer,
You have to maintain like:
In screen 9000 ---> 9001 is maintained as next screen
In screen 9001 ---> 9002 is maintained as next screen
In screen 9002 ---> 9001 is maintained as next screen
Then, you can use LEAVE SCREEN to navigate to the others screens...
Like above, we have defined the screen 9001 as next screen of 9002 screen, so if you use LEAVE SCREEN, you will be redirected to the screen 9001.
João Henrique
01-27-2011 11:40 AM
Hi ,
You have to give the screens flow like below:
In screen 9000 ---> 9001 should be maintained as next screen(9001 is normal screen)
In screen 9001 ---> 9002 should be maintained as next screen(9002 is Modal dialog box)
In screen 9002 ---> 9002 should be maintained as next screen
Now if you call screen 9002 from 9001, you will go to screen 9002 and from there u will back to 9001.
Use " SET SCREEN 0" in 9002 screen PAI.
I hope, This willl resolve your issue.
Regards,
Narasimha
Edited by: narasimharaok on Jan 27, 2011 12:47 PM