简体   繁体   English

我在哪里可以找到我的连接字符串以在 C# 应用程序中自动化 SAP?

[英]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 格式的所有条目的文件:

  • Go to the Options:转到选项:
  • Go to the menu SAP Logon Pad Options > Local Configuration Files and double-click the "Local File"转到菜单 SAP Logon Pad Options > Local Configuration Files 并双击“Local File”
  • It opens the file SAPUILandscape.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.

相关问题 如何找到通过C#应用程序自动执行SAP所需的连接字符串? - How do I find my Connection String required to automate SAP through a C# application? 如何使用 C# 自动化 SAP GUI - How do I automate SAP GUI with c# 我可以在哪里存储用户在 c# 中给出的连接字符串? - Where can I store my connection string given by the user in c#? 如何使用 C# 自动化 SAP GUI 750 - How to Automate SAP GUI 750 with C# C#SAP GUI 7.4编写现有应用程序/连接/会话的脚本 - C# SAP GUI 7.4 Scripting existing Application/Connection/Session 在我的 C# 项目中的哪里可以找到 application.exe.config 文件? - Where can I find the application.exe.config file in my C# project? 如何编写外部连接字符串配置文件并使我的C#应用​​程序识别并读取它? - How do I write an external connection string config file and make my c# application recognize and read it? 当我在客户端PC中安装连接字符串时,我需要在c#应用程序中编辑连接字符串吗,如果可以,我该怎么做? - do i need to edit connection string in my c# application when i install it in a client pc, if yes how can i do it? 如何创建非绝对连接字符串,以便我的小型数据库可以与已发布的C#应用​​程序一起使用? - How do I make a non absolute connection string so my small database works with my published C# application? 我在哪里放置C#应用程序中使用的文件夹? - Where do I put a folder that is used in my C# application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM