With the installation of the SAP GUI for Windows 7.60 the SAP dotNET Connector NCo is also installed. NCo offers the possibility to use remote enabled function modules (RFC) with dotNET, and therefore also UiPath. In this post I describe a way to use the installed NCo from the SAP GUI for Windows. On this way is an additional installation of the NCo no longer required.
To use RFC calls it is necessary to add a few lines in the XAML file of your project.
Add in the Activity tag the following attributes:
Add at the end of the TextExpression.NamespacesForImplementation tag in the sco:Collection the line:
Add at the end of the TextExpression.ReferencesForImplementation tag in the sco:Collection the lines:
It is necessary to create two dummy variables, one with a type from the library sapnco and one with a type from the library sapnco_utils.
Now you can use SAP NCo in your code activity without any additional installation of SAP NCo.