Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2129

Set default Purchase/Sales UoM Packages type through DI-API for Items

$
0
0

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?


Viewing all articles
Browse latest Browse all 2129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>