Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BPM ABL Code to show exception

Status
Not open for further replies.

MarcLivi

Technical User
Aug 19, 2010
2
US
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top