Getting Started
This section shows how to install and set up ERPConnect for the first time.
Installation
Download and install the following components:
- .NET SDK.
- An editor of your choice e.g., Visual Studio Code.
- Download the latest version of ERPConnect from the customer portal or download a 30 day trial version. Execute the
ERPConnectSetup.exefile to install ERPConnect. For information on system requirements, see Requirements. - Download the Netweaver RFC library from the SAP Marketplace download area.
For more information, see Documentation: Installation.
Setup
To set up a project that connects to an SAP system:
- Open Visual Studio Code.
- Install the C# Dev Kit plugin.
- Create a new Console App.
- Integrate the
ERPConnectStandard20.dlllibrary from the ERPConnect installation directory atC:\Program Files\ERPConnectinto your project. -
Integrate the SAP NetWeaver library:
Example: Integrate Libraries<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net10.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <Reference Include="ERPConnectStandard20"> <HintPath>..\ERPConnectStandard20.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> <Content Include="../icudt57.dll"> <Link>icudt57.dll</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> <Content Include="../icuin57.dll"> <Link>icuin57.dll</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> <Content Include="../icuuc57.dll"> <Link>icuuc57.dll</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> <Content Include="../sapnwrfc.dll"> <Link>sapnwrfc.dll</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> </Project> -
Set the (demo) license before connecting to SAP. The demo license is provided as a .json file that is located in the installation directory of ERPConenct, e.g.,
C:\Program Files\ERPConnect\ERPConnectLicense.json. Use one of the following methods to set the license: -
Create an
R3Connectionobject for the SAP connection and define all input parameters. Use an SAP dialog user with sufficient SAP authorization for the connection, see Authorization Objects - SAP User Rights. -
Establish the connection using
Open(). - Build the .NET Project.
- Run the program to test the SAP connection.
Your program now connects to SAP. For more information, see Documentation: Connect to SAP.
Next Steps
ERPConnect offers the following features for reading and writing data from and to SAP:
| Functionality / SAP Objects | Description |
|---|---|
| ABAP Code | Generate and execute ABAP code on-the-fly. |
| BAPIs and Function Modules | Access BAPIs and RFC function modules to read and write data from and to SAP. |
| BW Cube and BEx Queries | Extract data from SAP BW InfoCubes and BEx Queries. |
| IDocs | Send and receive SAP IDocs. |
| Queries | Extract SAP queries (not BEx queries). |
| RFC Server Functions | Create, register and use RFC server functions. |
| Tables | Read SAP Tables directly via RFC. |
| Transactions | Execute SAP transactions via batch input. |