• Looping a table while batches enabled

    Hi, I want to loop through all my not-registered invoices. What I do (in general) is: dynamic obj = pvx.NewObject("AP_ManualCheck_bus", oSession); obj.nMoveFirst(); //To get to the first record //Rest of code The problem is that I have…
  • I am trying to populate a UDF with the Gross Margin by line.

    I have created a script, and it does not seem to work. Do I put it under column validation, or some other mode. Here is the script. Retval=0 rExtcost rExtamount=0 rQtyship=0 rUnitcost=0 rLineGM=0 Set oLines = oBusObj.AsObject(oBusObj.Lines) oLines…
  • MoveFirst, MoveNext generate errors; EOF always False

    Hi All, Please advise - seeing this with our customer - live database and ABC sample database throw the following exceptions while navigating through line items distribution: MoveFirst: <Error: 0 in Method MOVEFIRST> MoveNext: <Error: 0 in Method…
  • Loop though Sales Order Tier Distribution???

    I am trying to look through the records in the following business object with the code below. However it is failing at the MoveFirst call. This same logic has worked for other files IM_ItemCost, AR_Customer... is there an issue with this object or…