Hi All,
I am trying to add a new Item through DI-API in SAP B1 9.0
The Item is getting added, but Packaging type in Purchase/Sales Tab of Item Masters Data is not showing any value.
My code is:
Dim oDoc As SAPbobsCOM.Items = oCompany.GetBusinessObject(iObjType)
oDoc.ItemCode = "A000001"
oDoc.PurchasePackagingUnit = "Container"
oDoc.PurchaseQtyPerPackUnit = 2
oDoc.Add()
I observed that we need to set a Default Package type in 'Purchasing UoM and Packages types' for the Item.
Can anyone provide me with DIAPI coding for setting default Package type which will affect PkgCodeDft column of ITM12?