Hi Maik,
Thanks for your reply.
I add the document draft become document with function below :
Private Function PostingDraft(ByVal docentry As Integer) As String
Dim oDoc As SAPbobsCOM.Documents
oDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
oDoc.GetByKey(docentry)
If oDoc.SaveDraftToDocument() = 0 Then
Return ""
Else
Return oCompany.GetLastErrorDescription
End If
End Function
I'm not change the DocTotal, only post the Draft Document become Document.
I already try to set oDoc.Rounding = BoYesNoEnum.tYES but still the Rounding amount become Discount when Draft AR Document posted as AR Document.
Best Regards,
Silvy