cancel
Showing results for 
Search instead for 
Did you mean: 

Multi threading by Rfc lib while calling BAPIs

Former Member
0 Kudos

Hi Reiner,

We have just completed a proto-type to use SAP.NET in conjunction with ASP.NET for our customer website. DOT NET connector is using RFC library to call BAPIs. We tested it for following scenario :

1. Through .net connector, we called a BAPI that takes about 2 minutes to return the data.

2. Called same BAPI 5 seconds after the first one but with different inputs and this takes normally 1 minute to return the data

3. In this scenario, the second BAPI does not come back with the response till the first one is completed.

4. For the second BAPI we see a CPIC wait in SM50 till the first one is completed

This is a big problem for us. SAP RFC library cannot do multithreading ?

cheers

Ramesh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Both RFC Library and .NET Connector support multithreading. The behavior you described can be observed if:

- The calls were made over the same proxy/connection. It is the designed behavior that the second call will be blocked until the first call returns.

- There is no more free worker process on the SAP app server to serve the second RFC call.

Regards,

Guangwei