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

regarding set screen.

Former Member
0 Likes
627

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.

5 REPLIES 5
Read only

Former Member
0 Likes
597

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.

Read only

Former Member
0 Likes
597

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

Read only

Former Member
0 Likes
597

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

Read only

Former Member
0 Likes
597

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.

Read only

Former Member
0 Likes
597

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