Why is this BPM not working?Please Help :-)

You are missing a "for each" or "find first" for ttCallContextBPMData



For each ttCallContextBPMData:

assign ttCallContextBpmData.number01= partuom.NetVolume.

assign ttCallContextBpmData.number02 = partuom.NetVolume *
ttpodetail.XOrderQty.

end.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Anitha
Sent: Friday, May 20, 2011 9:28 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Why is this BPM not working?Please Help :-)





Hi All,
This BPM doesn't seemed to work.Can anyone explain why.

Method COde:PO.Update (in post processing)

for each ttpodetail where no-lock.
find part where part.company = ttpodetail.company and
part.partnum = ttpodetail.partnum no-lock.
If available part then do.
find partuom where partuom.company = ttpodetail.company and
partuom.partnum = ttpodetail.partnum no-lock.


assign ttCallContextBpmData.number01= partuom.NetVolume.
assign ttCallContextBpmData.number02 = partuom.NetVolume *
ttpodetail.XOrderQty.

end.

end.












Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


[Non-text portions of this message have been removed]
Hi All,
This BPM doesn't seemed to work.Can anyone explain why.

Method COde:PO.Update (in post processing)

for each ttpodetail where no-lock.
find part where part.company = ttpodetail.company and
part.partnum = ttpodetail.partnum no-lock.
If available part then do.
find partuom where partuom.company = ttpodetail.company and
partuom.partnum = ttpodetail.partnum no-lock.


assign ttCallContextBpmData.number01= partuom.NetVolume.
assign ttCallContextBpmData.number02 = partuom.NetVolume * ttpodetail.XOrderQty.

end.

end.
What is it doing? You are missing an if available partuom then do

*Jose C Gomez*
*Software Engineer*
*
*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/>

*Quis custodiet ipsos custodes?*



On Fri, May 20, 2011 at 9:28 AM, Anitha <anithayedavalli@...> wrote:

>
>
> Hi All,
> This BPM doesn't seemed to work.Can anyone explain why.
>
> Method COde:PO.Update (in post processing)
>
> for each ttpodetail where no-lock.
> find part where part.company = ttpodetail.company and
> part.partnum = ttpodetail.partnum no-lock.
> If available part then do.
> find partuom where partuom.company = ttpodetail.company and
> partuom.partnum = ttpodetail.partnum no-lock.
>
>
> assign ttCallContextBpmData.number01= partuom.NetVolume.
> assign ttCallContextBpmData.number02 = partuom.NetVolume *
> ttpodetail.XOrderQty.
>
> end.
>
> end.
>
>
>


[Non-text portions of this message have been removed]
You may just not be finding any records.

Pop a few messageboxes to make sure you're finding anything.

DEFINE VARIABLE msg AS CHARACTER NO-UNDO.
msg = "message".
{lib/PublishInfoMsg.i &InfoMsg = "msg"}


On Fri, May 20, 2011 at 9:31 AM, Jose Gomez <jose@...> wrote:

> What is it doing? You are missing an if available partuom then do
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *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/>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Fri, May 20, 2011 at 9:28 AM, Anitha <anithayedavalli@...> wrote:
>
> >
> >
> > Hi All,
> > This BPM doesn't seemed to work.Can anyone explain why.
> >
> > Method COde:PO.Update (in post processing)
> >
> > for each ttpodetail where no-lock.
> > find part where part.company = ttpodetail.company and
> > part.partnum = ttpodetail.partnum no-lock.
> > If available part then do.
> > find partuom where partuom.company = ttpodetail.company and
> > partuom.partnum = ttpodetail.partnum no-lock.
> >
> >
> > assign ttCallContextBpmData.number01= partuom.NetVolume.
> > assign ttCallContextBpmData.number02 = partuom.NetVolume *
> > ttpodetail.XOrderQty.
> >
> > end.
> >
> > end.
> >
> >
> >
>
>
> [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
>
>
>
>


[Non-text portions of this message have been removed]