‎2008 Dec 16 4:10 AM
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
‎2008 Dec 16 4:14 AM
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
‎2008 Dec 16 4:14 AM
Use this FM BP_JOBLOG_SHOW
check the function module documentation for more details.
‎2008 Dec 16 4:16 AM
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
‎2008 Dec 16 4:22 AM
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.