Dear All,
I am using following code to update the Item Price against a particular Price List. But I am getting the error as
"'I' is not a valid value for property 'UoMType'. The valid values are: 'P' - 'Purchasing', 'S' - 'Sales'"
Dim oItem As SAPbobsCOM.Items = objMain.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
If oItem.GetByKey("A") = True Then
oItem.PriceList.SetCurrentLine(PriceListLineNum)
oItem.PriceList.Price = 10
oItem.Update()
End If
Can you please explain what am I doing wrong ? Am I missing a setting or something else in my code ?
Please help me. Any kind of help would be appreciated.
Thanks & Regards
Ankit Chauhan