I am creating a BPM that is attached to the Method Update for the BO Quote. I want this BPM to run an exception and show the message "Coordinator Required" if there is no Coordinator set under the salespersons.
I have been able to get it to work, but the only time it does not run is if the current added record is set to coordinator, then on the next new record it runs the exception. I have tried to run an ABL code:
Find first ttqsalesrp where ttqsalesrp.QuoteNum = ttquotehed.QuoteNum No-Error.
if available ttQsalesrp then
Find ttqsalesrp where ttqsalesrp.rolecode = "Coord" and ttqsalesrp.RowMod = "" No-Error.
if Not Available ttQsalesrp then
Do:
Stop.
End.
This displays just a generic 4GL stop window with no message on why, and Adding DISPLAY, or MESSAGE does not seem to be working.
I have been able to get it to work, but the only time it does not run is if the current added record is set to coordinator, then on the next new record it runs the exception. I have tried to run an ABL code:
Find first ttqsalesrp where ttqsalesrp.QuoteNum = ttquotehed.QuoteNum No-Error.
if available ttQsalesrp then
Find ttqsalesrp where ttqsalesrp.rolecode = "Coord" and ttqsalesrp.RowMod = "" No-Error.
if Not Available ttQsalesrp then
Do:
Stop.
End.
This displays just a generic 4GL stop window with no message on why, and Adding DISPLAY, or MESSAGE does not seem to be working.