cancel
Showing results for 
Search instead for 
Did you mean: 

Write to Process Chain Protocol via SE38 ABAP Program

mschaeufler
Explorer
0 Kudos

Hello folks,

I have an ABAP program that runs in a process chain.

I want to be able to write custom messages to the process chain job log of the respective variant. E.g. "Step 1 successful."

How can this be achieved?

View Entire Topic
raymond_giuseppi
Active Contributor
0 Kudos

MESSAGE TYPE 'I'

mschaeufler
Explorer
0 Kudos

Sometimes the solution is too easy. Like in your case. The message did the job. However the WRITE did not help (as suggested by eugeniy.lancev). Here is the result of the different types:

WRITE 'Step 1 successful.'. "Does nothing
MESSAGE i003 WITH 'Info'. "Writes 'Info' to OC Job Log
MESSAGE w003 WITH 'Warning'. "Writes 'Warning' to OC Job Log
MESSAGE e003 WITH 'Error'. "Ends execution and sets Variant Status to RED. Doesn't actually print 'Error'

Thank you raymond.giuseppi for your good and quick response!

matt
Active Contributor

In background, WRITE will create a spool. (If you look at your job in SM37. you'll see it has generated a spool file, that you can look at). Messages in background though, always write to the job log, which is what you are seeing.

I'd have been able to give that answer if I'd notice that although you wrote "Write to Process Chain Protocol" which I interpreted as the first tag, what you meant was the background protocol. 🙂