Below you can find frequently asked questions (FAQ) about ERP Connector.
An RFM (RFC-enabled Function Module) is an ABAP function module that can be remotely invoked. An RFM takes some parameters as input, and after execution, returns some output parameters. You can view an RFM in the SAP system via Transaction SE37.
Yes, you can.
To be seen by GeneXus ERP Connector, these functions must be published in the BOR (Business Object Repository). This is done in SAP ERP using the following steps (in particular from Stage 3)
You can download them from http://service.sap.com/connectors.
The SAP user needs the role sap_s_rfcacl in order to make RFC calls.
5. When I select Tools > Application Integration > SAP BAPI Import, I get the following error message: "Could not load file or assembly ‘sapnco, version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23’ or one of its dependencies. The system cannot find the file specified (EnterpriseInspector)."
You must copy the sapnco.dll and sapnco_utils.dll (part of SAP .Net Connector 3.0.13.0 or higher, 32 bits compiled with .NET Framework 2.0, or compiled with Framework 4.0 if you are using GeneXus 15 Upgrade 1 or higher) to the root of GeneXus installation directory. You can download it from http://service.sap.com/connectors.
Additional Information:
Could not load file or assembly ‘sapnco_utils, version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23’ or one of its dependencies. The system cannot find the file specified (EnterpriseInspector).
You must copy the sapnco_utils.dll (part of SAP .Net Connector 3.0.13.0 or higher, 32 bits compiled with .NET Framework 2.0, or compiled with Framework 4.0 if you are using GeneXus 15 Upgrade 1 or higher) to the root of GeneXus installation directory. You can download it from http://service.sap.com/connectors.
From GeneXus 15 Upgrade 1 or higher, you need the SAP .Net Connector compiled with Framework 4.0
You must copy the sapnco.dll and sapnco_utils.dll (part of SAP .Net Connector compiled with .NET Framework 4.0) to the root of GeneXus installation directory. You can download it from http://service.sap.com/connectors.
Detailed Error Message:
The type initializer for 'SAP.Middleware.Connector.RfcDestinationManager' threw an exception. (sapnco)
------------------------------
Product = GeneXus 15
Version = 15.0.107450 U1
------------------------------
Program Location:
at SAP.Middleware.Connector.RfcDestinationManager.IsDestinationConfigurationRegistered()
........
===================================
The type initializer for 'SAP.Middleware.Connector.RfcConfigParameters' threw an exception. (sapnco)
------------------------------
Program Location:
at SAP.Middleware.Connector.RfcConfigParameters.Initialize()
at SAP.Middleware.Connector.RfcDestinationManager..cctor()
===================================
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. (sapnco)
------------------------------
Program Location:
at SAP.Middleware.Connector.RfcConfigParameters.loadConfiguration()
at SAP.Middleware.Connector.RfcConfigParameters..cctor()
8. When I select Tools > Application Integration > SAP BAPI Import, I get the following error message: "Enterprise Inspector License Not Found."
You must request a GeneXus ERP Connector for SAP license through the GeneXus License Manager.
You will find the product to authorize with the product name "ERP Connector".
This problem could be related to the fact that an unexpected version of the sapnco.dll in the GAC (Global Assembly Cache) directory exists.
The reason is that you don't have a GeneXus ERP Connector license. Please request it to keys@genexus.com
In the compilation output, you can find the next error message following the previous one:
error CS0006: The metadata file 'bin\GeneXus.Programs.Common.dll' cannot be found
If you take a look at the generated program with the error (in that case type_SdtSAPGeneralLedgerAccount.cs) you will find the following line:
// **** Enterprise Connector Licence Not Found *****
11. When executing a GeneXus .Net application which uses SAP BAPIs as External Objects, I get the following error message: "Server Error in '/MyGXSAPAppI.NetEnvironment' Application."
Could not load file or assembly 'sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. The system cannot find the file specified.
You must copy the sapnco.dll and sapnco_utils.dll (part of SAP .Net Connector 3.0.13.0 or higher, 32/64 bits compiled with .NET Framework 2.0) to the web\bin directory of your application. You can download it from http://service.sap.com/connectors.
You must check the AppPool used in your web application and set the property Enable 32-Bit Application to true or use the 64bits version of the sapnco_utils.dll.
Review the SAP Java Connector 3.* documentation; your sapjco3 installation folder must be included in the Path system variable.
There are different distribution packages for various JRE versions and hardware processors available (AMD, INTELL x86-bit or x64-bit architectures) for SAP Java Connector 3.*; make sure you install the correct one.
Please, see the SAC# 41866 - Conversion error using a SAP BAPI imported by GX ERP Connector
Make sure you have Microsoft Visual C++ 2010 Redistributable Pack (x86) (mscvp100.dll) installed.
For more information, read this paper: GeneXus for SAP: Manage DMS attachments