cancel
Showing results for 
Search instead for 
Did you mean: 

Update Uom Prices(ITM9) using SDK

RyanSmyth
Explorer
0 Kudos

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

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

RyanSmyth
Explorer
0 Kudos

Thanks Ankit