[英]Where I find my Connection String to automate SAP through in C# application?
In "My Connection string" in code below, what should I mention?在下面代码的“我的连接字符串”中,我应该提到什么? Where shall I find connection string in SAP.
我应该在哪里找到 SAP 中的连接字符串。
In my system I am having SAP Logon Pad.在我的系统中,我有 SAP Logon Pad。
public static void Main(string[] args)
{
SAPActive.openSAP("my connection string");
SAPActive.login("10", "jdoe", "password", "EN");
SAPActive.SapSession.StartTransaction("VA03");
}
The connection string can be deduced from what you can see in your SAP Logon or in your SAP Logon Pad.连接字符串可以从您在 SAP Logon 或 SAP Logon Pad 中看到的内容推导出来。
For instance, say you have these connection entries in your SAP Logon (Pad):例如,假设您的 SAP Logon (Pad) 中有这些连接条目:
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:您还可以找到包含 XML 格式的所有条目的文件:
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).有关详细信息,请参阅SAP 库(免费访问)或SAP 说明 103019 - SAPshortcut:程序参数(访问需要 SAP 客户端身份验证)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.