-2

In "My Connection string" in code below, what should I mention? Where shall I find connection string in SAP.

In my system I am having SAP Logon Pad.

public static void Main(string[] args)
    {
        SAPActive.openSAP("my connection string");
        SAPActive.login("10", "jdoe", "password", "EN");
        SAPActive.SapSession.StartTransaction("VA03");
    }
   
Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Prasath
  • 1
  • 3
  • Do you have SAP Logon/SAP GUI to log in the concerned SAP system or how do you access it manually? These Web pages may also help you: https://help.sap.com/viewer/product/SAP_NETWEAVER_AS_ABAP_752/7.52.5/en-US?q=Route%20strings and also https://www.google.ie/search?q=connection+route+string%20site:sap.com (NB: connection string is also known as route string) – Sandra Rossi Jul 23 '21 at 18:09
  • Ya in my system am having SAP logon pad. From that how I find connection string in SAP logon pad. – Prasath Jul 24 '21 at 07:56
  • What I need to mention in SAPActive.openSAP(????). – Prasath Jul 24 '21 at 07:59
  • I added an answer to show you the details. You should add in your question a screenshot of your logon pad if you need a specific answer. – Sandra Rossi Jul 24 '21 at 08:57

1 Answers1

0

The connection string can be deduced from what you can see in your SAP Logon or in your SAP Logon Pad.

For instance, say you have these connection entries in your SAP Logon (Pad): enter image description here

Because they refer to a server/host and an instance number, the corresponding Connection Strings are, respectively:

  • /H/127.0.0.2/S/sapdp00
  • /H/127.0.0.1/S/sapdp00

If the connection entry refers to a logon group and a message server (and a router), the things get more complex. Paste a screenshot of your connection entry if you need assistance.

You may also find the file containing all the entries in XML format:

  • Go to the Options:
  • Go to the menu SAP Logon Pad Options > Local Configuration Files and double-click the "Local File"
  • It opens the file SAPUILandscape.xml
    SAPUILandscape.xml

For more information, see the SAP Library (free access) or SAP note 103019 - SAPshortcut: Program parameters (access needs SAP client authentication).

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48