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

Report program in background

Former Member
0 Likes
728

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.

5 REPLIES 5
Read only

Former Member
0 Likes
700

Hi David,

The error message will be displayed in the job log in transaction SM37.

regards,

Advait

Read only

Former Member
0 Likes
700

Better ,

U collect all the messages into 1 internal table. In turn send them as a mail attachment.

Read only

Former Member
0 Likes
700

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

Read only

Former Member
0 Likes
700

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

Read only

kathryn_mcgallicher
Active Participant
0 Likes
700

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-