cancel
Showing results for 
Search instead for 
Did you mean: 

Add Item Master Data using Di Api

Former Member
0 Kudos

Hello experts ,

I would like to add with DI Add-on values to the following fields but i cannot know how to defined it.The fields is in the items in the tab purchasing data.

Purchasing UoM Name

Length

Width

Height

Volume

Weight

Please advice.

Kind Regards ,

Ifigeneia Koumbarda

Accepted Solutions (1)

Accepted Solutions (1)

former_member185682
Active Contributor
0 Kudos

Hi Ifigeneia,

A sample:

Items oItem = oCompany.GetBusinessObject(BoObjectTypes.oItems);
if (oItem.GetByKey("A00002"))
{
    oItem.PurchaseUnit = "Purchase UOM";
    oItem.PurchaseUnitLength = 0.6; //length
    oItem.PurchaseUnitWidth = 0.5; //Width
    oItem.PurchaseUnitHeight = 0.2; //Height
    oItem.PurchaseUnitVolume = 0.5; //Volume
    oItem.PurchaseUnitWeight = 1; //Weight


    if (oItem.Update() != 0)
        MessageBox.Show(oCompany.GetLastErrorDescription());
}

Kind Regards,

Diego Lother

Answers (0)