Skip to content

Commit 03bb04e

Browse files
authored
Merge pull request #115686 from lauradolan/sap-connector
SAP connector article updates
2 parents 537e521 + ae56917 commit 03bb04e

File tree

1 file changed

+42
-13
lines changed

1 file changed

+42
-13
lines changed

articles/logic-apps/logic-apps-using-sap-connector.md

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: divyaswarnkar
77
ms.author: divswa
88
ms.reviewer: estfan, logicappspm
99
ms.topic: article
10-
ms.date: 08/30/2019
10+
ms.date: 05/27/2020
1111
tags: connectors
1212
---
1313

@@ -49,23 +49,38 @@ To follow along with this article, you need these items:
4949

5050
* Your [SAP application server](https://wiki.scn.sap.com/wiki/display/ABAP/ABAP+Application+Server) or [SAP message server](https://help.sap.com/saphelp_nw70/helpdata/en/40/c235c15ab7468bb31599cc759179ef/frameset.htm).
5151

52-
* Download and install the latest [on-premises data gateway](https://www.microsoft.com/download/details.aspx?id=53127) on any on-premises computer. Make sure you set up your gateway in the Azure portal before you continue. The gateway helps you securely access on-premises data and resources. For more information, see [Install an on-premises data gateway for Azure Logic Apps](../logic-apps/logic-apps-gateway-install.md).
52+
* [Download and install the on-premises data gateway](../logic-apps/logic-apps-gateway-install.md) on your local computer. Then, [create an Azure gateway resource](../logic-apps/logic-apps-gateway-connection.md#create-azure-gateway-resource) for that gateway in the Azure portal. The gateway helps you securely access on-premises data and resources.
5353

54-
* If you use SNC with SSO, make sure the gateway is running as a user that's mapped against the SAP user. To change the default account, select **Change account**, and enter the user credentials.
54+
* As a best practice, make sure to use a supported version of the on-premises data gateway. Microsoft releases a new version every month. Currently, Microsoft supports the last six versions. If you experience an issue with your gateway, try [upgrading to the latest version](https://aka.ms/on-premises-data-gateway-installer), which might include updates to resolve your problem.
5555

56-
![Change gateway account](./media/logic-apps-using-sap-connector/gateway-account.png)
56+
* [Download, install, and configure the latest SAP client library](#sap-client-library-prerequisites) on the same computer as the on-premises data gateway.
5757

58-
* If you enable SNC with an external security product, copy the SNC library or files on the same machine where the gateway is installed. Some examples of SNC products include [sapseculib](https://help.sap.com/saphelp_nw74/helpdata/en/7a/0755dc6ef84f76890a77ad6eb13b13/frameset.htm), Kerberos, and NTLM.
58+
* Message content you can send to your SAP server, such as a sample IDoc file, must be in XML format and include the namespace for the SAP action you want to use.
5959

60-
* Download and install the latest SAP client library, which is currently [SAP Connector (NCo 3.0) for Microsoft .NET 3.0.22.0 compiled with .NET Framework 4.0 - Windows 64-bit (x64)](https://softwaredownloads.sap.com/file/0020000001000932019), on the same computer as the on-premises data gateway. Install this version or later for these reasons:
60+
### SAP client library prerequisites
6161

62-
* Earlier SAP NCo versions might become deadlocked when more than one IDoc message is sent at the same time. This condition blocks all later messages that are sent to the SAP destination, which causes the messages to time out.
63-
64-
* The on-premises data gateway runs only on 64-bit systems. Otherwise, you get a "bad image" error because the data gateway host service doesn't support 32-bit assemblies.
65-
66-
* Both the data gateway host service and the Microsoft SAP Adapter use .NET Framework 4.5. The SAP NCo for .NET Framework 4.0 works with processes that use .NET runtime 4.0 to 4.7.1. The SAP NCo for .NET Framework 2.0 works with processes that use .NET runtime 2.0 to 3.5, but no longer works with the latest on-premises data gateway.
62+
* By default, the SAP installer puts the assembly files in the default installation folder. Copy the assembly files from the default installation folder to the gateway installation folder.
6763

68-
* Message content you can send to your SAP server, such as a sample IDoc file, must be in XML format and include the namespace for the SAP action you want to use.
64+
* If your SAP connection fails with the error message "Please check your account info and/or permissions and try again", the assembly files might be in the wrong location. Make sure that you've copied the assembly files to the gateway installation folder. Then, [use the .NET assembly binding log viewer for troubleshooting](https://docs.microsoft.com/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer), which lets you check that the assembly files are in the correct location.
65+
66+
* Optionally, you can select the **Global Assembly Cache registration** option when you install the SAP client library.
67+
68+
* Make sure to install the latest version, [SAP Connector (NCo 3.0) for Microsoft .NET 3.0.22.0 compiled with .NET Framework 4.0 - Windows 64-bit (x64)](https://softwaredownloads.sap.com/file/0020000001000932019), for these reasons:
69+
70+
* Earlier SAP NCo versions might become deadlocked when more than one IDoc message is sent at the same time. This condition blocks all later messages that are sent to the SAP destination, which causes the messages to time out.
71+
* The on-premises data gateway runs only on 64-bit systems. Otherwise, you get a "bad image" error because the data gateway host service doesn't support 32-bit assemblies.
72+
73+
* Both the data gateway host service and the Microsoft SAP Adapter use .NET Framework 4.5. The SAP NCo for .NET Framework 4.0 works with processes that use .NET runtime 4.0 to 4.7.1. The SAP NCo for .NET Framework 2.0 works with processes that use .NET runtime 2.0 to 3.5, but no longer works with the latest on-premises data gateway.
74+
75+
### SNC prerequisites
76+
77+
Configure these settings if you use SNC (optional):
78+
79+
* If you use SNC with SSO, make sure the gateway is running as a user that's mapped against the SAP user. To change the default account, select **Change account**, and enter the user credentials.
80+
81+
![Change gateway account](./media/logic-apps-using-sap-connector/gateway-account.png)
82+
83+
* If you enable SNC with an external security product, copy the SNC library or files on the same machine where the gateway is installed. Some examples of SNC products include [sapseculib](https://help.sap.com/saphelp_nw74/helpdata/en/7a/0755dc6ef84f76890a77ad6eb13b13/frameset.htm), Kerberos, and NTLM.
6984

7085
<a name="migrate"></a>
7186

@@ -89,6 +104,10 @@ This example uses a logic app that you can trigger with an HTTP request. The log
89104

90105
In Azure Logic Apps, every logic app must start with a [trigger](../logic-apps/logic-apps-overview.md#logic-app-concepts), which fires when a specific event happens or when a specific condition is met. Each time the trigger fires, the Logic Apps engine creates a logic app instance and starts running your app's workflow.
91106

107+
> [!NOTE]
108+
> When a logic app receives IDoc packets from SAP, the [request trigger](https://docs.microsoft.com/azure/connectors/connectors-native-reqres) doesn't support the "plain" XML schema generated by SAP's WE60 IDoc documentation. However, the "plain" XML schema is supported for scenarios that send messages from logic apps *to* SAP.
109+
> You can use the request trigger with SAP's IDoc XML, but not with IDoc over RFC. Or, you can transform the XML to the necessary format.
110+
92111
In this example, you create a logic app with an endpoint in Azure so that you can send *HTTP POST requests* to your logic app. When your logic app receives these HTTP requests, the trigger fires and runs the next step in your workflow.
93112

94113
1. In the [Azure portal](https://portal.azure.com), create a blank logic app, which opens the Logic App Designer.
@@ -265,7 +284,7 @@ This example uses a logic app that triggers when the app receives a message from
265284

266285
Logic Apps sets up and tests your connection to make sure that the connection works properly.
267286

268-
1. Provide the required parameters based on your SAP system configuration.
287+
1. Provide the [required parameters](#parameters) based on your SAP system configuration.
269288

270289
You can optionally provide one or more SAP actions. This list of actions specifies the messages that the trigger receives from your SAP server through the data gateway. An empty list specifies that the trigger receives all messages. If the list has more than one message, the trigger receives only the messages specified in the list. Any other messages sent from your SAP server are rejected by the gateway.
271290

@@ -291,6 +310,16 @@ Your logic app is now ready to receive messages from your SAP system.
291310
> The SAP trigger isn't a polling trigger but is a webhook-based trigger instead.
292311
> The trigger is called from the gateway only when a message exists, so no polling is necessary.
293312
313+
<a name="parameters"></a>
314+
315+
#### Parameters
316+
317+
Along with simple string and number inputs, the SAP connector accepts the following table parameters (`Type=ITAB` inputs):
318+
319+
* Table direction parameters, both input and output, for older SAP releases.
320+
* Changing parameters, which replace the table direction parameters for newer SAP releases.
321+
* Hierarchical table parameters
322+
294323
### Test your logic app
295324

296325
1. To trigger your logic app, send a message from your SAP system.

0 commit comments

Comments
 (0)