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

Similar Messages

  • CALL Function Module RV_CALL_CHANGE_TRANSACTION in a NEW session/window

    Hi,
    I am modifying report VA14L. When a sales document is clicked on in the ALV grid, I need the sales document to open in a NEW window, not in the same. To determine and open the transaction, function module RV_CALL_CHANGE_TRANSACTION  is used. How can I force this FM to open in a new window?
    Many Thanks,
    Jeroen

    Thanks.
    I think you mean STARTING NEW TASK instead of IN NEW TASK because the latter does not exist. STARTING NEW TASK '<task>' does not work either, it causes  a short dump:
    Error analysis                                                                   
        An error occurred when executing a REMOTE FUNCTION CALL.                     
        It was logged under the name "CALL_FUNCTION_NOT_REMOTE"                      
        on the called page.                                                          
    So any other suggestions?

  • Setting to prevent "Function will be started in new session"

    Hi all,
    I'm focusing following problem / request.
    User A is doubleclicking on a Inforecord number inside a puchase order position (ME23N). Now SAP is showing message MEPO014 (Function will be started in new session) and displaying master data of this inforecord in a new "window" (ME13). If the user has already 6 sessions open, he will get a error message "max. sessions ...!". So far so well.
    Now the problem:
    User B is doing the same, having already 6 sessions open and ME13 will be displayed in same session (window) where he doubleclicked the inforrecord (ME23N).
    question:
    is there a setting where i can influence the "new session" behaviour of SAP Gui?
    plea:
    do not post hints like "have you checked User parameters" etc. --- of course i have
    If you can simulate what i described on your system you're my "expert"
    kind regards
    Jörg
    26/01/2011
    help? anyone ?
    Edited by: Jörg Sauterleute on Jan 26, 2011 10:53 PM

    Hi Jorg,
    Have you checked the following setting?
    ME23N-Personal SettingsBasic settings Tab-Envir.info in new session.
    Please remove the check mark and save.
    Hope it helps.

  • 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

  • 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.

  • Function modules to open a CRM activity

    Hi all,
    What are the Function modules available to open a CRM activity ( in change or display mode) when we have the GUID of the activity.
    The "BAPI_ACTIVITYCRM_CHANGEWDIALOG" is working from a standalone program but it is not working when I am already in the activity through a transaction.
    Regards,
    Nag

    Try using function module
    BAPI_BUSPROCESSND_CHANGEDIALOG

  • Function Module for open Purchase Order & Sales Order?

    Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively?
    Thanks and Regards.

    hi Ren,
    u can check all these bapi's related to salesorder
    BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    May be this FM can help you
    MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
    Regards,
    Naveen

  • 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

  • Functional module table parameters values not getting displayed in Java sys

    Hi,
    We are calling the Table parameter through Java code from functional
    module ZCRM_ICSS_PROJ_CUST_USR is not giving any rows value .If I execute
    the same functional module with passing the import parameter value User
    id: MLDL010 its giving value in CRM.
    I am checking Function module( Remote enabled ) in Debugging mode,
    before displaying values it is raising message like
    SY-MSGNR - 005
    SY-MSGTY - CRM_LINK
    in T100 Table
    SPRSL : EN
    ARBGB : CRM_LINK
    MSGNR : 005
    TEXT :'No Links corresponding to the specified data could be determined'
    Is that related to any communication problem CRM & JAVA ICSS System ?
    Regards,
    Pavan.

    The message in simple English just means that "You are doing something really bad" !!! It is absolutely not the communication problem, but understanding problem.
    Though you may be executing the same function using SE37 or in the webshop application through JCo, the runtime context is different and without knowing what exactly your Z rfc is doing, it is very difficult to help. To start with, the userid - that is who is running the RFC is different in both situations. In SE37, it is the logon user and in the web, depending upon whether the connection is stateless or stateful, it could be the anonymous ICSS user or the logged in user. Here again, if you have used UME, it is the user id and if you have used ALIAS user, then it is the alias user id. This is just an example. Your runtime context can be different due to many other reasons too.
    So, to make this simpler - what is that you are trying to do?
    BTW, try not to create multiple threads for the same issue..

  • Function module for open sales order and open PO

    hi all,
    can anyone please tell me that is there any function module to get open sale order  and also for open purchase order?
    regards saurabh.

    Hi ,
    In EKPO Table u select this fields  Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
    In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and  Qty.
    Both Tables having  Purchase Document  no , So  Purchase Doucment no throguh  u will get the Material and qty , Finally u Subract the both Material Qty's .
    u will get the Open Po For particular Material.
    If ur not getting ,Inform me .
    Regards ,
    Shankar GJ

  • Function module for Open Sales Orders.

    Can u any one tell me is there any standard function module to
    retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...
    Thanks in advance,
    Sanjay.

    hi
      you can get open sales orders from vbuk and vbup
        SELECT
             A~VBELN
             A~GBSTK
             B~GBSTA FROM VBUK AS A
             INNER JOIN VBUP AS B
             ON AVBELN = BVBELN  INTO TABLE T_OPENS
             FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN
            AND  A~GBSTK IN ('A','B')
             AND B~GBSTA IN ('A','B').
    in t_vebeln table is haveing sales orders by user selection you can get it like this
    regards,
    varma

Maybe you are looking for

  • Wrong Restore Disks? (iBook G4 800MHz - 10.3)

    Hi all, I hope someone can help me with this... I just bought a used iBook G4 and received the complete package of Restore Disks. OS X 10.3 installed perfectly, but when I tried to restore the rest of the software, I got a "Wrong Disk" dialog box say

  • Selection Screen in Subscreen Dynpro of Tabstrip

    Hy @ all, I have a Problem. I have a Dynpro with a tabstrip on it. This tabstrip is connected to 4 Subscreen Dynpros connected by tabstrip pushbuttons. Now I need to display select-options in the first tabstrip. I did it via a subscreen for this firs

  • Missing drivers for unknown device

    Hi all, I installed Windows 8.1 on a HP Pavilion Notebook - 15-p101 and managed to fix all missing drivers but this one. Device unknown Location: on PCI Bus ACPI\HPQ6007\3&11583659&0 Any help would be greatly appeciated. Thank you. This question was

  • Error Message In SMQ1

    Hi Expects , While working with SAP CRM 5.0 In smq1 (outbond Que ) we are getting staus SYSFAIL Message.with following more details "function mod for object could not be clearly  det ." Additional information :when i collect more information of trans

  • Both 32 and 64 bit versions of Photoshop CS6 installed

    Hiw can I uninstall the 32 bit version?