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: 

Change ABAP Program return code

Former Member
0 Kudos
291

Dear ABAP Gurus,

I need to change internal return(message) code inside APAP program (report).

Program starts as the first program in a scheduled job with several programs in, and we want to have the following programs do not start in some cases which are evaluated in the first program. Normally program ends will internal return (message) code 0000. I need to change this return code.

Thank you very much,

Svetlana

1 ACCEPTED SOLUTION

Former Member
0 Kudos
108

Hi Svetlana,

Can I suggest a solution that is closer to standard?

You could schedule your job with only the first program due to run. If it runs sucessfully, it will programatically submit a new job with the next abap program to run, and if not, it write a log (spool, or messages).

How does that sound?

If your first program is a standard program and you don't wish to modify it, you could schedule your job with the standard program first, followed by a custom program that could determine the sucess of the first (by checking database entries, or by reading the spool of the first program, etc.) and then it would submit the subsequent jobs (or not).

Hope that helps.

Brad

1 REPLY 1

Former Member
0 Kudos
109

Hi Svetlana,

Can I suggest a solution that is closer to standard?

You could schedule your job with only the first program due to run. If it runs sucessfully, it will programatically submit a new job with the next abap program to run, and if not, it write a log (spool, or messages).

How does that sound?

If your first program is a standard program and you don't wish to modify it, you could schedule your job with the standard program first, followed by a custom program that could determine the sucess of the first (by checking database entries, or by reading the spool of the first program, etc.) and then it would submit the subsequent jobs (or not).

Hope that helps.

Brad