cancel
Showing results for 
Search instead for 
Did you mean: 

Launch SAP interface from RFC

Former Member
0 Kudos

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

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

If anyone can help, that would be great.

-Ryan

Accepted Solutions (0)

Answers (3)

Answers (3)

reiner_hille-doering
Active Contributor
0 Kudos

Please note the the correct forum about this kind of issues is

It already contains some threads with similar content.

Former Member
0 Kudos

Hi Rhyn. where are you from?

Former Member
0 Kudos

The Windows RFC SDK (on which the .NET connector is based) supports starting the SAPGUI so that any function call that invokes dialog will cause the GUI to appear.

This can either be done when the RFC connection is established (by passing "USE_SAPGUI=1" in the parameters to RfcOpenEx), or later by calling RfcGuiStart.

However, I don't know how this translates to the .NET connector, which in my understanding was designed as a middle layer for n-tier development, thus potentially they didn't include support for starting the GUI via RFC. Best to ask in the SDN .NET technologies forum if you are unable to use the native RFC SDK (I imagine calling such unmanaged code might be a pain from your .NET code).

Cheers,

Scott

Former Member
0 Kudos

Another option, might simply be to invoke sapshcut.exe using parameters like:

"...\sapshcut.exe" -sysname="Development" -client=123 -user=myuserid -pw=mypass -command="SE38"

Refer to OSS note 103019 for more details.

Scott