Open a new session

hello all!
I need to open a new session on a button click. How shoudl I do it?
Puru

Hi,
if you still need a solution...
Use the fm ABAP4_CALL_TRANSACTION. Example:
      DATA: l_sessname TYPE string,
            ls_spagpa  TYPE rfc_spagpa,
            lt_spagpa  TYPE TABLE OF rfc_spagpa.
       MOVE: 'BUK'             TO ls_spagpa-parid,
              '0010'    TO ls_spagpa-parval.
      APPEND ls_spagpa TO lt_spagpa.
      l_sessname = 'BLA'.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
        STARTING NEW TASK l_sessname
        DESTINATION 'NONE'
        EXPORTING
          tcode       = 'BLA1'
          skip_screen = 'X'
        TABLES
          spagpa_tab  = lt_spagpa
        EXCEPTIONS
          OTHERS      = 1.
As you see, you can use spagpa_tab  to transfer SetGet Parameter. A transfer via BDC is possible as well. Check out the fm description...
Andy

Similar Messages

  • Function Module to open a new session displaying a method of a class

    Hello All,
    I have a method A of class B.
    Now, in my current session, I have a button. When the user clicks on this button, what I expect is that a new session be opened and in the new session method A of class B be displayed.
    This is similar to the debugger, wherein, in the debugging mode, we can bring up the context menu in the Source Code (Edit Control) tool, and then select "Go To Source Code".
    So basically, I am looking for a Function Module which does the same.
    I came across Function Module CC_CALL_TRANSACTION_NEW_TASK, however, this will only create a new session.
    I could specify the transaction as SE24, but it then opens a new session with this transaction. That is it.
    My objective is to display the method of a class in a new session.
    Is there any Function Module in this case?
    Regards,
    Mithun
    Edited by: Mithun Kamath on Aug 9, 2011 5:35 PM

    Hello Sandra,
    Thank you very much. That was exactly what I was looking for.
    However, instead of calling EDITOR_PROGRAM directly, what I instea did was the following:
    1) Created a RFC enabled Function module.
    2) Inside this function module, I wrote the following code:
      SUBMIT tpda_editor_start AND RETURN
       WITH prgm  = is_alert_det-program_name
       WITH incl = is_alert_det-include_name
       WITH dynp = space
       WITH line = is_alert_det-line_no.
    The parameters above were similar to the one proposed by you.
    Borrowed the above from the class CL_TPDA_SERVICES_TOOLS, method NAVIGATE_TO_SOURCE.
    The above is basically called in the debugger, when we use the context menu in the editor tool and invoke the "Goto Source Code" functionality. This eventually calls the EDITOR_PROGRAM FM.
    The reason why I did this is because when I was testing the FM, it did not allow me to specify the include as CL_TEST=====CM01. I do not know why, probably I was doing it wrong. But it gave me a message saying that the object does not exist in table TADIR.
    Anyway, I did the above steps and it worked exactly as I wanted it to.
    I would like to thank you again.
    Best Regards,
    Mithun
    P.S. Forgot to add, I called the above RFC enabled FM as a new task.
    Edited by: Mithun Kamath on Aug 10, 2011 4:19 PM

  • How to open a new SESSION in another SESSION

    Hi!
    I would like to start a transaction in the current session (session 1); I want to open a new session (session 2), execute some updates, do the COMMIT (without commiting the data of the session 1) and close the session 2.
    I'm using JSPs and Data Web Beans.
    How can I open and close a new session?
    I would appreciate an answer?
    Thank you.

    hi,
    You can try to create another properties file only for that session. Then you instantiate the bean, that you want to create the new session, with that new properties file and i think a new session will be created. But im not sure .....
    Bye,
    RB
    P.S.: by the way, what does APAF stands for???
    null

  • How not to get back on the page i just closed when opening a new session

    How not to get back on the page i just closed
    when opening a new session?
    I do have a live stream radio on now...
    Therefor new session might not be the complete truth.
    Gerard

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • I want Firefox to open a new session each time I use it rather than to try to recover my previous one; how do I go about this?

    What more details do you need? I want to open a new session when I use your product rather than have the product go through the slow tedious process of trying to recreate the previous session.

    Please see this support article on [[Session Restore]]. Follow the instructions under the "Configuring session restore" header. When you get to the step where it says "Show my windows and tabs from last time" you can choose from showing your homepage or showing a blank page instead.

  • Firefox process keeps running. I cannot open a new session until I manually stop Firefox 32 process in tax manager. Using Win Vista Ultimate 64 Version 6.0 Service Pack 2

    Firefox process keeps running. I cannot open a new session until I manually stop Firefox 32 process in tax manager. Using Win Vista Ultimate 64 Version 6.0 Service Pack 2

    Firefox is already running but is not responding
    * https://support.mozilla.com/en-US/kb/Firefox%20is%20already%20running%20but%20is%20not%20responding
    Firefox Hang at Exit
    * https://support.mozilla.com/en-US/kb/Firefox%20hangs#w_hang-at-exit
    Check and tell if its working.

  • [fixed] DVD burning problems "Unable to open a new session."

    I'm using a blank DVD (Yes, it really is blank. See below.) I tried to burn an iso on it. k3b fails, complaining "Unable to open a new session. Probably a problem with the media."  If I use cdrecord, the same thing happens. Changing the burn speed (from the auto 8x to the minimum supported by the drive: 6x) doesn't help. The same thing happened when I ran cdrecord as root, with a priority of -20. (My user is in the optical group anyway.)
    I tried burning the same iso to several different blank DVDs. cdrecord and k3b say the same thing for each. I tried burning the same iso to the same/first disc on another computer. It worked.
    So what's wrong with this machine?
    I have not tried using another DVD drive. I have not tried using a different iso.
    Last edited by onexused (2014-08-27 12:40:54)

    If no applications work and no discs work then the drive might be broken. But before you spend money / bug your friends to borrow a disc drive, here's one more simple test:
    Boot into a live environment of a "stable" Linux distribution, such as Linux Mint or Puppy Linux or whatever, and try burning a disc.

  • How to revoke everything from a user when opening a new session.

    HI,
    I am using oracle 10g Express Edition and SQL Developer.
    I have 2 user, 2 database connections in my SQL Developer.
    First user is Oracle and its database connection is called TCF.
    Second user is SMITH and its database connection is called TCF_SMITH.
    Oracle user has privileges to do anything.
    SMITH user has no privileges except for CREATE SESSION.
    What I am trying to achieve is assign a user to a role (this role will have grants to select, insert , update from tables) for the current session (this step is successful), and then revoke
    The role from that user (set it back to its default/or revoke everything from it) if opening another session, or session has been terminated (what I am trying to achieve).
    From TCF I was able to do the following:
    CREATE synonym SMITH.EMP_IOD FOR EMP_IOD;
    CREATE ROLE TCF_I;
    GRANT SELECT, INSERT, UPDATE ON EMP_IOD TO TCF_I;
    GRANT TCF_I TO SMITH;In TCF_SMITH
    SMITH has the same privileges as TCF_I.
    so, smith now can select, insert , and update from EMP_IOD table.
    If I open another TCF_SMITH session, and select * from EMP_IOD I should not be able to see any of the records.
    I am trying to make this session base only. Unfortunately when opening another session I am able to select, update and insert records in the new session.
    Is there a way to make this session based ?
    How can I revoke everything from user SMITH from TCF connection ?
    Thanks,

    Oh My Good Lord!
    Rooney,
    What are you attempting to do ?
    In programming anything can be achieved, but there are speicifc tools to solve specific problems .
    I think you are trying to use fork to paint a wall* (If painting the wall indeed is your requirement).
    The "need" as you say...
    +The need for this is to grant the user different roles each time the user logs in.
    for example I can log in 5 different time in one week with different role each time.
    Moday I could have access to X,Y,Z,
    Tuesday I could have access to X,A,B
    Wednesday I could have access to A,B,C.+
    ... is to solve WHAT PROBLEM?
    Please describe your original requirement , not what you think should be the solution/tool to satisfy the requirement.
    In your previous thread you "solved" privilege/role problem by creating SYNONYM. That does not compute at all.
    Re: database roles seems like its not working for me - your help is appreciated
    Think about it. We are here to help each other as best we can.
    Please read more* about Oracle capabilities and "tools" it provides.
    http://tahiti.oracle.com/
    Especially the Oracle Concepts Guide ...
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10743.pdf
    Also, please take time to respond as "helpfully" as possible. each response from you should take you closer to the solution.
    Hopefully, your original requirement will be solved.
    vr,
    Sudhakar B.

  • Open a new session when using go to documents from bex analyzer.

    Dear experts,
    We are using the go to documents functionality in bex analyzer.
    we enter the workbooks with a SS0 link (RRMXP) through the portal ,
    our problem is that when we want to attach a  comment or document (we use go to documents)
    the browser uses a session which is already open.
    When the user enters his comment or document and closes the browser session he terminates the SSO.
    My question is where can I define that when using in bex workbooks right click go to documents it
    will always open a new browser (internet explorer) session and not use an already open session.
    Thanks for your help
    Amir

    TMega,
    The Go> menu commands apply to the current Finder window. It has always been this way, and it always will be. The answer, in this particular case, is to first open a new Finder window. This is easily and quickly done by pressing Command-N. You can add to this the use of Shift-Command-K to quickly open a new window, then move that window to the Network folder.
    So, the answer to your question is "Yes, you can always open a new window when accessing the Network folder," but you can't do it just the way you were thinking.
    Scott

  • When I open up my hotmail, it opens a new session and not a new tab. Why?

    After I launch your program with MSN as my home page, I then click on hotmail to open up my emails. When I complete the log-in, a new Firefox session opens for my emails and not a new tab like it has done in the past. This has been happening for the past two to three months. What caused this change?

    Check the [[Options window - Tabs panel]] and make sure the setting "Open new windows in a new tab instead" has been selected.
    There are also quite a few tabbed browsing add-ons that give you greater control over tabbed browsing, and can force all new windows to open in a tab. Some examples are:
    * [https://addons.mozilla.org/en-US/firefox/addon/1122/ Tab Mix Plu]
    * [https://addons.mozilla.org/en-US/firefox/addon/14439/ Tabberwocky]
    * [https://addons.mozilla.org/en-US/firefox/addon/59961/ Tab Utilities]
    * [https://addons.mozilla.org/en-US/firefox/addon/13288/ Super Tab Mode]

  • Is there a way to focus the Firefox proxy authorization window to be on top or be the focus when opening a new session?

    Using FF 3.6.7 through a Squid proxy server on Windows XP Pro at my office. When starting FF, the proxy authorization dialogue box (for proxy user ID and password) is always hidden behind other open windows. A new tab for the box doesn't even appear in the Windows taskbar. I have to ALT-TAB may way through the windows to get to it, and sometimes, I even forget that it's there and I wonder why FF isn't opening.
    Is there any way to force that proxy authorization dialogue window to be the focus when opening FF? This problem does not happen with IE.

    This addon ought to do the job
    * https://addons.mozilla.org/en-US/firefox/addon/always-on-top/
    You will need to open your video in a window and not minimise it fully only shrink it to the size you want.

  • Firefox froze up and won't open a new session, why?

    I've rebooted my computer three times. Firefox want's to restore session. It won't do anything else. I've been out of action an hour now! I'm sure its because of a recient opened web site. I do not like Internet explorer. Do I have to uninstall Firefox and reinstall it? And will that fix it?

    You can check if you have a user.js file in the Firefox profile folder that sets the browser.sessionstore.resume_session_once pref to true.
    *http://kb.mozillazine.org/browser.sessionstore.resume_session_once
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    *http://kb.mozillazine.org/Preferences_not_saved

  • Cascade Vertically on Open in new Session

    A few weeks ago, I had to open mulitple PDFs at one time, and I chose the Cascade Vertically option.  Since then, all single PDFs that I open are still in the Cascade Vertically view.  Since I opened probably a dozen or more that one time, the file is postage-stamp size on the screen, and I have maximize every time. 
    How can I cancel this view permanently?  Yes, it's minor, but it's become annoying 3 weeks later.
    Thanks in advance!

    Man - is this the MS Excel forum ? I don't think so...
    Anyhow, there is a setting in the Preferences of Excel calleed "Window in Taskbar".
    Uncheck this checkbox and all documents will use the same window.
    regards,
    Lars

  • When I open a new session of GDM in tty8 the login goto tty7

    If I switch user and login to my user the GDM throw me back to the current session in tty7 instead staying in tty8.
    It also happen If I choose KDE.
    I didn't check in login to other users.

    Should I report bug???

  • After closing Firefox and trying to open a new session, I get periodic pop ups telling the program is still running. I open the task manager and close it, and everything's fine. What's the issue, and how do I get it to stop?

    Problem doesn't happen every time, and I've tried to leave it alone to see if there's an update that needs to finish loading. After being left overnight, I still had to use the task manager to close the Firefox program. I have no idea what it's doing, and I'd like to know. Is Firefox taking over my computer so it can move on to my house, and then go on to rule the Tri State Area?

    See - [https://support.mozilla.com/en-US/kb/Firefox%20hangs#w_firefox-hangs-when-you-quit-it Firefox hangs when you close it]

Maybe you are looking for

  • Looking for some help!! Using the Line In on macbook

    I have my xbox 360 connected to my external Dell monitor via the HD VGA cable. Video works fine. Off that cable are the 2 left/right RCA male jacks. Luckily, microsoft includes the Y adapter to a 3.5mm jack. I connected this to my macbook's LINE IN o

  • Need to download Adobe Acrobat 7.0 Standard

    I'm the netadmin at my place of employment and have recently formatted one of my user's PCs. Unfortunately the Adobe 7.0 std. CD I have doesn't work anymore so I need to download an .iso or something of it so that I can install it back on his PC. He

  • Require help on the Query related to where condition

    Hi All, i am a java developer and was required to write a query for some of my operations to get the data from oracle database. i am stuck at one point. please help me. i have table with 3 columns. ID | Name | Value 1 | ser | x 1 | Bus | a 1 | pol |

  • Just downloaded the Lion OS but my iPhoto will go for full screen???

    Just downloaded the Lion OS but my iPhoto will not go for full screen???

  • RAW fine tuning v. general adjustments

    I edit RAW images in Aperture2. What is the difference between making edits in the "RAW fine tuning" window as opposed to the general adjustment windows? (for example, what difference is there between sharpening in RAW fine tuning v. general shapenin