1467256 - document total does not match its components
Symptom
Adding a Stock Transfer Draft or an Stock Transfer Request from DI API, then try to add this draft as a real document from B1 application. Error "There is a difference between the document total and its components. [Inventory Transfer - Rows - Warehouse Code][line: 0] " occurs
To reproduce this issue:
1. Go to Document Settings
1a. Set the Rounding Method as By Currency
2. Go to Administration -> Setup-> Financials -> Currencies
2a. Set the Rounding to Round by Five Hundredth
3. Run the following codes to add a Stock Transfer Draft
Dim doc As SAPbobsCOM.Documents
doc = ocmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
doc.DocObjectCode = SAPbobsCOM.BoObjectTypes.oStockTransfer
doc.Lines.ItemCode = "test"
doc.Lines.WarehouseCode = "02"
doc.Lines.UnitPrice = 41.11
doc.Lines.Quantity = 1
lRetCode = doc.Add()
If lRetCode <> 0 Then
ocmp.GetLastError(lErrCode, sErrMsg)
MsgBox(Str(lErrCode) + ":" + sErrMsg)
Else
MsgBox("ok")
End If
Run the following code to add a Stock Transfer Request:
Dim oITR As SAPbobsCOM.StockTransfer
oITR = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryTransferRequest)
oITR.DueDate = Today
oITR.FromWarehouse = "01"
oITR.Lines.ItemCode = “Test”
oITR.Lines.Quantity = 1
oITR.Lines.WarehouseCode = "04"
lRetCode = oITR.Add()
If lRetCode <> 0 Then
ocmp.GetLastError(lErrCode, sErrMsg)
MsgBox(Str(lErrCode) + ":" + sErrMsg)
Else
MsgBox("ok")
End If
4. Go back to B1 application
5. Go to Inventory -> Inventory Reports -> Document Drafts Report -> Inventory Transfers
5a. Click OK
5b. Select the draft added by the DI API
5c. Open it and Add it
Actual Result:
The error which comes up is :
"There is a difference between the document total and its components"
Cause
Application Error
Solution
SAP intends to provide a patch or patches in order to solve the problem described.
The section Reference to Related Notes below will list the specific patches once they become available.
The corresponding Info file of the patches in SAP Service Marketplace will also show the SAP Note number.
Be aware that these references can only be set at patch release date.
SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.
Workaround:
1. Under Administration->Financials->Currencies->Rounding choose
'no rounding' for the currency.
2. Add the Draft required via the DI API.
3. Change the rounding setting in step one back to the original settings. Such as "Round to Five Hundredth"
Other terms
SAP Business One, B1, DI API, Stock Transfer, Inventory Transfer; Draft; Real Document; B1 Application; 2007; Rounding; Currency; inventory transfer request; stock transfer request; There is a difference between the document total and its components
Header Data
Released On | 09.07.2012 04:20:01 | ||
Release Status | Released for Customer | ||
Component | SBO-SDK-DI Data Interface | ||
Other Components |
| ||
Priority | Recommendations/additional info | ||
Category | Program error |
Validity
|
References
This document refers to:
SAP Business One Notes
1322713 | Not able to add Goods Reciept via DI API | |
968358 | Implementation/fix not feasible in current release |
This document is referenced by:
SAP Business One Notes (3)
1322713 | Not able to add Goods Reciept via DI API | |
968358 | Implementation/fix not feasible in current release | |
1741605 | Overview Note for SAP Business One 8.82 PL08 |