Lauren,
 This came from another user but:
1.) Create a Pre-processing BPM on Receipt.GetPOInfo
2.) For the 'Condition' add the following custom source code
Â
/*Add source code that should be executed before the designed conditions here*/
{&CALL_DESIGNED_CONDITIONS}
/*Add source code that should be executed after the designed conditions here*/
FIND FIRST ttRcvHead WHERE ttRcvHead.RowMod = "A" NO-LOCK NO-ERROR.
FIND FIRST POHeader where POHeader.poNum = poNum NO-LOCK NO-ERROR.
/*IF POHeader.ApprovalStatus <> "A" THEN*/
Case POHeader.ApprovalStatus:
WHEN "U" THEN
{Lib/PublishEx.i &ExMsg = "'PO has not been submitted for approval. Please submit for approval before receiving PO.'"}
WHEN "P" THEN
{Lib/PublishEx.i &ExMsg = "'PO has not been approved. Please approve PO before receiving.'"}
WHEN "R" THEN
{Lib/PublishEx.i &ExMsg = "'PO has been rejected. PO cannot be received.'"}
END CASE.
________________________________
From: "Hellings, Lauren" <
lauren.hellings@...>
To: "
vantage@yahoogroups.com" <
vantage@yahoogroups.com>
Sent: Friday, October 26, 2012 4:36 AM
Subject: [Vantage] BPM Help
Â
We are looking to stop receipt transactions for POs where the POHeader.ApprovalStatus <> "A". I am assuming a BPM is the solution, but have not been able to get anything working. I ran a trace log on the receipt process, but have not been able to isolate the correct business object to stop the receipts. It doesn't look like the POHeader table is referenced anywhere directly in these business objects.
Does anyone have something similar to this in place that might be willing to share the solution?
Thank you,
Lauren Hellings
Business Analyst
Office: 281-207-4613
Cell: 832-472-1736
Email: mailto:Lauren.Hellings%40c-p-i.com<mailto:mailto:Lauren.Hellings%40c-p-i.com>
www.c-p-i.com<
http://www.c-p-i.com/>
----------Legal Disclaimer----------
The information contained in this message may be privileged and confidential, and is intended solely for the use of the named addressee. No other person is authorized to access, copy or re-use this message (or any information contained herein). If you are not the intended recipient, please notify us immediately by replying to this message and delete it from your computer.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]