Showing results for 
Search instead for 
Did you mean: 

Error creating item using DIAPI

Former Member
0 Kudos


I am trying to create an item in item master using DIAPI.

I get the following error.

[OITM.BVolunit],'The connected value '0' was not found in table Length Units

It looks like that when i dont pass any value or 0 as value for item Volume in Purchasing Data tab, this error comes up.

Does that mean that i cannot leave this fied empty or pass 0 as value for it?



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Satish,

I create an item with only the following parameters and it works. The Length Unit is not required. I guess it depends on what other variables you populate that is dependant on the Length. Post your code so we can see which values you enter.

Dim oItem As SAPbobsCOM.Items
        oitem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
        oItem.ItemCode = "Z1000"
        oItem.ItemName = "ZZZZZ"
        If oItem.Add <> 0 Then
        End If


Answers (0)