Skip to Content
avatar image
Former Member

BP Catalogue numbers via DI API

Hi guys,

can someone explain how to add BP catalogue numbers to items via the DI API?

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 30, 2016 at 12:38 PM

    Hi Costas,

    To add BP Catalogue number via DI API you should use AlternateCatNum object. The values are stored in OSCN table.

    A sample code:

                    AlternateCatNum oAltCatNum = oCompany.GetBusinessObject(BoObjectTypes.oAlternateCatNum);
                    oAltCatNum.CardCode = "your bp code";
                    oAltCatNum.ItemCode = "your item code";
                    oAltCatNum.Substitute = "bp itemcode";
                    if(oAltCatNum.Add() != 0)
                    {
                        MessageBox.Show(oCompany.GetLastErrorDescription());
                    }
    

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded