In some cases it may be helpful to improve the performance by using xml templates for creating the function module object hierarchy instead of using the CreateFunction/CreateBAPI methods:
- Create a template using the tool FunctionTemplateGenerator.exe (which is located in the ERPConnect program folder).
- Add the XML file to your project as a resource.
- Use the following code to load the XML stream.
- Now you can use the FRFCFunction-object as usual instead of using the CreateFunction/CreateBAPI methods.
Click to open C# example.
Click to open VB example.