‎2007 Nov 14 2:30 PM
Pls. let mek know that How to handle the error messages in batch jobs?
thanq
Message was edited by:
Srinivas
‎2007 Nov 14 2:39 PM
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
‎2007 Nov 14 2:33 PM
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
‎2007 Nov 14 2:38 PM
thanq,
Sorry, its MV50AFZ1 i.e. Delivery uuser exit.
R U sure, bcoz, am not comfortable with this Functional guy!!
thanq.
‎2007 Nov 14 3:47 PM
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?
‎2007 Nov 14 2:34 PM
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
‎2007 Nov 14 2:39 PM
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
‎2007 Nov 14 2:42 PM
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
‎2007 Nov 14 2:49 PM
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
‎2007 Nov 14 3:46 PM
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?
‎2007 Nov 14 3:49 PM
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
‎2007 Nov 14 3:55 PM
sorry, its FORMAT_MESSAGE
so, do u think, it send the error message to error log, and contines the batch job
‎2007 Nov 14 3:58 PM
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
‎2007 Nov 14 4:01 PM