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?
Why?
Can anyone help me?
Thanks, best regards,
AndyML
P.S. There is no problem in SAPKW30B21.

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

Similar Messages

  • ABAP WebDynpro - Session remains open....

    Hi Experts,
    We have configured ABAP Webdynpro (SD Order Creation) iView in SAP Portal. When we test it from intranet, everything works fine and session in backend gets terminated when we leave that page on portal. But when we test it from internet, session remains open and not getting closed. How to terminate these onen sessions??
    SAP Portal and backend SAP ECC are on same domain....
    Helpful answer will be respected.....
    Thanks
    PRAMOD

    Hi Parmod,
    are you accessing the application in exactly the same way in the two cases?
    logging into portal from internet?
    One thing that you might need to be wary of is a lack of pop-ups. The portal uses a pop-up window when a user closes the browser to terminate the session.
    I've had plenty of problems with pop-up blockers that have prevented this pop-up from terminating the portal sessions. Sometime these pop-up blockers are configured to operate only on internet sites and not on internal intranet sites. That might be a possible cause.
    Cheers,
    Chris

  • ABAP WebDynPro iView: Session remains open in backend.....

    Hi Experts,
    We have configured ABAP Webdynpro (SD Order Creation) iView in SAP Portal. When we test it from intranet, everything works fine and session in backend gets terminated when we leave that page on portal. But when we test it from internet, session remains open and not getting closed. How to terminate these onen sessions??
    SAP Portal and backend SAP ECC are on same domain....
    Helpful answer will be respected.....
    Thanks
    PRAMOD

    Hi Arun,
    Thanks for the comment.
    Let me try this and will get back with result.
    Regards,
    PRAMOD

  • Too many http plugin sessions seen in SM04

    Hi,
    There are too many http plugin sessions created in SM04 in production system for a custom transaction.
    The client claims that such multiple sessions are there only for this particular transaction so there is some problem in abap code of this z-transaction.
    Could you please help, what abap syntax or logic might lead to creation of such multiple http plugin sessions for the transaction.
    The only known reason is that incomplete log off by user (closing the browser w/o loggin off etc) which created sombie sessions - but this is not applicable here because there are about 30 sessions created and user certainly does not log off so many times. Other activity by user is browser refresh etc but that canot be applied to only this particular transaction.
    any help is appreciated.
    thank you
    B

    B
    Did you find solution to your issue?
    We are having a same problem but SAP asked us to recreate it. It is completely random and happens very rarely. If I would know how to recreate it I would probably solve it myself
    Regards
    Michael

  • Switchport session remain authenticated

    I am facing a problem during deployment. Customer is using Avaya IP phone. If an autheticated workstation/laptop shift from one phone to another, the old switchport session remain there. The laptop acquire IP from new phone but even fail to ping gateway. If I do old phone reset or do 'clear authen sess interface', then laptop ping gateway. 'Clear arp' or 'clear mac-add table dynam' doesnt solve the issue. How can the ISE detect removal of a workstation to clear the authentication.

    two ways:
    CDP enhancement for second port disconnect (Cisco phones) 
    Proxy EAPoL-Logoff + inactivity timer (non-Cisco phones)
    http://www.cisco.com/en/US/docs/solutions/Enterprise/Security/TrustSec_1.99/Dot1X_Deployment/Dot1x_Dep_Guide.html

  • ISE-switchport session remain authenticated

    I am facing a problem during deployment. Customer is using Avaya IP phone. If an autheticated workstation/laptop shift from one phone to another, the old switchport session remain there. The laptop acquire IP from new phone but even fail to ping gateway. If I do old phone reset or do 'clear authen sess interface', then laptop ping gateway. 'Clear arp' or 'clear mac-add table dynam' doesnt solve the issue. How can the ISE detect removal of a workstation to clear the authentication.

    two ways:
    CDP enhancement for second port disconnect (Cisco phones) 
    Proxy EAPoL-Logoff + inactivity timer (non-Cisco phones)
    http://www.cisco.com/en/US/docs/solutions/Enterprise/Security/TrustSec_1.99/Dot1X_Deployment/Dot1x_Dep_Guide.html

  • Session not closed on closing the IE 8 browser.

    hi,
    We are facing this strange problem in IE 8 and 7 browser, but it works fine in  IE 6,
    When i close the IE window the session remains open, and then if i try to open the portal link
    it take me to the open session with out asking ID password.
    Our portal is recently upgraded to SP21 level.
    Please guide on this.
    Regards,
    Sanjyoti.

    Hi Sanjyoti,
    The problem which you are facing is not related to SAP portal , it is a general problem or you can also call it is due to user cookies  present in the latest broswer i.e in IE 7 or IE 8.
    You can generate the same problem for yahoo or gmail on IE 7 or IE 8.
    just do the following steps.
    1. Close directly the portal page.
    2. Clear the temp files from internet explorer.
    3. now call the portal page , now you should not able to login direclty , it sure now it will ask for credentials.
    If you have to resol;ve this problem permanently, do the following activies.
    ( this activity need to be done on all browser of users )
    1. open internet explorer
    2.  Go TOOLS --> Internet opitons.
    3.  then got Advance
    4. now in setting box, scroll to security.
    5. now check the check box ( EMPTY TEMPORARY INTERNET FILES FOLER .....)
    6. Click on apply and ok.
    Once above activity is done close the problem and now generate the problem which you are getting .
    now should not face the problem which you are getting.
    Thanks
    Anil
    Thanks
    Anil

  • Does calling session.invalidate() also removes all the session attriutes?

    Hi,
    I want to know whether calling session.invalidate() also removes any objects in the session attributes.or we have to explicitly remove objects from the attributes.
    I want to know this because my application is having some memory related problems. In my application when a user logs in we put many String objects int the session using session.setAttribute.
    Now when the user logs out we call session.invalidate() .
    Will these String objects occupy memory (i.e. will they be garbage collected ) after I call session.invalidate() ?
    or
    I have to explicitly remove all the session attributes programmatically?
    Any assistance would be of great help.
    Thanks & Regards,
    Nirmal

    Sigh. The invalidate dereferences all attributes from the current session. If the object doesn't have any other references (servlets? filters? listeners? whatever) then it will be eligible for GC. The object i.e the String objects does'nt have any remaining references after I nullified the arrayList (which was the one and only refeferencing the String Objects).
    There isn't any servlet, filter, no other entity that is referencing the arraylist once the user's session is invalidated.
    But still when I take the heap dump I'm gettingt those String objects in the heap.........
    Once a user logs off we call his/her session.invalidate() and we don't want any of his/her arrayList (containing String objects) in the memory anymore.
    Please tell me according to you what should be done in order to get rid of the unwanted String objects in the heap, beside my silly lines of code.
    I've load tested the application using jmeter (say for 100 users) and for each of the users the String objects(contained in ArrayLIst) stored in the session are still available even though we called session.invalidate() for each of the user.
    This is a major concern for memory related problems that we people are facing here.
    Any help would be of great ......
    Thanks & Regards,
    Nirmal

  • Not find EWA Session in the managed system

    Hi all,
    I am configuring SOL 7.1 for EWA.
    I have configured SDCCN both on Solution manager 7.1 and Managed System.
    In the solution manager, i can find EWA session for managed system.
    The question is : When i run "Refresh sessions" on the T-code: SDCCN of Managed system, it can not retrive EWA session where exist on the Solution manager.
    How do i do? Can someone help, please.
    BR
    Wu

    after reconfiguration in new client,
    Follow Note 727998 - Complete Replacement of Service Definitions for SDCC/SDCCN
    step 1 :
    in the solution manager:
    1.1 run report  BDL_DELETE_ALL_TABLES in SE38
    1.2 SDCCN-> Goto -> Settings -> Task specific -> RFC destinations.
           Ensure that connection 'NONE' and SDCC_OSS is maintained, and that the 'master'
    1.3 Execute a "service definition refresh" in SDCCN
    1.4 Delete any task 'Maintenance Package' in the 'To do' tab in SDCCN.
    1.5 Create a new periodic task 'Maintenance Package' in SDCCN
    1.6 Call function module /BDL/_GENERATE_LOGFUNCINCLUDES in SE37
            Assign the value 'ALL' to the import parameter 'OPTION' (keep the default values for all other parameters) and execute the module.
    1.7 Execute "refresh session" in SDCCN
    step 2:
    in the managed system:
    1.1 run report  BDL_DELETE_ALL_TABLES in SE38
    1.2 SDCCN-> Goto -> Settings -> Task specific -> RFC destinations.
           Ensure that only connection SM_<SOL>_BACK' (delete SDCC_OSS )is maintained, and that the 'master'
    1.3 Execute a "service definition refresh" in SDCCN
    1.4 Delete any task 'Maintenance Package' in the 'To do' tab in SDCCN.
    1.5 Create a new periodic task 'Maintenance Package' in SDCCN
    1.6 Call function module /BDL/_GENERATE_LOGFUNCINCLUDES in SE37
            Assign the value 'ALL' to the import parameter 'OPTION' (keep the default values for all other parameters) and execute the module.
    1.7 Execute "refresh session" in SDCCN
    Best Regards,
    Wu

  • I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

  • Is it possible to stream a Google Hangout session from iPad 2 to the TV?

    Hosting a Google Hangout with 15 people at my house, to family in Seattle. I know I can download Google+ and participate (but not instigate) a Hangout session but can I connect the iPad 2 to the TV (via a composite cable or VGA cable or . . . ) so that we can all watch it on a big screen? Thought there was some way to 'mirror' the iPad to a bigger screen (ie a television).
    Thanks much! Saw one solution on CNET but it involved jailbreaking which I am not willing to do.

    GREAT! I seem to remember an ad for the original iPad that showed it in a classroom mirroring whatever was on the iPad to a screen. Can you tell me why my Composite connector won't work? Only a VGA or Digital AV adopter cable? You answered my question but just wondered what the difference was? THANKS MUCH!
    (have to go buy one)
    Will it mirror ANYTHING???? Could I use it to teach how to use an iPad????
    Thank you!

  • My problem is that I am working on a page and then I receive ....Error saving the journal. Perhaps your session has expired-try reloading the page".

    My problem is that I am working on a page and then I receive ....Error saving the journal. Perhaps your session has expired-try reloading the page". I used to receive from Firefox when reloading page...To display this page, Firefox must send information that will repeat any action'. Now I don't receive this message and I lose info that was entered. How do I get this to pop up again so I can save my messages.
    Using Firefox 22.0 u to date

    This can be caused by corrupted cookies or cookies that are blocked (check the permissions on the about:permissions page).
    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    You get an alert about resending POST data if you go back to a page or refresh a page that was previously requested from the server by submitting form data via a (hidden) POST form.<br />
    Firefox can only make sure to get the same page by resending that POST form.<br />
    Firefox doesn't know what that form data means, so Firefox asks for confirmation before resending that form data as such an action can cause you to repeat an action and buy another item or post a message another time.<br />
    A way to prevent this pop-up about resending POST data is not to use the Back button, but to open links on a page requested from a server by sending a form with POST date in a new tab (window) with a middle-click or a Ctrl + left-click.

  • I have been using Find my iPhone for over a year to keep track of my 12 year old daughter occasionally.  All of a sudden when I click on the app icon it asks me to log in.  This has not been the case.  It has always remained logged in in the past.  W

    I have been using find my iPhone on my iPhone 4s for the past year.  I will look at it occasionally to keep track of my 12 year old.  All of a sudden I have to log in every time I click on the app.  I have always remained logged in in the past.. I upgraded to IOS 8 today thinking that might fix it.  It has not.

    adkennon wrote:
    And maybe you don't talk to too many people but I've been on many forums on different websites where people have had similar problems and a lot of people in the store were having battery problems where they were draining too fast. What I learned is that all the people who did not download the updates are good. There phone is working the same. The people who have, they're having battery problems
    I have downloaded every update and my battery life is better than any previous iPhone I have ever owned. I see posts from hundreds of people every day, and this is not a commonly reported problem. While there are a few random reports of battery problems, it is no more than I have seen for any other model or any other version of iOS in almost 8 years. Usually problems of rapid battery drain can be traced to bad apps (FaceBook is the worst offender) or corrupt data being synced from iCloud or other sources (gmail, Windows Live, Yahoo, etc).
    The simple test is to restore the phone as New. Do not create any email accounts. Do not install any apps. Do not enable FaceTime or iMessage. Do not enable Twitter or any other social networking app. Use it for a day and check the battery usage. You will find that it is working well.
    And also see this: http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain. It is the best treatise I have seen on the subject of battery usage.

  • Override the GROUP system session variable within an initialization block

    Hi,
    We're trying to override the GROUP system session variable and having no luck. We've created an initialization block to return the semicolon-separated list we're looking for but when a user logs in, it seems like it is overridden with the default. When we change the name of the variable to something other than GROUP, it works great and we get the expected value. Is there something we're missing with overriding the particular value?
    Here is the query we're attempting to use for the variable:
    Select 'GROUP',
       ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
    From CSS_OBI_USER_ROLE
    Where USER_EMAIL In (':USER')
    We also tried:
    Select
       ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
    From CSS_OBI_USER_ROLE
    Where USER_EMAIL In (':USER')
    We made sure that the variable name was 'GROUP' as well.
    Not sure if it's important to note or not, but the returned values do correspond to existing applications groups already defined within OBI.
    Any help is greatly appreciated!
    Thanks,
    Jas

    since you have value as OpsReviewViewer;OpsReviewAuthor:BIAdministrator
    my not help row wise setting
    try to handle ; part using sql query so that you get those number of records to use row-wise
    so this
    Select 'GROUP',
       ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
    From CSS_OBI_USER_ROLE
    Where USER_EMAIL In (':USER')
    with row-wise show work

  • When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

    When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

    When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

Maybe you are looking for

  • Remove ":" from select option label(description)

    Hello All I have a requirement to remove the select option description (which SAP displays by default from the field label maintained in the data element), I thought the best way to achieve that requirement is by passing "space" to the parameter  'I_

  • Please PLEASE help, how do I go to the Camera Raw in PSE 7

    Hi, I have the elements 7 and have gone online and followed all the directions to up load the new plug in for camera raw, well I still have no clue how to open the Camera Raw window in PSE..... I am about ready to toss the computer out the window lol

  • Abap performance issue

    hello all ,               I am trying to read org unit text from t527x table inside get pernr and end-of-selection  loop. Performance wise is it better to use select statement or function module to get the text or read all the possible texts into an

  • CTAS with BLOB column very slow

    Hi, I am creating a new table from backup table having BLOB type of data. Table size for backup table is approx 250G (along with lob segment) and I am creating new table with predicate selectivity of 110 GB. Query used is "CREATE TABLE CLAIM AS SELEC

  • Direct / indirect quotation

    Hi Experts, I have a peculiar problem. For only one vendor while accounting the invoice thro MIRO sytem is taking Direct quotation rate maintained in OB08. But for PO etc it is taking from ratios as maintained in exchange rate table. Is there any set