‎2008 Nov 14 12:03 PM
Moderator message: please use more meaningful subject in future
Hi,
I have implemented one User Exit( Enhancement name: F180A001 ) For FB50.But when i fire any message of type 'E' in this user exit, one pop up comes and when i press 'OK' it throws me out of transaction.I want error message. and it should prompt user again for input.
Regards,
Mayank
Edited by: Matt on Nov 14, 2008 4:25 PM
‎2008 Nov 14 3:37 PM
Hi,
Each message has strictly defined behaviour depending on processing block within it is called.
E type message is one of these which it is safe to use in PBO and PAI, (for example input check to your screen fields). On the other hand, when you use it in other processing block (i.e. START-OF-SELECTION) it will leave the trasnaction or at least screen.
In your case therefore it is only possible to use other type message i.e. I which will let you to show the error but will return the control to the program. Though it is an information message it will prompt the message.
Please note, that type W messages are alike in behavior to E messages, thus you can't use them either.
Go to ABAP documentation and read about messages and their behavior in different blocks. There is kind of overview table which explicitly describes this.
Regards
Marcin