cancel
Showing results for 
Search instead for 
Did you mean: 

SAPKW35012. Session remains in SM04 in the BW system.

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Composite SAP note for several smaller problems

<b>835122</b>

Regards

Siddhu

Former Member
0 Kudos

Hi,

Thank you,

but i have already SP12 for Relase 3.5 installed.

Helpless, hilfloss...

Former Member
0 Kudos

Hi,

Is there a possibility to check the connection or server-session in FrontEnd,

except checking "SAP.Functions.Connection.IsConnected = 1"?

What event changes this property (IsConnected)?

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

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

Hope it helps..

Regards-

Siddhu

Message was edited by: sidhartha

Former Member
0 Kudos

Hi,

Thank you, but i have not found in OSS exactly appropriated Note.

Message was edited by: AndyML

Former Member
0 Kudos

Hi,

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

Former Member
0 Kudos

Hi,

There is no process (sm51, sm66).

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

sm21: (for user)

-


Communication error, CPIC return code 019, SAP return code 728

> Conversation ID: 18158141

> CPI-C function: CMSEND(SAP)

Problem class....... K SAP Web AS Problem

Development class... STSK

-


???

Former Member
0 Kudos

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?