2005 Apr 22 2:30 PM
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
2005 Apr 22 2:57 PM
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
2005 Apr 22 2:57 PM
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