Application Development 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: 

within a subscreen LEAVE TO SCREEN

Former Member
0 Kudos

Hi,

I cant say within a subscreen LEAVE TO SCREEN xxx

eg. if a condition is not true

How can I prevent to step forward while the condition is not true in this case

Regards

sas

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

just want to know some information.

how are you checking the condition( is it based on subscreen values ) or based on the main screen.

if it is based on subscreen then you can do those checks at PAI of the screen where you are calling the subscreen.

for second case

you can conditionally call the subscreen.

11 REPLIES 11

sarbajitm
Contributor
0 Kudos

Hi SAS!

Would you please post your question a little bit elaborately?

Thanks & Regards.

Former Member
0 Kudos

use call screen 'xxx' in pai of main screen depending on the condition.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Jansi Dorai please dont reply to have been responded. Moderator note: irrelevant responses removed.

I have read both sides and there is nothing what is related to my question

>Flow logic of a subscreen screen may not contain any dialog modules containing the statements SET >TITLEBAR, SET PF-STATUS, SET SCREEN, LEAVE SCREEN, or LEAVE TO SCREEN. Any of these >statements causes a runtime error. You cannot change the GUI status of a main screen in a >subscreen screen.

This is exactly what I have ment. What can be done in this case ?

Reagrds

sas

Edited by: erdem sas on Mar 10, 2009 12:07 PM

Edited by: erdem sas on Mar 10, 2009 12:18 PM

Edited by: Matt on Mar 10, 2009 1:18 PM - fixed formatting

0 Kudos

go the initial screen

there in module user -command and give leave to screen.

Please let meknow if i have to brief u more

Former Member
0 Kudos

go to initial screen ??????

0 Kudos

Suppose if u have created subscreens for 200 as 201 and 202.

201 has two fields

202 has one field

in 200 pbo call those subscreens also in pai.

then in 200 user command.

the fields which u need in this screen

give leave tos creen 200.

Former Member
0 Kudos

hi ,

you can not call another screen from sub screen...

but u have possiblity to call another screen by using call transaction..

--> create transaction for every individual screen and use call transaction when ever necessary.

Regards,

Prabhudas

former_member188685
Active Contributor
0 Kudos

just want to know some information.

how are you checking the condition( is it based on subscreen values ) or based on the main screen.

if it is based on subscreen then you can do those checks at PAI of the screen where you are calling the subscreen.

for second case

you can conditionally call the subscreen.

Former Member
0 Kudos

Dudla and the others thx for your reply .

I have created a wizard with Transaction SBPT_WB.

it is based on subscreen the checks are at PAI of the subscreen. There isn t a

main screen

Therefore there are only subscreens. A program is also not existing. Thus I cant create

a transaction in order to call it by the trx.

Regards

sas