Question:
Hi everybody,
is there a "smartly" stop of a process chain with ABAP program?
I'd like to check some db tables and stop the PC if there is a flag = X.
I'd thinked to create an easy run time error like
MOVE 'HELLO' TO A where A is an integer but I try to find a "pretty" way.
Some ideas?
_________________
Sorry for my english!!!!!
Answer:
Hello,
generealy speaking, its is not "smart" to stop a process chain.
Process chains are designed to end its processes completly. Why should you stop it?
It might be loading a target, creating indexes, rolling up, for example - so not a good idea to stop it!
But can you explain better, please?
_________________
SemWave
FI/CO/SEM Consultant
Answer:
Thank you semwave for answer,
this is my scenario:
I've a Process Chain that load order,delivery and bill in 3 branches.
In one of these I've created an ABAP to delay a loading until 02:00 AM.
Subsequently I've another check with ABAP program, here I'd like to check system hour and stop the process chain if
it's > 08:00AM.
bye
_________________
Sorry for my english!!!!!
Answer:
Not discussing the business need, just the technique
1) instead of using a wrong command to create a dump, use a message of type X ; this way the next guy entering this problem will not treat you as a moron AND you may pass a correct error message to the dump
2) why don't you break you process in two chain, and let the abap launch or not the second part of the chain
Ch
Answer:
Hi CHC,
thank you for answer.
1)How can I use a message of type X?Can you explain me an example?
So nobody'll treat me as a moron
2)This is a problem!How can I decide from ABAP Program (without a false dump...) if start one part of chain?
_________________
Sorry for my english!!!!!
Answer:
2)This is a problem!How can I decide from ABAP Program (without a false dump...) if start one part of chain?
Process Chain 1 ends with the ABAP: at the end of ABAP raise an event under the conditions that you want Process Chain 2 to start.
Then schedule Process Chain 2 after this event
More info:
/forums/viewtopic.php?t=107212
/forums/viewtopic.php?t=123590
/forums/viewtopic.php?t=134869