How to implement session varibles and how to use it

how to implement session varibles and how to use it.ple help me

Please see the below blog, Hope it helps!!!
http://obieetraining11.blogspot.com/2012/06/create-initialization-block-for-session.html

Similar Messages

  • BC4J/UIX: How to implement session timeout and logout?

    Hi,
    I need to implement logout function in my UIX application. We use JAZN basic authentication. So several things need to be done when user clicks 'logout'
    1. Any pending transaction is rolled-back.
    2. App Module - what to do with it?
    3. Browser closes or redirects to other page. Any attempts to go BACK will show either 'session expired' or will redirect to login page.
    Also I need a mechanism where if user is idle for say, 10 minutes, that he/she will be automatically logout (maybe after some warning message). How to do this?
    Thanks
    Rade

    Well if you search long enough, you will find your own answers. After months of not having this solved, I found the solution, in a piece of sample code from oracle that is distro with the OC4J stuff.
    if (request.getRemoteUser() != null) {
         // notes that the application is responsible for cleanup
         //invalidate the HttpSession
         HttpSession session = request.getSession();
         session.invalidate();
         String url=null;
         oracle.security.jazn.oc4j.WebSSOUtil.globalLogout(response,url);
         } else      out.println("You are not logged in!");
         out.println("</BODY>");
         out.println("</HTML>");
    This is the piece I was looking for, a way to kill off the SSO session. Now when I click logoff, the user is actually logged off the application and their HTTP session is killed off as well.
    Kelly

  • How we create custom infotype and how to configure with its subtypes.

    hai abap-hr gurus,
    how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
    plz help me for this with an example code.
    thanks..
    kiran kumar

    Hi Kiran,
        Please fallow the below steps to create the custom infotype. If you have any quires let me know.
    For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
    then select the `Employee Infotype' radio button
    after that select the `PS Structure Infotype'
    then click on Create… A separate table maintenance window appears
    then Create a PS structure with all the fields you want on the infotype
    Save and Activate the PS structure
    now Go back to the initial screen of PM01
    Click on `All' push button. It takes a few moments
    Click on `Technical Characteristics’. Infotype list screen appears
    Click on `Change'(pencil) button
    Now select your Infotype and click on `Detail' (magnifying glass) button
    Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
    Give your subtype field as subtype field & Save and come back to PM01 initial screen
    Click on `Infotype Characteristics' … Infotype list screen appears
    Click on `Change' (pencil) button & on New Entries
    and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
    to fill yours). Now save ur entries
    Now the Infotype is created and ready to use.
    If you want to change the layout of the Infotype as per your
    requirement…
    In the PM01 initial screen…Select `Screen' radio button and give
    2000 as the screen name, then click on edit.
    In the next screen.. Select `Layout Editor' and click `Change'.
    Screen default layout appears…here you can design/modify the
    screen..change the attributes of the fields..etc.
    Save and activate. (Don't forget to `Activate at every level)
    Regards,
    Ramakrishna kotha.

  • Cursor arrow gone from solid black to having white lines go through it and trackpad is not working properly in mail and adobe acrobat - anyone know how this could have happened and how to solve it?

    Can anyone help me?  Concerned that I may have some kind of malware.  My cursor arrow and trackpad are behaving strangely,  The cursor used to be a solid black arrow but now seems to have horizontal white lines running through it.  The trackpad does not function normally either.  For example, when I use my trackpad to scroll up and down in mail  it sometimes works and sometimes does not.  In adobe acrobat it sometimes does not work.  In facebook, the cursor does not line up behind the menu keys as it should.
    Any one know how this might have happened and how I can stop it?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • My Itouch 4 back camera doesn't work, it freezes when i try to open it, how can i fix this and how much will this cost?

    Can someone please tell me whats wrong, how I can fix this and how much it will cost me??

    If in settings, music, volume limit is off then restart your phone first. Hold the home and off button down until the apple symbol comes up.

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    You'll get better performance if you use a Firewire hard drive (especially if you buy a 7200 RPM drive). Firewire's IO speed is significantly faster than USB 2.  USB 2 has a theoretical max speed of 480 Mbps except that it has extremely high over-head.   The fastest speeds you can typically get are about 300 Mbps.   Firewire, on the other hand, has very little overhead.  The fastest speeds you can get are very nearly 800 Mbps.  You will typically be constrained by the maximum read/write speed of the drive, not the speed of the I/O on the Firewire bus.  Now if you had one of those nice shiny new Macs with the Thunderbolt I/O and a Thunderbolt drive (Light Peak) ... I think they alter space and time so that your data arrives before you know you want it. 
    Also... unless you want to buy a solid state drive (very expensive), try to keep your hard drives from becoming much more than about 60% full if you want great performance.  A nearly "full" hard drive is, on average, only about half as fast as the same hard drive when nearly empty.
    USB 2 will work perfectly fine... just not as fast.
    Also... it's much safer to move the entire Aperture library than to "relocate masters".  Your images must be managed.  You can Aperture manage them, or you can manage them.  But someone has to manage them.  If you "relocate" them so that they are no longer stored inside the Aperture library then you'll need to work out a system of how you decide to organize things and it's critically important that you don't start moving files around or deleting things without Aperture's knowledge.  If you do, you'll break the links to your masters and start having problems with missing masters.  If you have Aperture manage the library then you don't need to worry about any of that stuff.... it's safer.
    Do make backups (use the Aperture Vault or use some other backup program, but make sure you back up your work if you care about it.)  There are only two kinds of hard drives in the world:  (1) those that have failed and (2) those that are going to fail.  There are no exceptions to this rule.  Hard drives are cheap.  Backup software is built into Aperture and into your Mac.

  • How to create a partner and header record using CRM_ORDER_MAINTAIN?

    Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
    I tried to  create a record, but i only managed to create a header record and the partner record is not reflected in the transaction.  Why is that so? is there any indicator that i need to include?
    Thanks..
    Jen

    Hi Jen!
    I use this FM and it works perfectly.
    Use this to create a partner:
      gs_partner-ref_handle    = '0000000001'.
      gs_partner-ref_kind      = 'A'.
      gs_partner-ref_partner_handle = '0001'.
      gs_partner-partner_fct   = '00000001'.
      gs_partner-partner_no    = NO_PARTNER. "number of the partner, bu_partner
      gs_partner-display_type  = 'BP'.
      gs_partner-no_type       = 'BP'.
      gs_partner-kind_of_entry = 'C'.
    *  ls_partner_l-ref_handle    = '1'.
      gs_partner-ref_guid      = '00000000000000000000000000000000'.
      APPEND gs_partner  TO gT_partner .
      ls_input_field-ref_kind  = 'A'.
      ls_input_field-logical_key   = '0001'.
      ls_input_field-objectname  = 'PARTNER'.
      ls_input_field-ref_handle  = '0000000001'.
      ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'NO_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_FCT'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_NO'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      INSERT ls_input_field  INTO TABLE  gt_input_fields.
      clear ls_input_field-field_names[].
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
    *    it_schedlin_i   = gt_schedlin_i_com
        it_partner      = gt_partner
    *    it_sales        = gt_sales
    *      it_orgman       = gt_orgman
    *      it_appointment  = gt_appointment
    *      it_ordprp_i     = gt_ordprp_i
    *   it_product_i    = gt_product_i
    *      it_activity_i   = gt_activity_i
    *      it_pridoc       = gt_pridoc_com
      CHANGING
        ct_orderadm_h   = gt_orderadm_h
    *   ct_orderadm_i   = gt_orderadm_i
        ct_input_fields = gt_input_fields.
    *      ct_doc_flow     = gt_doc_flow
    *      cv_log_handle   = gv_log_handle.
    Hope it helps u,
    Regards,
    Mon.

  • The bottom of my macbook is falling off how do i fix this and how much does it cost?

    the bottom of my macbook is falling off how do i fix this and how much does it cost?

    Check this article http://www.apple.com/support/macbook-bottomcase/

  • How to apply OSS note and how to use it?--thanks

    Hi, morning all,
    I want to know how to apply OSS notes and how to use it, pls help me.
    Thanks.

    Applying OSS note is a critical activity in the system. Usually this task is carried out by the basis, as they maintain the system and the notes, support packs, etc.
    A OSS note has potential to impact the system in several ways. So it is better to work with the basis if  you need to apply a OSS note to be applied.
    Transaction code is Snotes. But pl dont attempt to apply by yourself.
    Reg your other question as how to use the OSS note, there is nothing like using aOSS note. Just apply and depending on what the notes do, it may change the config, or download a program or something.
    Ravi Thothadri

  • I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    Look at the USB stick in Disk Utility and check whether it may be partitioned or have other software on it taking up space.

  • How run app for customers and how to send dunning notice to vendors

    Hi experts.
    Can any one help on following issue with example scenarios.
    how run app for customers and how to send dunning notice to vendors

    Hi,dear
    you should enter customer account numbers in f110 for payment receiving from customer, and assign dunning procedure to vendor master record and process the dunning to vendor by using f150.
    regards,
    nagesh.

  • How process app for customers, and how to send dunning notice to vendors

    Hi experts,
    can any one help on this
    how process app for customers, and how to send dunning notice to vendors
    Thanks & regards,
    vinod
    Moderator: Please, read and respect SDN rules

    Hi,dear
    you should enter customer account numbers in f110 for payment receiving from customer, and assign dunning procedure to vendor master record and process the dunning to vendor by using f150.
    regards,
    nagesh.

  • If I'm suspecting that I'm hacked, how can I confirm it and how can I Un-hack/get rid of it ?

    If I'm suspecting that I'm hacked, how can I confirm it and how can I Un-hack/get rid of it ?
    Knowing that when I turn On my Macpro, the Apple logo appeares late and always when Im connected to the WiFi It notifys me that there is someone using my IP address!!

    You aren't being hacked. Your wireless network is probably misconfigured and/or hacked. Turn on WPA security and then reboot it.

  • My IPAD (original version) is deleting everything over 30 days from my calendar.  How can I prevent this and how can I get the deleted events back?

    My IPAD (original version) is deleting everything over 30 days from my calendar.  How can I prevent this and how can I get back the deleted events? 

    You are most welcome

Maybe you are looking for

  • Discussion board subject links to replies

    We have discussion boards on Sharepoint 2013. When you use Management view (or any other custom view) all subject columns are not linking to items themselves, but list of replies instead (if there no replies, it's not showing anything). Why is this a

  • Can I add a interactive PDF to a video?

    Hello, I'm new to Mac (bought a Mac Pro last month) and FCE (installed one week ago. This weekend I recorded my daughter's high school play and I plan to make a DVD for the parents of the play. I would like to add the playbill to the DVD not as extra

  • Add new fields in SAP transaction IW22

    Hello, I want to add 2 new fields in SAP standard transaction IW22. I checked the package for this transaction and it is IWOC. I searched the exits for package IWOC but was not able to find any screen exits for it. Kindly help me on how I should proc

  • CHANGES IN KONV TABLE on VA02 ADDRESS CHANGE

    hi SAP experts , can any one say when the sales order is changed in the T code. va02 ( just changed the address ) the condition table is changing its values  like vat is getting zero . can any one please say the reason behind it . here i have attache

  • Questions about Web Sync

    Hi all, I have what is hopefully a simple question that I'm just overlooking.  This is my setup: SQL 2008 R2 on server. SQL 2008 R2 Express on client. Windows 2008 R2 running IIS. I have configured IIS with replisapi and can see the webpage.  all of