Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Document_Installments Object Issue

Hi all!! I have a trouble with the InstallmentID property of the Document_Installments Object . I want to update the invoice installment's duedate by DI API , but when i check the IntallmentID property's value of my Document_Installments object, returns this error:

"Property 'InstallmentID' of 'DocumentInstallment' is invalid "

This is my code:

Dim odoc As SAPbobsCOM.Documents

Dim instmntID As SAPbobsCOM.Document_Installments

odoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)

dim x ,y as integer

For x = 0 To ogrid.Rows.Count - 1

odoc.GetByKey(ogrid.DataTable.GetValue("ID Doc.", ogrid.GetDataTableRowIndex(x)))

instmntID = odoc.Installments

For y = 0 To instmntID.Count


' ****Here returns the error*****

If odoc.Installments.InstallmentId = ogrid.DataTable.GetValue("Num Rata", ogrid.GetDataTableRowIndex(x)) Then

If odoc.Installments.DueDate <> ogrid.DataTable.GetValue("Data scad.", ogrid.GetDataTableRowIndex(x)) Then

odoc.Installments.DueDate = ogrid.DataTable.GetValue("Data scad.", ogrid.GetDataTableRowIndex(x))

If odoc.Update() = 0 Then

End If

End If

End If

Exit For

End If



Any suggestion? Please help me! I don't know where i can find anything useful!!!


Best Regards


Former Member
Not what you were looking for? View more on this topic or Ask a question