11-05-2007 4:01 PM
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.
11-05-2007 4:09 PM
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.
11-05-2007 4:21 PM
Neimish, I tried your code but it doesnt work. The syntax is correct, however the fields do not show up in the job log.
11-05-2007 4:44 PM
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.
11-05-2007 4:19 PM
11-05-2007 4:53 PM
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?