Question:
In a proces chain in BW we use an ABAP program.
This program should deliver an error code to indicate something is wrong so we can send an email to the correct person.
In what way can an ABAP program return a code (0, 1 or something to the caller)?
Has anyone code examples of this?
Thanks in advance,
Marco
Answer:
Hi Marco
You have to create a new processtype (or Change the existing ABAP procestype) so it can end successfully/not succesfully. As standard the ABAP proces type does not return a status to the process chain. But if you change the procestype then an error message in the ABAP program will cause the processchain to react.
Regards BWise.
Answer:
Hi Bwise,
we already changed the ABAP procestype to being able to return succesful or unsuccesfull.
In the ABAP we are now trying to make a return code.
Using Message with type E(rror) results in terminating the job. The messages linked to the ABAP program for succesfull and unsuccesfull seem not to be used.
What do you mean by error message? Is this an ABAP function?
Do you have a code example of this?
Marco