cancel
Showing results for 
Search instead for 
Did you mean: 

There is a difference between the document total and its components

Symptom:

Try to add a A/P Invoice - Purchase marketing document through the Data Interface API (DI API)

Scenario:

You try to add a purchase marketing document through DI API

DI-API

Documents oNE = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices);
oNE.HandWritten= SAPbobsCOM.BoYesNoEnum.tNO;  oNE.CardCode = “F01579”; 
oNE.DocDate = DateTime.Today; 
oNE.TaxDate = DateTime.Today;  
oNE.DocDueDate = DateTime.Today;  
oNE.Lines.ItemCode = “S0315”; 
oNE.Lines.Quantity = 1;
oNE.Lines.Price = 603.32;
oNE.Lines.TaxCode = “SERV-004”;
oNE.Lines.CostingCode = “25.02.14”;  
oNE.Add();
behavior with 9.3 PL 11:
   document included with Doctotal = quantity x price
behavior with 10  FP 2011:
  document included with Doctotal = 0

when we update the code including "DocTotal”
behavior:  
Error: There is a difference between the document total and its components. [A/P Invoice - Document Total (SC)]  [Message 439-138]

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Dear yplom,

We noticed that our Development Team appears to be aware of this issue.

The issue is supposed to be fixed in Feature Package 2105 of SAP Business One Version 10.0. Be advised that the time-frame is subject to change without any further notice.

However, we would ask you to raise an incident for SAP Business One Support Team under the component SBO-SDK-DI to follow up and get the confirmation that you are also having the same issue which our Development Team is fixing in the ucoming patches.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support