‎2008 Nov 24 7:47 AM
Hello ppl,
I have created a report program which will always be scheduled as a background job.
It downloads the data to application server everytime it is executed.
I want to know how should I display to the user any error which may occur while execution eg. file could not be opened or data not found, etc.
Can the statement 'message e101...' be used for background also?
If so, how will the message be displayed.
Please help.
Thanks.
‎2008 Nov 24 8:03 AM
Hi David,
The error message will be displayed in the job log in transaction SM37.
regards,
Advait
‎2008 Nov 24 8:04 AM
Better ,
U collect all the messages into 1 internal table. In turn send them as a mail attachment.
‎2008 Nov 24 8:09 AM
Hi,
You will be able to store the error message in a table as the error log where you can maintain the date also.From there if an error occurs then you can said a mail to the user mailbox.
Check the date with the sy-datum and then send the error message to the use as there is no user by seeing the previous days error log.
Regards,
Midhun Abraham
‎2008 Nov 24 8:11 AM
Hi
If reords not found or report is not giving any result you can always send the report output to user in
mail so that user can get the data or error message in the mail.
You have capture and send the error message to the user in the mail.
For example:
*If records not found
*get the error message pass it as a text to email function module and
send it.
you can use the FM CALL FUNCTION 'SO_OBJECT_SEND'
If some problem happens while the execution of your report then your basis team will inform you about that error.
Regards
Neha
‎2008 Nov 24 9:05 PM
Hello,
Or, you can code your program to write out whatever messages you want. This will create a spool when run in batch mode. Have your production scheduler set up a spool recipient list and indicate which users should receive the spool via email. The report will run, generate the spool, and the system will email it to the users defined on the distribution list.
K-