2011 Mar 18 3:07 PM
Hi,
my requirement is to create a Z program that will be a step in an existing job and i need to display all messages in SM37(in the job log)...can anyone help?
Thanx
2011 Mar 18 3:16 PM
Hi,
all the messagges in your Z-program ( i.e message i001(ZMESSAGE_CLASS) ) are automatically wrote in the log when the Z-program is executed in background.
F.
2011 Mar 18 3:20 PM
Hi,
All write statements in your program when run in the background will be written to your spool. If these need to be sent via mail use the option SPOOL RECIPIENTS by double clicking the job.
Thanks,
Vikram.M
2013 Apr 09 2:59 PM
Use
below FM to update job log (SM37)
pv_on_immediately = 'X'.
CALL FUNCTION 'PROGRESS_INDICATOR'
EXPORTING
i_text = pv_logtext " Message or selection text you want to display
i_output_immediately = pv_on_immediately.
commit work.
* " If you don't use Commit Work - the message will be
displayed in log when Job is ACTIVE or Running
Shri Kendre