I use a BPM for the Approval Needed and a BAM for the Approved notification. I just do a send alert on the ApprovedBy field and set the BAM to call an Alert prog like the following. You can string in addresses or hard code like I did on this one.
{ud/GlbAlert.i &TableName = "POHeader"}
DEFINE VARIABLE NewEmailBody AS CHARACTER NO-UNDO.
FIND Vendor WHERE (Vendor.Company = POHeader.Company) AND
(Vendor.VendorNum = POHeader.VendorNum) NO-LOCK.
FIND PurAgent WHERE (PurAgent.Company = POHeader.Company) AND
(PurAgent.BuyerId = POHeader.BuyerID) NO-LOCK.
/* Don't send email if PO is closed */
If NOT (POHeader.OpenOrder) THEN DO:
RETURN "CANCEL SEND":U.
END.
If (POHeader.Approve) = True AND
(POHeader.ApprovalStatus = "A") AND
(POHeader.Approvedby) <> '' THEN DO:
/*ASSIGN Email-To = STRING(PurAgent.EMailAddress).*/
ASSIGN Email-To = "person@...".
Assign Email-Subject = "Purchase Order #" + STRING (POHeader.PONum)+ " is approved: "
/* Create the new body of the email */
NewEmailBody = "~nOrder Number: " + STRING(POHeader.PONum)
+ "~n~nSupplier: " + STRING(Vendor.Name)
+ "~n~nOrder Date: " + STRING(POHeader.OrderDate)
+ "~n~nEntry Person: " + STRING(POHeader.EntryPerson)
+ "~n~nApproved Value: " + STRING(POHeader.ApprovedAmount).
/* Print Email Body */
ASSIGN Email-Text = NewEmailBody.
END
{ud/GlbAlert.i &TableName = "POHeader"}
DEFINE VARIABLE NewEmailBody AS CHARACTER NO-UNDO.
FIND Vendor WHERE (Vendor.Company = POHeader.Company) AND
(Vendor.VendorNum = POHeader.VendorNum) NO-LOCK.
FIND PurAgent WHERE (PurAgent.Company = POHeader.Company) AND
(PurAgent.BuyerId = POHeader.BuyerID) NO-LOCK.
/* Don't send email if PO is closed */
If NOT (POHeader.OpenOrder) THEN DO:
RETURN "CANCEL SEND":U.
END.
If (POHeader.Approve) = True AND
(POHeader.ApprovalStatus = "A") AND
(POHeader.Approvedby) <> '' THEN DO:
/*ASSIGN Email-To = STRING(PurAgent.EMailAddress).*/
ASSIGN Email-To = "person@...".
Assign Email-Subject = "Purchase Order #" + STRING (POHeader.PONum)+ " is approved: "
/* Create the new body of the email */
NewEmailBody = "~nOrder Number: " + STRING(POHeader.PONum)
+ "~n~nSupplier: " + STRING(Vendor.Name)
+ "~n~nOrder Date: " + STRING(POHeader.OrderDate)
+ "~n~nEntry Person: " + STRING(POHeader.EntryPerson)
+ "~n~nApproved Value: " + STRING(POHeader.ApprovedAmount).
/* Print Email Body */
ASSIGN Email-Text = NewEmailBody.
END
--- In vantage@yahoogroups.com, "danielj56" <james.daniel@...> wrote:
>
> What I found is that the BPM sends the po approval to the production manager and if it is over her limit it sends her an email. what I need it to do is send it on to the accounting manager for approval and then send the confirmation back to the user and the production manager.
>
> --- In vantage@yahoogroups.com, JAMES DANIEL <james.daniel@> wrote:
> >
> > it's in a bpm.
> >
> > ----- Original Message -----
> > From: "Jose Gomez" <jose@>
> > To: vantage@yahoogroups.com
> > Sent: Friday, June 10, 2011 8:50:00 AM
> > Subject: Re: [Vantage] PO approvals
> >
> > How are you sending the email? GA? BPM? if its a BPM just put a check on
> > there for it, GA you may be able to do the same although it would
> > be trickier.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *checkout my new blog <http://www.usdoingstuff.com> *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Thu, Jun 9, 2011 at 5:55 PM, danielj56 <james.daniel@>wrote:
> >
> > >
> > >
> > > in 8.03.408B we have po approval sending an email to the manager if over
> > > the buyers limit. is there a way to cascade this if say the amount is over
> > > the managers limit. right now they have to remember to forward the email....
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
>