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

Creating Log files after program is executed in background.

Former Member
0 Likes
1,605

Hello experts,

I am creating a program which its aim is to create a flat file and send it over server. The program however is to be executed in the background and after executing the job (in background). A Log file should be created in a specific format.

Can someone please tell me how can I create a log file after the program has executed in background.

Thanks,

Shabir

4 REPLIES 4
Read only

Former Member
0 Likes
859

if you run any report in background

use write to display the message it automaticaly create the spool for report

norw u can check it in transaction SP01

Read only

Former Member
0 Likes
859

Use this FM BP_JOBLOG_SHOW

check the function module documentation for more details.

Read only

Former Member
0 Likes
859

Hi,

Modify the program which is to be scheduled in background.

At the end of the background program, build a code using OPEN DATASET... to write the log details to application server.

The reason to build the code at the end of the program is bcz Once the control reaches the LOG WRITING logic, it would mean that the background program has been successfully executed.

Best regards,

Prashant

Read only

Former Member
0 Likes
859

hi,you can use function module BP_JOBLOG_SHOW or BP_JOBLOG_READ to display a job log to a user

also check this link to display a log

http://help.sap.com/saphelp_nw70/helpdata/EN/fa/096ddc543b11d1898e0000e8322d00/content.htm

thanks.