Application Development and Automation 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: 
Read only

abort/ fail a program?

Former Member
0 Likes
479

hi all,

maybe the subject is confusing, sorry about that.

i have different process chains run each day to load data into one cube (Mon, Tue, Wed, Thu, Fri, Sat, Sun). Now we are going to add a remote chain into Mon's. Before the remote chain runs, we want to check if Sat and Sun process chains finish successfully.

Adding the ABAP code to the start routine might be one option, but we do not want to change the current start routine cause it has run without any issue for a long time.

I would like to add a program to the remote chain after the start process to check. Can anyone tell what ABAP code i should use to fail a program in the process chain? (abort <>0? sy-subrc <>0? ......)

Thanks a lot!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
430

Before that i need carification..

How we can know ..whether the Sunday's process has been completed or not..?

2 REPLIES 2
Read only

Former Member
0 Likes
431

Before that i need carification..

How we can know ..whether the Sunday's process has been completed or not..?

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
430

If you want to abort a program you can do so with an ABORT message.



report zrich_0001.

parameters: p_check.

start-of-selection.

message a001(00) with 'Program Aborted'.

do 10 times.
 write:/ sy-index.
enddo.

Regards,

Rich Heilman