Executing BAPI at the beginning of user session

Hello everybody,
I need to run a BAPI to fetch some specific information from R/3 and save it in the session for re-use.  I am planning to use IUserContext in Request to populate with this new data.  What would be the best approach to do this? 
Your ideas are greatly appreciated.
Thanks,
Alex

This behavior is the new Resume feature of Lion. If you want to stop Resume system wide, you can follow these steps:
Make sure no applications are running.
Go to User Library (which is now hidden: hold Option key while going to Go in menu bar).
Once Library is open, scroll down to Saved Application State folder.
Open folder and delete every single file in that folder.
Close folder, control click it, and choose Get Info.
In the resulting window, scroll down to check the "Locked" option.
(if necessary, you may have to unlock the lock at the bottom and enter your admin password. When done, lock the lock.
Since this folder is now locked, no application can write anything to it. Note: this is system wide, so if you want some to open at login, don't do this. I did this way back in August and have not been bothered by Resume since.

Similar Messages

  • How to wash out an AM instance variable at the end of user session (logout)

    We have a need to create AM instance variables to hold some session level data, which is too complex to be held in a transient VO.
    What we observed is that the instance variable is not washed out at the end of the user session (i.e logout).
    I think since the AM instance is not really destroyed but only release back to the pool the instance variable content persists and is carried over to the next session that access the AM instance.
    What method in AM can be overridden to wash out this instance variable.
    At the moment we are resetting it in prepareSession(), but this means that the information is still held till the next session access the AM.
    It would be better to reset it when the AM is released back to the pool.
    Any pointers would be helpful.

    At the moment we are resetting it in prepareSession(), but this means that the information is still held till the next session access the AM.
    Note that prepareSession() is also invoked after AM activation so this can(and probaly will) reset your variable inside existing session.
    If you don't need to keep variable value between AM activations/passivations, you can use userData, for example:
    this.getSession().getUserData().put("someKey", value);
    UserData values are lost after AM passivation (by default).
    If you need to keep UserData variable value for lifetime of user session, then you can override passivateState() and activateState() as in this sample:
    Application State Management
    Dario

  • How to grab the total # of user-sessions?

    Hi everyone,
    Looking through the javax HttpServlet interface, I didn't see any way to capture the total number of current user sessions on the server.
    Is there a way to do with without setting any sort of variable counter? Ie, session.setAttribute("counter", x+1);
    Thanks!

    You could use an HttpSessionListener to know when they are created and destroyed and keep the cound in the application scope.

  • Setting default value read from user session, for an LOV in Query component

    I want to set the default value of a field in VO that participates in a named view criteria and thereby in Query component. That field is configured with an LOV by mean of a view accessor. The values are Y and N and the corresponding display strings obtained from view accessor are true and false respectively.
    I am able to set the default value by setting the value of the criteria item corresponding to that field in view criteria. I am setting the value as either Y or N and I am able to corresponding display string as per the view accessor, on the query component when it is rendered.
    I want to read the defauilt value from the ADF BC user session and set it as default value. I tried setting the values as "adf.userSession.userData.usageFlag". Iam ensuring that the attribute usageFlag is set before the view activity that has the query component is invoked. But this is ending up showing no default value in the Query component when rendered.
    Can any one let me know how to go about with this?

    I made up your table since you didn't provide some example, but I'm sure this will give you the picture:
    SQL> var run_type varchar2(1)
    SQL> exec :run_type := 'A'
    PL/SQL procedure successfully completed.
    SQL> create table my_cycles as select level cycle_id
      2                            ,      level cycle_status
      3                            from   dual connect by level <= 5;
    Table created.
    SQL> select cycle_id
      2  from   my_cycles
      3  where  case
      4           when :run_type = 'D' and cycle_status  = 1 then 1
      5           when :run_type != 'D' and cycle_status  in ( 2, 3 ) then 1
      6         end = 1;
      CYCLE_ID
             2
             3
    2 rows selected.
    SQL> exec :run_type := 'D';
    PL/SQL procedure successfully completed.
    SQL> /
      CYCLE_ID
             1
    1 row selected.
    SQL>

  • Which AM SDK API is used to retrieve user sessions

    Please identify the Java API that I can use to retrieve the status of User Sessions.
    I need to create a report that depends on users that have logged in and not timed out. These are the users listed on the Sessions tab of Access Manager web console.

    Hi,
    You can use getValidSessions(SSOToken, Server) API to get a list of valid SSOTokens. The token needs to be an admin token to get all the tokens. Check the javadocs for the details.
    http://docs.sun.com/source/820-3739/index.html
    shivaram

  • How do i get the playhead to start at the beginning of a clip?

    This should be an easy one.  For the life of me, I can't figure out how to play from the beginning of a clip (region).
    Isn't there a setting that will allow me do play directly from the beginning of a clip, and not just from the beginning of a session, or from a marker?

    Forgot about that one.
    I appreciate all the feedback from everyone.
    Bob Holmcrans
    voiceover
    voiceover coaching
    audio production
    telephone: 240.731.8001
    email: [email protected]
    website: www.bobvoiceover.com

  • Premiere Pro CS5 - Peak files regenerating in the middle of edit session...

    Peak files generate at the beginning of edit session as expected.  Then unexpectedly get peak files generating during the edit session. I notice the file names for the peak files generating are the same files that were loaded upon opening the edit session.
    What are the potential causes of this?
    Intermittent drive failure??  Premiere Pro issue??
    Thanks.
    Hugh

    It happens somtimes for some people.  I don't think a finite cause is known at this time.  The general recommendation is to use only internal drives, no network storage and no externals.

  • Requesting user/session info causing error

    The provider application consists of 4 PDK .jar files (pdkjava.jar ptlshare.jar regexp.jar tidy.jar) among other things. It was working fine until User/Session info (per login) was requested. Now the following error is returned when adding a portlet page:
    The following error occurred when attempting to call the initSession of the Web Provider: DOCMEIPURLSUN
    SOAP-ENV:Server.Exception, , java.lang.NullPointerException at oracle.portal.provider.v2.http.URLProviderInstance.initSession(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.initSession(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.doMethodCall(Unknown Source) at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.processInternal(Unknown Source) at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.process(Unknown Source) at oracle.webdb.provider.v2.adapter.SOAPServlet.doSOAPCall(Unknown Source) at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Did I miss a PDK .jar file? Or did I miss some setup to enable User/Session info?

    It was our own application. Actually, it was a partner's web application. To integration it with Portal PDK V2, we added the 4 .jar files.
    Our real problem is not getting cookies sent from the application through the portal to the browser. That's why we tried different settings on the provider/connection page. First we checked the box 'Web provider in same cookie domain as the portal'. That didn't help. Then we selected the 'Once Per User Session'. Because of the error, we changed it back to 'Never'. Finally, we checked the box 'Require portal user specific session information'. It also didn't help.
    How could we solve the cookie problem?

  • Long delay for ManagedEventWatcher __InstanceCreationEvent query as number of user sessions increases

    We have a Windows service that monitors for process start events and sends notifications to client applications.
    We have discovered that the delay between when a process starts and when our EventArrivedEventHandler is called gets excessively long when the number of user sessions on the Windows server gets to about 80.
    The delay gets worse as the number of user sessions gets higher.
    The delays are not consistent. Even with 100 sessions some observed delays are short but most are too long and the maximum observed delay grows with the number of sessions.
    Here is one example of the delay we are seeing.
    A client application wrote its first log record to its log file at 11:05:34.076. Our EventArrivedEventHandler did not get notified of the process start event for the client application until 18 seconds later (at 11:05:52.188 ).
    We need the delay to be less than 5 seconds to be tolerable and would like the delay to be less than 3 seconds if possible.
    Is there something we can do to reduce the delay? Below are the details of our use of WMI.
    We are using an instance of class WqlEventQuery to represent a WMI event query in WQL format.
    We are constructing an instance of ManagementEventWatcher to consume events asynchronously.
    Below is how we are instantiating and running the query. Variable m_PollingIntervalInMilliseconds is set to 1000 by default.
                    WqlEventQuery query = new WqlEventQuery("__InstanceCreationEvent", new TimeSpan(0, 0, 0, 0, m_PollingIntervalInMilliseconds), "TargetInstance isa \"Win32_Process\"");
                    m_ManagementEventWatcher = new ManagementEventWatcher(query);
                    m_ManagementEventWatcher.EventArrived += new EventArrivedEventHandler(managementEventWatcher_EventArrived);
                    m_ManagementEventWatcher.Start();
    Our Windows service is not the only user of WMI services on the server. I do not know if there is contention with other users of WMI services or if there is something about the way we are consuming WMI services that is inefficient.

    Hello RossAtWFMC,
    It seems that the services are working with a complex environment, and currently, we do not have such an environment which could reproduce this issue you described. Anyway, I would like to share whatever I found and some suggestions about this issue:
    >> called gets excessively long when the number of user sessions on the Windows server gets to about 80.
     The delay gets worse as the number of user sessions gets higher.
    This seems to show that the issue is related with the number of user sessions, it may be that when with lots of user sessions, there are something additional delay the event to be fired. As you mentions, there are other services on that server machine, if
    possible, you could make a test to run your WIM service only to see if it is still delayed.
    >> Is there something we can do to reduce the delay?
    I suggest that you could check this blog below which provide a way to debug with the .NET course code:
    http://blogs.msdn.com/b/dotnet/archive/2014/02/24/a-new-look-for-net-reference-source.aspx
    So that you could know which method inside costs most time.
    From your provided code, it is not very clear if you use multi threads in your service, if not and your event handler is short, you could have a try with it, and there is a discussion about this topic:
    https://social.msdn.microsoft.com/Forums/en-US/13f30e33-7f61-498e-a91a-ef982a63453c/event-handling-in-multithreaded-apps?forum=netfxbcl
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to execute BAPIs by getting the input from the user through the browser

    Hi,
    I have created a simple xMII transaction using BAPI. It is a simple BAPI with one input. Now i want the transaction to be executed by getting the input from the user through browser. Once the user enters the value and clicks on a button, I want the result of the BAPI to be displayed in the grid. How to link the BAPI/transaction with applet/Javascript coding.
    Thanks.

    The first thing I would recommend would be for you to collaborate with your colleague Vinodh, since his/her recent thread is very similar to yours:  Calling a BAPI from web page
    In your case, the iGrid applet will run the Xacue query template and automatically display the results from your output parameter.
    I would encourage you to take a look at the sticky thread at the top of the forum entitled "MII Manufacturing Templates Updated" since this MII project is full of samples for you and your colleague to learn from.

  • SHAREid - A local user session could not be created for the assertion

    Problem: We have a client trying to federate to our environment using POST profile but we are getting the following error, "RECEIVER: ERROR: A local user session could not be created for the assertion".
    I verified that the user exist in the directory and I am able to execute a test successfully as that user.
    Thanks.

    There is a requirement that the client needs to send an attribute called "traveler" in the assertion. We found out that the problem occurs only when client sends a attribute in the assertion. When the assertion does not include the attribute, there is no issue. Not sure why that is the case as we have other clients sending the same attribute in the assertion.
    Here is the AttributeStatement.
    <saml:AttributeStatement xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><saml:Subject><saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">XXXXXX</saml:NameIdentifier></saml:Subject><saml:Attribute AttributeName="XXXID" AttributeNamespace="http://schemas.xmlsoap.org/claims"><saml:AttributeValue>XXXXX</saml:AttributeValue></saml:Attribute></saml:AttributeStatement>
    It does not have <saml:SubjectConfirmation> and <ConfirmationMethod> element. Can that be a problem?
    Thanks,
    Vinay
    Edited by: user504421 on Jul 9, 2009 2:17 PM

  • Execute BAPI Using Current User ID, Not JCo Connection User ID (v7.0)

    Currently when I call a BAPI, it executes under the username of the JCo Connection. User management is done via ECC, and not portal, so the User IDu2019s are identical.
    Is it possible to call a BAPI from Web Dynpro using the current portal user User ID?

    Hi,
        Select the model which is created for the Bapi (in the webdynpro content Administrator),  edit the JCO connection(modeldata) and select user method - Ticket, for the metadata you ca use a common communication userid.
    By this the BAPI is executed with the current logged in portal userid.
    Note:  For using this your portal as to be configured with SAP ECC with SSO.
    Hope this solves your issue.
    Regards,
    Manjunath

  • Java API Failed to authenticate the user session with LDAP

    I have created a Java class that uses the MDM Java Api's it works fine on our Development environment where the MDM server uses its own built in authentication, but when I moved it to our QA environment where MDM use LDAP for authentication its failed with a  'Failed to authenticate the user session'.  Has anyone seen this before?

    hi Dan,
    The java class which u have created that suppose to works fine on MDM server because to execute that program there are no requirement of such protocols, the problem u will face while exporting those program to an client machine
    LDAP(Lightweight Directory Access protocol) connector communicates with the SAP system using RFC and with the directory server using these standard communication protocol.
    so try to select the protocol such that it should help in making connection between the server,direcotryserver and the client machine through which u can execute u r java class using java Api's.
    i hope this will give u an idea to through ur problem.
    regards,
    swapnil

  • In ST03 , how can i see the Query name, user id,how many times executed the

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    EX:-if there is one report name X,I want to know how many users had executed X report today,weekly,monthly.
    ex:-query userid total number of execution
    sales order 0000555 5 times
    custmer 05855 2 times
    fast reply will be appreciated,

    Hi,
    Look here:
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/54df4204892a78e10000000a155106/frameset.htm
    Also check these:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/25/ece73a39e74d27e10000000a114084/frameset.htm
    Hope this helps..
    Bye
    Dinesh

  • COREid Federation Error: A local user session could not be created for the

    Hi,
    I installed two instances of COREid Federation in my machine. Also installed SiteMinder and LDAP. Source Domain of COREid (8101) uses LDAP as IdMBridge and Destination Domain (9101) uses SiteMinder as IdMBridge. I am trying to access the resource protected by the SiteMinder from the source domain using the URL which is constructed using the pattern given in the PDF:
    http://mymachine.domain.com:8101/shareid/saml/ObSAMLTransferService?DOMAIN=DestinationDomain&method=POST&TARGET=http://mymachine.domain.com:8887/Source/Source.html
    Assertions are generated and I can see the assertion in the Source domain and transferred to the Destination Domain.
    I get the following error in the Destination Domain Shareid Log file:
    ERROR - [http10113-Processor3] - RECEIVER: ERROR: A local user session could not be created for the assertion
    Please help me to solve this issue?
    Note: The Web agent runs on the web server instance 8887.
    SiteMinder is able to protect the resource when accessed.

    Typically that error occurs when the destinations access management system can't find the user based on the SAML attribute. Check to make sure that the attribute that you are matching on matches exactly.

Maybe you are looking for