on 2019 May 06 8:42 AM
Hi
I am trying to update an Invoice Cancellation after it has been added. I did this to edit the Comments of an existing Invoice and it worked but just not with a Cancellation
int nErr;
string errMsg;
int RetVal;
SAPbobsCOM.Documents mDoc =(SAPbobsCOM.Documents) mCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
mDoc.GetByKey(3923);
//change a few fields
RetVal = mDoc.Update();
if (RetVal != 0)
{
mCompany.GetLastError(out nErr, out errMsg);
MessageBox.Show(errMsg, "ok");
}
The Key I am using belongs to a Cancellation which I am using as an example.
This always results in the following error even if I don't change anything:
'13' is not a valid value for property 'BaseDocType'. The valid values are: '-1' - '', '0' - '', '23' - 'Sales Quotation', '17' - 'Sales Order', '15' - 'Delivery'
Regards
Hi Alexander,
I am using SAP Business One 10 FP2111 and I found the same error. How did you solve it?
Thanks,
Esti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.