Skip to Content
avatar image
Former Member

How to insert a message in Job Log in SM37

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 08, 2007 at 01:08 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 01:13 PM

    Hi,

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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 08, 2007 at 01:13 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 01:14 PM

    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

    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

    Add comment
    10|10000 characters needed characters exceeded