Skip to Content
avatar image
Former Member

SAP.NET connector 3.0

Dear All,

Recently we had upgraded our web system from Visual Studio 2003 to Visual Studio 2013.  At the same time, we also applied the SAP.NET connector 3.0 instead of RFC call from the SAP function control to connect to the SAP system.

The method that we used to call SAP basically is register RFC -> Call BAPI -> Unregister RFC










Attached please find the VB source code for your reference.

For single user calling, there is no problem.  However, when there are more than one user calling the BAPI at the same time.  The register will be failed.

Error : Destination configuration already inialized.

Since we need multiple users to call and update SAP system from web system.  Please let me know there is any solution for us.

Look forward to your information.  Thank you very much.

Best Regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 21, 2016 at 03:03 PM

    Hello David,

    the pattern you use is wrong. It does not make sense to register/unregister an IDestinationConfiguration all the time. Unregister is an operation, which should be needed very rarely. Registering only once during startup of an application (server). An IDestinationConfiguration implementation is not representing a single destination, but a destination storage. It will take care for providing the properties for all destinations it manages in the associated storage. Your scenario is done differently. You need a single destination pointing to the target system, which is configured somewhere and in the application code you need to create a custom destination from it, set the user credentials and invoke the function module. This has been described already in other forum discussions, simply search for one.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Markus Tolksdorf

      Dear Markus,

      Thank you so much for your quick response.  We will modify it according to your suggestion.

      Best regards,

      David Lau