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: 

Status messages in submitted jobs

Former Member
0 Kudos

I use type S messages in programs so that the content appears in the batch job log.

When I run the program with a submit and return scheme, the messages in the second program aren't captured.

Does anyone know a work-around for this?

4 REPLIES 4

Former Member
0 Kudos

Never mind. I found the answer

0 Kudos

Hallo Ed,

could you probably post your solution as we have a very similar case?

Many regards

Martin

0 Kudos

Sorry for the delay in getting back to you.

Just put a type 'S' message in your code.

If you want to restrict it to just batch jobs, put the if statement around it.

The ZSTD is can be any message class on your system. It could also be a stock SAP message.


if sy-batch = 'X'. 
  MESSAGE s001(zstd) WITH 'My Log Message'.
endif. 

0 Kudos

Hallo Ed,

thank you very much...

Regards, Martin