‎2009 Jul 07 7:23 AM
Hi,
I designed two screens........For screen 100 I placed one parameter where I am giving material num.
Based on this num..populating data to another screen 200.
while using set screen command at PAI of 100 ..... I am unable to go 200.
It works fine for call screen 200.... and leave to screen 200 commands.
But for command set screen 200 nothing is happening....Can anybody give the solution.......
Regards,
Naveen M.
‎2009 Jul 07 7:57 AM
Hello Navin,
SET SCREEN is used to simply specifies the next screen. Control branches to this next screen as soon as the current screen has been processed. Return from next screen to current screen is not automatic. If u want to branch to the next screen without finishing the current one, use LEAVE SCREEN.
With CALL SCREEN, the current calling is suspended, and a next screen is called. The called screen can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0.
‎2009 Jul 07 8:17 AM
hi,
normally to go other screen we use
CALL SCREEN - when we do back,it returns to main screen.
LEAVE To SCREEN - when we do back,it does not returns to main screen.
Now reg. Set Screen.
SET SCREEN 200.
*******we write some code which needs to get executed now.
LEAVE SCREEN.
now when it encounters leave screen,it leaves the screen.
Regards
Sajid
‎2009 Jul 07 8:17 AM
hi,
normally to go other screen we use
CALL SCREEN - when we do back,it returns to main screen.
LEAVE To SCREEN - when we do back,it does not returns to main screen.
Now reg. Set Screen.
SET SCREEN 200.
*******we write some code which needs to get executed now.
LEAVE SCREEN.
now when it encounters leave screen,it leaves the screen.
Regards
Sajid
‎2009 Jul 07 9:16 AM
Hi,
With CALL SCREEN, we can go to main screen automatically from the current screen, but With SET SCREEN we need to write some code i.e. we can go to main screen manually.
hope it is clear.
‎2009 Jul 07 11:04 AM
Hi,
SET SCREEN results in the system to temporarily ignores the value of the NEXT SCREEN attribute and uses the value specified instead.The current screen PAI processing is not terminated.
LEAVE SCREEN makes system to immediately terminates the current screen's PAI event and goes to the PBO event of the screen specified in the NEXT SCREEN attribute
LEAVE TO SCREEN results in the system terminates the current screen's PAI event and immediately goes to the PBO event of the screen specified in the statement.
CALL SCREEN temporari;y suspendes the current screen's PAI processing and immediately goes to the
PBO event of the called screen.When control returns back to the calling screen,its PAI will resume.
Hope this might help you out.
Pooja