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

Background job Dump

Former Member
0 Likes
715

Hi Experts,

I am fresher and I have been given with an object which throws dump in backgroud execution when I raise error message in foreground. What would I do for handling errors in background. Should I remove Error message? or what should I do?

Thanks and regards.

Venkat, IBM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
512

write this coding ..

if sy-batch = 'X'. <-- if the program is executed in background.

write : 'Error message'.

else. <-- if the program is executed in fore ground

message E000 with 'Error message'.

endif.

Hi Experts,

I am fresher and I have been given with an object which throws dump in backgroud execution when I raise error message in foreground. What would I do for handling errors in background. Should I remove Error message? or what should I do?

Thanks and regards.

Venkat, IBM

2 REPLIES 2
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
512

How you are rasing error messages?

Read only

Former Member
0 Likes
513

write this coding ..

if sy-batch = 'X'. <-- if the program is executed in background.

write : 'Error message'.

else. <-- if the program is executed in fore ground

message E000 with 'Error message'.

endif.