Anfang des Inhaltsbereichs

Vorgehensweisen SAPLogonDestination Class Dokument im Navigationsbaum lokalisieren

The SAPLogonDestination class is a design time component derived from the Destination class. Connection information can be retrieved from the SAPGUI at runtime, specifically from SAPLOGON.INI on the machine hosting the application.

 

[C#]

public class SAPLogonDestination : SAP.Connector.Destination

 

Public Properties

public string DestinationName [ get, set ]

Provides a drop down list of the destinations stored in the SAPGUI. This is the same list the user would see when starting SAP Logon for example

 

Private Properties (Retrieved from SAPGUI)

public string AppServerHost [ get, set ]

The application server host

public System.Collections.IDictionary AvailableDestinations [ get]

The list of available destinations in a name/value pair

public string DestinationDescription [ get, set ]

A description of each destination

public string LogonGroup [ get, set ]

Logon group if configured

public string MsgServerHost [ get, set ]

Message server host if configured

public string SAPSystemName [ get, set ]

SAP System name (for example CS2)

public bool SNCMode [ get, set ]

Whether SNC is used

public string SNCPartnerName [ get, set ]

The SNC name of the SAP application server as stored in SAPGUI. See SNC User Guide for details

public short SystemNumber [ get, set ]

The system number. For example 00.

public string Type [ get, set ]

The data type.

 

Public Methods

public System.String GetDestinationNameFromPrintName (System.String printName)

Retrieves the destination name from the print name

 

Remarks

This component is designed to simplify the SAP Logon process for both client applications where the user already has a SAPGUI and for web applications where administrators wish to store connection information in the SAPGUI instead of in the destination object or dynamic property in the webconfig.xml file.

 

Use of SAPLogonDestination with SAP Router

If your SAPGUI destination has a router, carry out the following steps to use this component:

...

       1.      Create a new destination in SAP Logon.

       2.      On the Application server field put the SAP router string first, then the application server.

       3.      Leave the SAP Router String blank.

       4.      Test it in SAPLogon before using with the connector.

 

For example, if you have the following:

Description: MySystem

Application Server: IWDF9387.WDF.SAP.CORP

SAP Router String: /H/SAPGATEA.WDF.SAP-AG.DE/S/3291/H/

 

In your new destination, the properties should be:

 

Description: MySystem_DNC

Application Server: 

/H/SAPGATEA.WDF.SAP-AG.DE/S/3291/H/IWDF9387.WDF.SAP.CORP

SAP Router String:

 

Ende des Inhaltsbereichs