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

Batch Job

Former Member
0 Likes
1,182

Pls. let mek know that How to handle the error messages in batch jobs?

thanq

Message was edited by:

Srinivas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,159

Hi Srikhar,

Changing Information message will solve your problem. But just check with functional guy if they are ok with Information message as after this the processing will not stop so just confirm if it is ok fnctionally.

Regards,

Atish

12 REPLIES 12
Read only

naimesh_patel
Active Contributor
0 Likes
1,159

In your *_DOCMENT_PREPARE, do like this to avoid the error messages in the batch job.

if sy-batch is initial.
* give message error.
else.
* give  message status
endif.

Regards,

Naimesh Patel

Read only

0 Likes
1,159

thanq,

Sorry, its MV50AFZ1 i.e. Delivery uuser exit.

R U sure, bcoz, am not comfortable with this Functional guy!!

thanq.

Read only

0 Likes
1,159

thanq,

i discuseed with functional guy, his requirement is like,

1 - ONLINE, shuld b ERROR type, so that, NOT allowing to SAVE delivery

2- BATCH JOB - the error message shuld go into ERROR LOG and the the batch job shuld continue......

so, my coleague, told me the following idea,

CALL FM 'FORMAT_ERROR'

so, does it works?

Read only

Former Member
0 Likes
1,159

Hi,

You could change to an info message, or even have two messages based on system field SY-BATCH. If SY-BATCH is 'X' issue and info message, otherwise an error.

Regards,

Nick

Read only

Former Member
0 Likes
1,160

Hi Srikhar,

Changing Information message will solve your problem. But just check with functional guy if they are ok with Information message as after this the processing will not stop so just confirm if it is ok fnctionally.

Regards,

Atish

Read only

0 Likes
1,159

thanq,

yes, I understood ur expalnantion .otherwise Can I change by using statemnts, like

DISPLAY LIKE, if so,

1-can u pls, extend this statement.

2- explain how it works? i mean, weather process goes? even though error type!!

thanq

Message was edited by:

Srikhar

Read only

0 Likes
1,159

Hi Srikhar,

Using DISPLAY LIKE will not solve your problem as the name itself suggest it is just the DISPLAY so function logic will be affected.

Regards,

Atish

Read only

0 Likes
1,159

thanq,

i discuseed with functional guy, his requirement is like,

1 - ONLINE, shuld b ERROR type, so that, NOT allowing to SAVE delivery

2- BATCH JOB - the error message shuld go into ERROR LOG and the the batch job shuld continue......

so, my coleague, told me the following idea,

CALL FM 'FORMAT_ERROR'

so, does it works?

Read only

0 Likes
1,159

I am not in front of the system so can't look at FM. Is it a FORMAT_ERROR or FORMAT_MESSAGE?

I don't think FORMAT_MESSAGE will help you here.

May be you need some other solution here.

Regards,

Atish

Read only

0 Likes
1,159

sorry, its FORMAT_MESSAGE

so, do u think, it send the error message to error log, and contines the batch job

Read only

0 Likes
1,159

Hi Srikhar,

This FM just get the text of message. It will not help in this case.

Not able to tell as what may be the best solution. Check for others answers..may be open new thread with this specific query.

Regards,

Atish

Read only

0 Likes
1,159

ok, opening a new thread