‎2009 Apr 22 10:29 PM
Hi All,
I have implemented one implicit enhancement in AC_DOCUMENT_DIRECT_INPUT in RFBIBL01 program. My requirment is if some validation fails i need to raise an error message. and it should go into the session. so when my validation fails error message is triggering but its not going into the session.when i executed the session in foreground i am getting the error in log but when i executed in background i am not getting my validation error even thought validation failed.
Could any body tell me how we can do that.
i have raised the message in Enhancement as below.
MESSAGE e059(zap)." WITH 'Invoice Already Exists'(051). and i am writing this message in my custom function module.which i called in my enhancement.
Thanks.
‎2009 Apr 27 9:38 AM
if it is a background job, it should get recorded in Job Log & seen in transaction SM37
is session seen in SHDB transaction ?
‎2009 Apr 27 9:51 AM
Hello,
Check the sy-batch.
if sy-batch eq 'X' i.e we are checking in background
MESSAGE e059(zap)." WITH 'Invoice Already Exists'(051)
else.
MESSAGE e059(zap)." WITH 'Invoice Already Exists'(051).
endif.
Try this way........
‎2009 Apr 27 10:01 AM
If you get it in foreground, you should also get it in background.
Thanks,
Regards,
Mohaiyuddin