Hi Nilesh,
You can use this code to get an existing invoice and update the payment method
SAPbobsCOM.Documents oINV = (SAPbobsCOM.Documents)B1WizardBase.B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oInvoices); oINV.GetByKey(8665); oINV.PaymentMethod = "ABC"; int lErr = oINV.Update(); if (lErr != 0) { System.Windows.Forms.MessageBox.Show( B1WizardBase.B1Connections.diCompany.GetLastErrorDescription()); }
Note that payment method is update-able only as long as the invoice doc status is 'Open'
Regards
Edy