Skip to Content
author's profile photo
Former Member

Launch SAP interface from RFC

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Apr 20, 2004 at 12:16 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo
    Former Member
    Posted on Apr 26, 2004 at 04:58 AM

    Hi Rhyn. where are you from?

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 26, 2004 at 11:43 AM

    Please note the the correct forum about this kind of issues is Interoperability .NET

    It already contains some threads with similar content.

    Add comment
    10|10000 characters needed characters exceeded