Skip to Content

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

SBOLoginContext

I am getting an error from here

strConnectionContext = m_SboApplication.Company.GetConnectionContext(strCookie)

m_SboCompany.SetSboLoginContext(strConnectionContext)

Error:

System.Runtime.InteropServices.COMException (0xFFFFFC17): The Field is to small to accept the data

at SAPbobsCOM.CompanyClass.SetSboLoginContext(String conStr)

at SBO.SboAddOnBase.SBOAddOn.ConnectToDIAPI() in C:\Documents and Settings\Administrator1\My Documents\RD\TechDemoAddon\SAP TechDemo Addon 1.0\SboAddOnBase\SboAddOn.vb:line 303

Please Help

Edited by: Paul Finneran on Oct 1, 2008 2:10 PM

replied

Hi,

this error you usually get when you have the (old) 2004 DIAPI library reference in your project

and you want to connect to SAP 2007.

remove your diapi reference and add (minimum) the DIAPI 2005 reference to your project.

recompile and the problem is solved - had the same problem with old addons

lg David

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question