Skip to Content

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

GetDueDate from SBOBlob Object

Hi everyone,

I try to get de DueDate from:

Public Sub TestMethod_GetDueDate(ByVal cardCode As String, ByVal refDate As Date)
    Dim vObj As SAPbobsCOM.SBObob
    Dim rs As SAPbobsCOM.Recordset
    Dim strResult As String
    Dim errResult As String
    Set vObj =m_company. GetBusinessObject(BoBridge)
    Set rs =m_company. GetBusinessObject(BoRecordset)
    Set rs = vObj.GetDueDate(cardCode, refDate)
    strResult = RecorsetToText(rs)
    errResult = GetLastErrorString()
    OutputMessage(strResult, errResult)
End Sub

But is not working.

Is there anyone that work it?

The SBO version is 882 PL09.

Thanks in advance

Tags:
replied

Hi Carles,

Maybe it's related to the PL, the following code works fine for me in 9.0.

              // on the 16.09.2014

                Recordset rs = bob.GetDueDate("C23900", DateTime.Today);

                DateTime dueDate = rs.Fields.Item(0).Value;

                Console.WriteLine(dueDate);

The output is 16.10.2014 and the payment terms for the BP is 30 days.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

0 View this answer in context

Helpful Answer

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