07-22-2011 6:44 AM
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.
07-22-2011 6:59 AM
07-22-2011 6:59 AM
07-22-2011 8:29 AM
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...
07-22-2011 8:42 AM
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
07-22-2011 8:45 AM
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 .
07-22-2011 8:49 AM
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.
07-22-2011 9:12 AM
to contro it
you need to write the following message
message 'write your message here' type 'E'.