Skip to Content
Jan 28, 2020 at 09:44 AM

DiAPI disconnect delay

781 Views Last edit Jan 28, 2020 at 09:49 AM 2 rev

I use code below to disconnect my program from sap:

private void Disconnect(){
    oCompany = null;

It works but it takes some time (1-5 minutes) for sap to realise that connection was close. Problem comes when the same user try to lon-on again in any other device. They have to wait until session is really closed by SAP.

I've made a very simple form that connects to SAP and disconnect using that function. If I look at connected clients in SAP, I can see how this software is registered as connected as soon as I connect, but it takes a few minutes to disappear after I disconnect.

Is it possible to force this connection to be closed faster?

* Using sap 9.2, C#, DI API