Application Development 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: 

Message in job log

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

     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