Skip to Content
author's profile photo Former Member
Former Member

SAPKW35012. Session remains in SM04 in the BW system.

Hi Gurus!

I use Visual Basic to call Function:

SAP.Functions.Connection.Logon(0, False)

SAP.Functions.Connection.Logoff

It works.

But sometimes the session still remain (SM04).

How can it be after session idle time out?

Can anyone help me?

Thanks, best regards,

AndyML

P.S. There is no problem in SAPKW30B21.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 08:38 AM

    Hi,

    Composite SAP note for several smaller problems

    <b>835122</b>

    Regards

    Siddhu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Warning!!!

      There is the bug in SAP Automation ActiveX (OCX) Control:

      Object: "Connection"

      Property: "IsConnected"

      "IsConnected" can be equal to "1" long time,

      after maximum user idle time exceeded on the server side.

      There are locked data and session has status "connected".

      Server: SAPKW35012 = BW Version 3.5 + package 12

      SAP GUI: 620

      Solution (Visual Basic for Excel):

      -


      Public Function Check_Connection_Status (objFunc As Object) As Boolean

      Dim objCall As Object

      If objFunc.Connection.IsConnected <> "1" Then

      Check_Connection_Status = False

      Else

      Set oSaveObj = objFunc.Add("Z_PING")

      Check_Connection_Status = objCall.Call

      End If

      End Function

      -


      Where "Z_PING" is dummy empty ABAP-Function.

      Best Regards.

      AndyML

      P.S.

      SAP ActiveX user manual:

      http://help.sap.com/saphelp_46c/helpdata/de/d8/44ca50ac3c11d189c60000e829fbbd/frameset.htm

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2005 at 02:40 AM

    Hi,

    SM04 is to display User List. To check if your query is still running, try SM66.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Another words...

      I have the window with message:

      -


      Sapgui 620

      BW: Auto logout (maximum user idle time exceeded)

      Time Mon Oct 10 18:04:51 2005

      Component DPTM

      Release 620

      Version 10

      Return Code -22

      Counter 1

      -


      But session (sm04) for user has status "Connected"

      and "SAP.Function.Connection.isConnected" = 1

      It does not depend on time!

      What do I wrong?

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 07:14 AM

    Hi,

    Go through the oss notes: <b>503557,867673,312847</b>

    Hope it helps..

    Regards-

    Siddhu

    Message was edited by: sidhartha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.