Skip to Content
1
Former Member
Aug 29, 2013 at 04:07 PM

Get exactly error lines when adding document - SAP B1 SDK

235 Views

Hi ,

I used SDK to add a marketing document like this:

lRetCode = oDraft.Add

If lRetCode <> 0 Then

oCompany.GetLastError(lRetCode, sErrMsg)

End if

And I received sErrMsg="No matching records found (ODBC -2028)". I can found Item doesn't exist manually . But with document have too many lines, how can I check it? Can I use SDK to get exactly error line ?