Application Development 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: 

BATCH JOB GETTING FAILED DUE TO WARNING MESSAGE

Former Member
0 Kudos

Hi,

Our background job is getting failed if we are having warning meesage , why it is happening , could any one provide inputs .

In bacground it's considering Warning message as Error message .

3 REPLIES 3

former_member223537
Active Contributor
0 Kudos

Hi Garima,

CHange the code as follows:

if sy-batch = 'X'.

Message 'Error updating data !' type 'I'.

else.

Message 'Error updating data !' type 'W'.

endif.

i..e When executed in bckground display INFORMATION Message & in Foreground display WARNING message.

Best regards,

Prashant

Former Member
0 Kudos

Hi,

I think you are not provided the sufficient data for Batch job execution.

Thanks & Regards,

Satish.

varma_narayana
Active Contributor
0 Kudos

Hi Garima..

In Backgroumd processing Warning message is treated like Error Message bcoz the Processing cannot continue unless the ENTER key is pressed.

So it is better if u give Information message (Type I) instead of Warning, in case of a Z program.

<b>reward if Helpful.</b>