Hi Forum, How can i update the customer number on a new sales order.i am able to get the customer number but it doesn't write it. Here is the script that i have. tmpValue = "" tmpSalesOrderNo = "" retVal = oBusObj.GetValue("CustomerNo$",tmpValue) retVal = oBusobj.GetValue("SalesOrderNo$",tmpSalesOrderNo) IF tmpValue <> "" THEN retVal = oBusObj.SetValue("CustomerNo$",tmpValue) msgbox(tmpValue &" Customer") Set oSalesSvc = oSession.AsObject(oSession.GetObject("SO_SalesOrder_bus")) retVal = oSalesSvc.ReadRec(tmpSalesOrderNo) msgbox (retVal & " Read Order: " & tmpSalesOrderNo) retVal = oBusObj.SetValue("CustomerNo$",tmpValue) retVal = oBusObj.Write() msgbox (retVal & " Write Record") End If Any suggestions?.. Regards, Manuel Roman
↧