cancel
Showing results for 
Search instead for 
Did you mean: 

Launching SAP GUI wth .NET Connector

Former Member
0 Kudos

Is anyone aware of an RFC (or other method) that can be used to launch SAP externally (with a transaction)?

My environment is .NET and my tool VB and I am establishing a connection to SAP via the .NET connector.

I have tried Ecatt_Start_Gui_Remote and a few others, however I get the error "Please logon with a dialog user". I am wondering, can a "dialog user" be established with the standard SAP <i>destination</i> control in .NET?

If anyone can help, that would be great.

-Ryan

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

Have you specified the USE_SAPGUI parameter in your connection string? This is done easiest by settings destination.SAPGui to 1 or 2. 1 means "SAPGUI visible", 2 means that SAPGUI is hidden after RFC call.

Former Member
0 Kudos

Hi all,

I am also getting the same error "Please logon with a dialog user". My tool is C# and calling a FM (with a RFC destination as a parameter) which throws a GUI screen. I am using use_sapgui=1 in the connection string. My questions is that,

Should that RFC destination's logon information be used to display the GUI screen?

This is my understanding:

In my C# code, I can login with a CPIC user-id. I am passing RFC destination as a parameter to FM. While FM throws the GUI screen, it must use the user-id(this must be a dialog user) specified in the specified RFC destination. right? If so, why is should expect that the login user in C# code be an dialog user???

Correct me if I am wrong anywhere? or how did you resolve this probelem?

Thanks

Ramesh

Former Member
0 Kudos

Hi Ramesh,

If I understand you correctly, it is a 3-tier scenario. Your C# program makes a RFC call to a FM in a SAP system and the FM in turn makes another RFC call to another SAP system specified by the passed RFC destination parameter. During the second RFC call, a GUI screen pops up.

In this case, you still need a dialog user for the connection between your C# program and the first SAP system. The dialog user specified in the RFC destination just makes it possible to display a GUI screen from the second SAP system ontop of the GUI window of the first SAP system. The dialog user specified in C# program is required for displaying the GUI window of the first SAP system.

It is similar to making Remote Desktop Connection over Windows Terminal Service. Before you can access a remote desktop, you have to first have the access to the local desktop of your PC.

Regards,

Guangwei