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: 

Is it possible to add field data to SM37 job logs?

Former Member
0 Kudos

I have internal tables that have fields that I want to include in the SM37 job logs when a job abends.

Is it possible to do this?

I know you can put in messages, such as: message 'your message' type 'letter'

I want to include a field of a table in this to show the user what is in the field.

5 REPLIES 5

naimesh_patel
Active Contributor
0 Kudos

Give messages in the loop. it will come in the log of the job.

loop at itab.

message s398(00) with itab-fld1 itab-fld2 itab-fld3.

endloop.

Regards,

Naimesh Patel.

0 Kudos

Neimish, I tried your code but it doesnt work. The syntax is correct, however the fields do not show up in the job log.

0 Kudos

Try issuing a COMMIT WORK soon after your MESSAGE statement (or after the loop).

I am guessing that the program is suffering a short dump before the message data was committed into the job log table.

Former Member
0 Kudos

Like:

MESSAGE s000 WITH 'Info' itab-entry, 'more message'.

Rob

Former Member
0 Kudos

K, I dont need my message to display any pre-determined text. All I want is the info inside of the field to be displayed.

Also, how do you determine what a message id number should be?