Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8927

Re: Problem with connection string addon

$
0
0

I see now,

 

I do not need the connection string (2nd part SetApplication()) since the 1st part already dealt with the connection.

 

To connect to DI though,

 

Public WithEvents SBO_Application As SAPbouiCOM.Application 'Declare

 

SBO_Application = Application.SBO_Application

Dim sCookie As String

oCompany = New SAPbobsCOM.Company

sCookie = oCompany.GetContextCookie

sConnectionContext = SBO_Application.Company.GetConnectionContext(sCookie)

oCompany.SetSboLoginContext(sConnectionContext)

oCompany.Connect()

 

Thanks Maik


Viewing all articles
Browse latest Browse all 8927

Trending Articles