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: 

How to stay back in same screen based some condition

Former Member
0 Kudos

Hi Experts,

I have requirement for Enhancment of IW32.

I,e, In first screen, only one field for input for ordernumber needs to be validated for

some condition . if the condition is met it will navigate to next screen else has to stay back in same screen.

It means should not allow inside of the tcode.

I have found one customer exit which is triggering in both PBO and PAI. So whatever condition i give to stay back in

same screen it is taking inifinite loop on that and going for dump. I am not able to control .

Can you please help for that how can I do that ?

Thakn you in advance.

1 ACCEPTED SOLUTION

lijisusan_mathews
Active Contributor
0 Kudos

if the condition is not met display a message t type 'E'

6 REPLIES 6

lijisusan_mathews
Active Contributor
0 Kudos

if the condition is not met display a message t type 'E'

0 Kudos

Hi Suzie,

Thank you very much for your quick help.

When the condition is not met it is triggering error message and coming out of that tcode . But i need to stay

in that first screen only. Is it not possible.

Thanks...

0 Kudos

Hi.,

Find an exit at call screen.,

if condition is met call screen else display messge.,

else., as you display error message it is coming out of tcode.,

try like this.,

message 'enter required field' type 'S' display like 'E'.

but this wont stop processing i think.,

use stop too..

Thanks & regards,

Kiran

0 Kudos

Try writing teh code in the PAI.. preferably.. If you can find an enhancement spot or so in the module of thaT PARTICULAR FIELD ON INPUT. I mean. Suppose your field for validation is FXXXX. then the PAI of the screen will have some line like FIELD FXXXX module modXXXX on input /on request . Or there will be a line Module modxxx on chain input/request.

If in any of these modules you can trigger teh error with type 'E'. it should stop at that field .

0 Kudos

message 'enter required field' type 'S' display like 'E'.

Type S will not stop the processing . It is a status message . Even if u use display like.. It wont stop.. Only messages of type 'E' will stop.

koolspy_ultimate
Active Contributor
0 Kudos

to contro it

you need to write the following message


message 'write your message here' type 'E'.