on 02-13-2019 9:36 PM
Hi Experts!
When try to cancel Electronic Invoice by DI-API, i has this error:
ErrorCode; -5002 and Description: 540000155 - XML document does not conform to schema; contact format provider for support.
My code is:
SAPbobsCOM.Documents oDOC = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
oDOC.GetByKey(850);
SAPbobsCOM.Documents oCancelDocument = oDOC.CreateCancellationDocument();
oCancelDocument.DocDate = new DateTime(2019, 2, 12);
oCancelDocument.EDocGenerationType = SAPbobsCOM.EDocGenerationTypeEnum.edocNotRelevant;
int iRet = oCancelDocument.Add();
if (0 == iRet)
{
Console.WriteLine("Invoice Canceled DocNum: {0} ", oDOC.DocNum);
}
else
{
Console.WriteLine("Error Cancell process: ErorCode: {0} . ErrorDescription: {1} ", oCompany.GetLastErrorCode().ToString(),oCompany.GetLastErrorDescription().ToString());
}
I use Elctronic Invoice for Mexico.
SAPbobsCOM DI API Version 9.0.0.0
SAP Version 9.2 PL 10 HF 2
Any one knows this issue?
Thanks and Regards
Miguel
This issue is resolved in version 9.3 PL09
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.