Question:
Hi!
I want to add a process type ABAP in my chain. An ABAP process is doing some tests. When the result is e.g. 'X' I want to go on, when the result is 'Y' I want to stop the process chain.
What coding to I have to add to my ABAP to make this happen?
thanks for your help,
Gunter
Answer:
As far as i know, there is no possibilty to make the process chain step dependent on the result of the ABAP... you only have the option "always" when connecting.
Possible workaround : split your chain in 2 parts. LEt the first part end with the ABAP processing step, and in the program trigger an event when the result = 'X'.
Then schedule the 2nd process chain as a meta-chain starting after the event you trigger in chain 1.
Hope this is clear...
T.
Answer:
thanks, but Iīm not sure if this helps. Our problem is: 2 conditions have to be ok, to start a process chain:
1. masterdate have been loaded sucessfully
2. job in R/3 finished, starts an event in BW and then an ABAP checks if this event was started in a certain period of time. if not, we donīt want to go on with the next chain.
How could this be done within process chains?!
thanks,
gunter
Answer:
masterdata succesfull load triggers event1
abap ok trtiggers event2
event collector catch event1 and event2 and trigger event3 that start the process chain.
hope this will help you
thuky
Answer:
Create AND condition for the EVENT1 and EVENT 2 and only on the sucessfull completion of 2 EVENTS start the EVENT 3
Proces Chain Sketch
EVENT 1(cond1-R/3 Master Data) EVENT 2(Condn 2-ABAP)
AND(Sucessfull event 1& event 2)
EVENT 3
Hope m clear
_________________
Chetan
@ CP...
Answer:
thanks to all for their comments,
BUT: how can an ABAP process type send ok or not ok? what to I have to add to the coding? Thatīs the main problem!
Gunter
Answer:
Use Chetan and THUKY's scenario.
And trigger the event in your ABAP by using
IF check = ok.
CALL FUNCTION 'BP_EVENT_RAISE'.
...
ELSE.
* do nothing or send a mail if you will
ENDIF.
_________________
Rasmus ;o)
- One small step for man, one giant leap for mankind