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: 

How to insert a message in Job Log in SM37

Former Member
0 Kudos

Hi All,

when a job is failed i have to insert a new message in job log.

for ex: Job log for job BTCH_RSORAVSH

08.10.2007 01:44:47 Job started 08.10.2007 01:44:47 Logon of user F.TABI1 in client 100 failed

08.10.2007 01:44:48 Job cancelled

now i have to insert my message in third line

08.10.2007 01:44:48 Job failed due to XXX problem.

Please any one let me know whether this can be possible.

Thank you all in advance.

4 REPLIES 4

Former Member
0 Kudos

Hi All,

when a job is failed i have to insert a new message in job log.

for ex: Job log for job BTCH_RSORAVSH

08.10.2007 01:44:47 Job started

08.10.2007 01:44:47 Logon of user F.TABI1 in client 100 failed

08.10.2007 01:44:48 Job cancelled

now i have to insert my message in third line

08.10.2007 01:44:48 Job failed due to XXX problem.

Please any one let me know whether this can be possible.

Thank you all in advance.

Former Member
0 Kudos

Hi,

use message e(xxx) when you encounter any problem. This message text will get automatically captured in job log

raymond_giuseppi
Active Contributor
0 Kudos

Just send an information message :

MESSAGE Innn(XXXXX) WITH &1 &2.

The message will appear in log.

Message with 'E' error or 'A' abort will appear too, but will break job.

Regards

Former Member
0 Kudos

Hi there,

If you insert a message statement within your ABAP code this will apear in the job log.

i.e.

MESSAGE i003(zz) WITH 'Job failed due to XXX problem'.

Regards

Mart

<a href="http://www.sapdev.co.uk">SAP / ABAP Development help and information using ABAP, ABAP OO, BSP, Web dynpro for all SAP modules including FI, HR, BW</a>