on 09-18-2018 12:59 PM
MESSAGE TYPE 'I'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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. 🙂
I know this question is a little bit old, but for others who search for the same solution:
MESSAGE s666(rspc) WITH 'Your message for RSPC log'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use a WRITE statement in your ABAP program for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
I don't have an answer to your question, but would like to discuss in detail to see if it leads to some conclusion.
As far as I know, there is no way to view the log of the entire process chain (other than SLG1). You can see the log of individual process (variant) like in your image. I have never seen anybody writing to the log of another program. In your example, you are asking to insert a message within the log of the start process of the PC. I don't think that is possible.
It is possible to display the log of entire process chain if it is a local chain within a meta. Each of those messages already indicate that the step (process) is successful. If you still want to insert your own custom message there, it _may be_ possible by writing another ABAP program, but I haven't tried or tested that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.