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: 

Where can I find the message log?

Former Member
0 Kudos

Hello all,

I've got a batch process which consists of some programs. One program contain following code:

IF sy-subrc <> 0.

     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

So my question is, where can I find this log and read the messages?  I can't find the log.  Please help.

Regards,

Sergio

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sergio,

You can find the messages in the SM37 transaction.

Regards,

Christian

7 REPLIES 7

Former Member
0 Kudos

Hi Sergio,

You can find the messages in the SM37 transaction.

Regards,

Christian

0 Kudos

Hi Christian,

when I open SM37 I can't see any entries in the log (sy-msgid etc.)

Regards,

Sergio

0 Kudos

0 Kudos

You've convinced me. Thank you very much. Seemingly something is wrong with my code.

Regards,

Sergio

former_member192723
Active Participant
0 Kudos

Hello Sergio,

You can find the log of Batch input session in SM35. Select the session which you want to see log and click on log push buttion in application toolbar and double click on the displayed line.

For Background job logs see link below:

http://scn.sap.com/thread/591316

Thanks.

BR,

Shravan

Former Member
0 Kudos

Hello Christian,

I couldn't solve the problem. The messages don't appear in the log. Do you have an idea for the problem? May I see your used code?

Regards,

Sergio

0 Kudos

Hi Sergio,

You can try the sample report below.

REPORT  ztest_job_log.

PARAMETERS: p_user TYPE syuname.

START-OF-SELECTION.

   CALL FUNCTION 'CACS_GET_USER_PARAMETER'

     EXPORTING

       i_uname        = p_user

       i_parid        = 'PARAMTHATDONTEXIST'

     EXCEPTIONS

       no_entry_found = 1

       OTHERS         = 2.

   IF sy-subrc <> 0.

     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

   ENDIF.

Job log

Hope it helps.

Regards,

Christian