thanks!
--- In vantage@yahoogroups.com, "b_ordway" <cooner_55421@...> wrote:
>
> By default Vantage BPMs will apply to ALL Vantage DBs
> You can set up separate BPM folders and specify them in the PROPATH for the Live and Test Appservers.
>
> You see details on EpicWeb
>
> https://epicweb.epicor.com/ReportServer/Pages/ReportViewer.aspx?/ePortal/ABDetail&rs:Command=Render&rc:Toolbar=true&Card_ID=1288BRK&Answerbook=Clientele+Change+Requests
>
>
>
>
>
> --- In vantage@yahoogroups.com, "chunyu_jim_hou" <yuyu729@> wrote:
> >
> > should be "find last" instead of "find first".
> >
> > I found it doesnt like " if not available ttJobMtl then return.". I put a do: end. instead after "if not available" and also have the 4GL code under base processing instead of Pre-processing, It is actually working now.
> >
> > the new problem now is that the BPM is written in Test DB and it works in both Test and Live DB!...
> >
> >
> >
> >
> > --- In vantage@yahoogroups.com, Bill Jackson <fujijapman@> wrote:
> > >
> > > If you are using a 'find first' for PODetail, how do you know you are getting the most recent record?
> > >
> > >
> > >
> > > ________________________________
> > > From: chunyu_jim_hou <yuyu729@>
> > > To: vantage@yahoogroups.com
> > > Sent: Monday, April 29, 2013 11:59 AM
> > > Subject: [Vantage] Job material with lastest PO Cost. Vantage 8.03.410
> > >
> > >
> > >
> > > ��
> > >
> > > all our parts are set up as non-stock so there is no last cost or average cost in the partcost table for all the parts that's why I am looking for a workaround to get the latest cost.
> > >
> > > I tried to mimic the 4GL codes in user guide to get BPM to change unit cost in job entry to the last PO cost but the code I wrote doesnt work.Here they are:
> > >
> > > find first ttJobMtl where ttJobMtl.RowMod = 'A' or ttJobMtl.RowMod = 'U' no-error.
> > > if not available ttJobMtl then return.
> > > if available ttJobMtl then do:
> > > find first PODetail where PODetail.Company = ttJobMtl.Company and PODetail.PartNum =
> > > ttJobMtl.PartNum no-lock no-error.
> > > if not available PODetail then return.
> > > if available PODetail then do:
> > > ttJobMtl.EstUnitCost = PODetail.UnitCost.
> > > ttJobMtl.Number01 = PODetail.UnitCost.
> > > end.
> > > end.
> > >
> > > any inputs are highly appreciated
> > >
> > > I am on Vantage 8.03.410
> > > Jim
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>