Skip to Content
Jun 21, 2019 at 07:17 AM

Microsoft .NET + WebApi + Multiple SAP systems

77 Views Last edit Jun 20, 2019 at 08:16 AM 2 rev

Hi All,

We have a requirement where multiple SAP systems can be connected using same .NET application to consume data using RFC. (Both SAP systems are having same schema like tables, RFC...)


1. USER1 is having access to SAP1 system and USER2 is having access to SAP2 system

2. Now USER1 is connected to application to execute "RFC1" rfc in SAP1 system. If USER2 is trying to access the application at same, application is taking SAP1 destination instead SAP2.

Code executed for SAP1: RfcDestinationManager.GetDestination(SAP1 coonection)

Code executed for SAP2: RfcDestinationManager.GetDestination(SAP2 coonection)

ERROR for SAP2: SAP.Middleware.Connector.RfcInvalidParameterException: Inconsistency in Destination name

Thanks for your inputs in advance!