cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Tracking No. on Delivery Notes via SDK

former_member484084
Discoverer
0 Kudos

Hi Guys,

Im looking for some assistance. I need to update the tracking number field on a delivery note, I'm told this is possible via the DI API.

Can someone please point me in the right direction of samples code of a similar code etc.?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185682
Active Contributor
0 Kudos

Hi Jordan,

Use the property TrackingNumber from Document object.

A sample:

Documents oDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
if (oDoc.GetByKey(75))
{
    oDoc.TrackingNumber = "11";
    if (oDoc.Update() != 0)
    {
        MessageBox.Show(oCompany.GetLastErrorDescription());
    }
}

Kind Regards,

Diego Lother