Skip to Content

'I' is not a valid value for property 'UoMType'

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 19, 2013 at 10:30 AM

    Dear All,

    Any comment regarding this problem.

    Thanks & Regards

    Ankit Chauhan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.