I want to store 6 line items in the UDT from this lines tab. But it is unable to get the values. I modified the code to If ItemType 0 then ItemCode = 0 retVal = oItem.Find(itemCode) retVal = oSO_SalesOrderDetail.GetValue("ExtensionAmt$", amount) retVal = myUDT.SetValue("UDF_AMOUNT$",amount) retVal = oSO_SalesOrderDetail.GetValue("QuantityOrdered$",quantity) retVal = myUDT.SetValue("UDF_QUANTITY$",quantity) retVal = oSO_SalesOrderDetail.GetValue("ItemCode$",item)
↧