Thanks Jose, But still no luck. Any other suggestions?
--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> You are on 8 there is no ttcallcontextdata, also your .P is in a slightly
> different location since you are in 8 it should be RUN bo/SalesOrder.p
>
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Fri, Jun 7, 2013 at 1:42 PM, sanjay219@... <sanjay219@...>wrote:
>
> > **
> >
> >
> > Jose, When i tried your code, its not recognizing ttcallcontectbpmdata.
> > Its giving an error unambiguous table.
> > And i tried the following code:
> >
> >
> > DEFINE VARIABLE hSalesOrder AS HANDLE NO-UNDO.
> > DEFINE VARIABLE miscCode AS CHARACTER NO-UNDO.
> > DEFINE VARIABLE icustnum as integer no-undo.
> > DEFINE VARIABLE iordernum as integer no-undo.
> >
> > FOR EACH ttorderdtl where ttorderdtl.RowMod='A' or
> > ttorderdtl.rowmod='U',first ttorderhed where
> > ttorderhed.ordernum=ttorderdtl.OrderNum and
> > ttorderhed.Company=ttorderdtl.Company and ttorderhed.TermsCode='CC'.
> >
> > RUN bo/SalesOrder/SalesOrder.p PERSISTENT SET hSalesOrder.
> >
> > FOR EACH Customer WHERE Customer.Company=CUR-COMP AND
> > Customer.CustNum=iCustNum:
> > Assign miscCode = Customer.ShortChar01.
> > END.
> > RUN GetByID IN hSalesOrder(INPUT iOrderNum,
> > {&output_dataset_SalesOrderDataSet}).
> > RUN GetNewOHOrderMsc in
> > hSalesOrder({&input-output_dataset_SalesOrderDataSet}, iOrderNum,0).
> > FOR EACH ttOHOrderMsc WHERE ttOHOrderMsc.RowMod='A':
> > Assign ttOHOrderMsc.MiscCode='FRGT'.
> >
> > END.
> >
> > RUN ChangeMiscCode in
> > hSalesOrder({&input-output_dataset_SalesOrderDataSet},INPUT
> > 'OHOrderMsc').
> > FOR EACH ttOHOrderMsc WHERE ttOHOrderMsc.RowMod='A':
> > ttOHOrderMsc.FreqCode='E'.
> > ttohordermsc.DocMiscAmt= ttohordermsc.DocMiscAmt + 10.
> >
> > END.
> > RUN Update in hSalesOrder({&input-output_dataset_SalesOrderDataSet}).
> >
> > RUN GetByID IN hSalesOrder(INPUT iOrderNum,
> > {&output_dataset_SalesOrderDataSet}).
> >
> > DELETE OBJECT hSalesOrder.
> >
> > end.
> >
> > Nothing is happening!! please help.
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>