Application Development and Automation 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: 
Read only

Error message in session

Former Member
0 Likes
642

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.

3 REPLIES 3
Read only

Former Member
0 Likes
528

if it is a background job, it should get recorded in Job Log & seen in transaction SM37

is session seen in SHDB transaction ?

Read only

Former Member
0 Likes
528

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........

Read only

Former Member
0 Likes
528

If you get it in foreground, you should also get it in background.

Thanks,

Regards,

Mohaiyuddin