You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/logic-apps/logic-apps-using-sap-connector.md
+42-13Lines changed: 42 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: divyaswarnkar
7
7
ms.author: divswa
8
8
ms.reviewer: estfan, logicappspm
9
9
ms.topic: article
10
-
ms.date: 08/30/2019
10
+
ms.date: 05/27/2020
11
11
tags: connectors
12
12
---
13
13
@@ -49,23 +49,38 @@ To follow along with this article, you need these items:
49
49
50
50
* 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).
51
51
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.
53
53
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.
*[Download, install, and configure the latest SAP client library](#sap-client-library-prerequisites) on the same computer as the on-premises data gateway.
57
57
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.
59
59
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
61
61
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.
67
63
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.
* 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.
69
84
70
85
<aname="migrate"></a>
71
86
@@ -89,6 +104,10 @@ This example uses a logic app that you can trigger with an HTTP request. The log
89
104
90
105
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.
91
106
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
+
92
111
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.
93
112
94
113
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
265
284
266
285
Logic Apps sets up and tests your connection to make sure that the connection works properly.
267
286
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.
269
288
270
289
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.
271
290
@@ -291,6 +310,16 @@ Your logic app is now ready to receive messages from your SAP system.
291
310
> The SAP trigger isn't a polling trigger but is a webhook-based trigger instead.
292
311
> The trigger is called from the gateway only when a message exists, so no polling is necessary.
293
312
313
+
<aname="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
+
294
323
### Test your logic app
295
324
296
325
1. To trigger your logic app, send a message from your SAP system.
0 commit comments