Skip to Content

Update Uom Prices(ITM9) using SDK

Hi,

Does anyone know if it is possible to update UOM prices which is the ITM9 table using the SDK?

We have checked the SDK Helpcentre but it doesn't appear as though there is an Update object for this table, only add,delete and select.

Many Thanks

Add a comment
10|10000 characters needed characters exceeded

  • Hi Ryan Smyth,

    I know this is an old post however have you tried it following way? I have been able to update the UoM Prices using the following DI API code:

    SAPbobsCOM.Items oItems = (SAPbobsCOM.Items)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
    if (oItems.GetByKey("R00001"))
    {
        int a = oItems.PriceList.Count;
        oItems.PriceList.SetCurrentLine(2);
        oItems.PriceList.UoMPrices.SetCurrentLine(1);
        oItems.PriceList.UoMPrices.UoMEntry = 4;
        oItems.PriceList.UoMPrices.Price = 55.68;
        int result = oItems.Update();
    
    
        if (result != 0)
        {
            string str = oCompany.GetLastErrorDescription();
            MessageBox.Show(oCompany.GetLastErrorDescription());
        }
    }

    Hope it helps!

    Kind regards,

    ANKIT CHAUHAN

    SAP Business One Support

Related questions

1 Answer

  • Posted on Oct 29, 2019 at 01:08 PM

    Thanks Ankit

    Add a comment
    10|10000 characters needed characters exceeded