11-15-2012 6:12 PM
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
11-15-2012 8:36 PM
Hi Sergio,
You can find the messages in the SM37 transaction.
Regards,
Christian
11-15-2012 8:36 PM
Hi Sergio,
You can find the messages in the SM37 transaction.
Regards,
Christian
11-16-2012 10:36 AM
Hi Christian,
when I open SM37 I can't see any entries in the log (sy-msgid etc.)
Regards,
Sergio
11-16-2012 12:54 PM
11-17-2012 10:48 AM
You've convinced me. Thank you very much. Seemingly something is wrong with my code.
Regards,
Sergio
11-15-2012 9:19 PM
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
11-28-2012 12:07 PM
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
11-28-2012 4:50 PM
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