cancel
Showing results for 
Search instead for 
Did you mean: 

Getting user logon with in Bex VB script

Former Member
0 Kudos

Hi All,

I am trying to get ( from Macro VBA ) the user logged on to BW system.

To do this i use the following vb code :

Dim objsapgui As Object

Dim objsapguitable As Object

Set obj1BAPIControl = CreateObject("SAP.Functions")

'objet for gui funbction

Set objsapgui = obj1BAPIControl.Add("GUI_GET_DESKTOP_INFO")

'objet

Set objsapguitable = objsapgui.exports("TYPE")

objsapguitable.Value = 5

' Function call

objsapgui.Call

My problem is that i don't know how to get the return value of the FM GUI_GET_DESKTOP_INFO in my VBA code ?

Best regards

Matihi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I think this question is related BW .. post this in BW forum.. you will get more answers..

Regards

Chilla..

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

it has nothing to do with BW

it's just a simple VBA interface with SAP nothing more

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi,

Thanks for your answer .

I check on google for the sample code but i did not found the solution of my problem.

I found some sample with the FM using tables in parameters but the FM GUI_GET_DESKTOP_INFO has no parameter table.

maybe it's not possible to get in VBA the value of FM GUI_GET_DESKTOP_INFO because this FM has no parameters tables ?

Regards

Former Member
0 Kudos

HI,

Regards

Chilla..

Former Member
0 Kudos

Hi,

Thanks for your answer but i did not find a solution to my problem.

any other suggestion to get in VBA the result of this FM GUI_GET_DESKTOP_INFO ?

Regards