Enhancement while user log out of the session

Advertisement
Hi
         We are connecting to the external system through web services and query it  to get the data. We will call this connection to external system from most of the important transactions. Our problem is, once the user connects to the external system, he has to stay connected tilll the user log out i.e. user has to disconnect while he log out. I am using shared objects and creating instance while user connects. But no clue where to clear this instance and close the connectivity. So, my question is there any BADI, Userexit or enhancement triggers while user log out or any other way to implement . Please advise
Regards
Shailaja.
Advertisement

Replay

HI Sailaja  ,
You can  check that  by Creating One RFC   by passing parameter   when you are connecting to external system  and also  when you are logging out of the external system  , one flag can be paased to RFC  when he logs out and  can close the session accordingly  .
Regards
Deepak.