on 10-07-2015 5:56 PM
Hi guys,
Anyone knows how to use visual studio to edit the A?R invoice so that a person can do batch invoicing.
Hi Tichaona,
You can update your invoice using something like this:
Documents invoice = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
int key = 60; //provide the key of your invoice
if (invoice.GetByKey(key))
{
//edit your fields
if(invoice.Update() != 0)
MessageBox.Show(oCompany.GetLastErrorDescription());
}
If you need update a batch of invoice, puts this code in repetition structure like foreach.
Hope it helps,
Regards,
Diego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.