Calling a screen in a new session

Hi Friends:
    I've got a report. When I execute the selection screen of that report after inputting data, it calls up a Zfunction module & inside that function module there is a screen. So it displays that screen. I've a requirement that when I execute my report, the screen output should be called in different session. Please help me out with the standard methods available or if there is any way. Is teher anything I can add alongwith "Call screen 0001'. Points will be rewarded.
Regards:
Jeff

CALL SCREEN... STARTING AT col1 lin1 [ENDING AT col2 lin2] any use?
rgds, matt.

Similar Messages

  • How to call a screen in a new session -- Urgent

    Hi all,
    I need to call a screen from another program in a new session, is it possible or not? if possible, please help me. After that when clicked on one button, session should automatically closed. waiting for valuable replies....
    Thanks in Advance.
    Siva Sankar.

    Hi Gourav,
    Thanks for ur quick reply. Actually i'm calling a module pool program from one screen when clicked on one button. My requirement is that module pool program should be opened in seperate session. when clicked on exit button in new session, that session should be closed. is it possible?
    Thanks,
    Siva Sankar.

  • How to call a transaction (in a new session) from a program

    Hi ,
    I need to call a transaction from my report on the click of a button in toolbar.
    But the transaction should open in a new session.
    This is the code that i have written, MM03 is getting opened in the same session.
    call transaction 'MM03' and skip first screen.
    Hope that my question is clear.
    Thanking you in advance..
    Shankar

    check this
    <b>CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
      DESTINATION 'NONE'
      EXPORTING
          TCODE = 'SM59'
      EXCEPTIONS
        COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
        SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.
      IF SY-SUBRC NE 0.
        WRITE: MSG_TEXT.
      ELSE.
        WRITE: 'O.K.'.
      ENDIF.</b>
    <b>u can avoid such errors thru this FM
    check FI_DUPLICATE_INVOICE_SHOW program for sample code.</b>
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • Calling a Program in a New Session

    Hi gurus,
    I have a custom report which has a button that links to another custom report. When this button is clicked, I perform a SUBMIT xxx WITH xxx and RETURN to another ABAP Report.
    Is it possible to open up a new Session (so that I don't lose my original report) and call the new report in there (sort of like how the System->User Profile->Own Data menu path works - I have tried to debug this but SAP does not let me debug this!).
    Any help would be appreciated.
    Cheers,
    Pat.

    Hello,
    If you want a seperate session and run a program using a transaction use this function module. ABAP4_CALL_TRANSACTION
    You can either use a bdctab table or can use the param id for the same.
    FORM f_call_lt27 USING    p_temp_nlenr TYPE y1mm_imac010_alv-nlenr.
      DATA : lt_spagpa TYPE TABLE OF rfc_spagpa WITH HEADER LINE.
      MOVE 'LGN' TO lt_spagpa-parid.
      MOVE t2_lgnum TO lt_spagpa-parval.
      APPEND lt_spagpa.
      MOVE 'LEN' TO lt_spagpa-parid.
      MOVE  p_temp_nlenr TO lt_spagpa-parval.
      APPEND lt_spagpa.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
       STARTING NEW TASK 'MSC3N'
       EXPORTING
         tcode                         = 'LT27'
         skip_screen                   = 'X'
       TABLES
         spagpa_tab                    = lt_spagpa.
    ENDFORM.                    " f_call_lt27
    Regards,
    Shekhar KUlkarni

  • Calling an URL/Hyperlink in new session on browse from button.

    Dear experts!
    I created a Z program on SAP GUI, and configured the logical link for this program and call it from Web UI Client. In component BTCUSTOMER_H, i redefined DO_PREPARE_OUTPUT to maintained a button called 'FORWARD'. I create method EN_ONFORWARD to process. My problem is: on component BTCUSTOMER_H, when i click on FORWARD button, a new session on browse appear and display the Z program above or navigate to my Z program ( i can navigate to a standard transaction for example: from an Opportunity, i can maintain a button and navigate to a SaleOrder by click to this button). When i searched on forum, i found some thread said about this problem but i still can not resolve my problem. Can any one show me the details, how i configure for the Z program and processing code in method EH_ONFORWARD to resolve my problem.
    Can anyone help me, please!
    Longnd.

    Hi,
    Please follow the steps for calling you logical link.
    When you create a Logical Link, you also should give the Target ID.
    Now In the Naivigation Bar Profile you will have some thing called as Define Geniric OP Mapping
    Here add a entrty with any Name , and give your target ID here.
    For eg : ZCall_ZREPORT :Target Id ; Given in the step 1.
    And in you even handler of the button write the followng code.
      DATA: lr_nav_descr    TYPE REF TO if_bol_bo_property_access.
      DATA:  lr_navigation  TYPE REF TO if_crm_ui_navigation_service.
      DATA: lr_col          TYPE REF TO cl_crm_bol_bo_col.
      cl_crm_ui_descriptor_obj_srv=>create_ui_object_based(
        EXPORTING iv_ui_object_type   = ZCall_ZREPORT
                  iv_ui_object_action = 'B'
        RECEIVING rr_result           = lr_nav_descr ).
      CHECK lr_nav_descr IS BOUND.
      lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).
      CHECK lr_navigation IS BOUND.
    Check whether navigation is supported
      IF lr_navigation->is_dynamic_nav_supported( lr_nav_descr ) NE abap_true.
        RETURN.
      ELSE.
        CREATE OBJECT lr_col.
        lr_col->if_bol_bo_col~add( iv_entity = lr_nav_descr ).
        lr_navigation->navigate_dynamically( lr_col ).

  • Call a transaction in a new session within a program

    Hi Friends,
    I have a requierment to call a custom Z Tcode within a module pool program. When I click on a particular pushbutton the custom transaction should get called in such a way that user should be able to be in the called transaction as well as in the calling program.
    Can someone please help me on how to go about this? I have tried SUBMIT, CALL TRANSACTION, LEAVE TRANSACTION, etc.,
    Thanks,
    Dikshitha

    Hi dixitha,
    1. You want to open VA01 in NEW WINDOW
    2. You want to PASS some values to VA01 (eg. Order Type, Sales Organization etc)
    There are two things.
    1. As mentioned by Vinod, use the function module
    DATA: bdcdata TYPE TABLE OF BDCDATA.
    CALL FUNCTION 'CKEKUTIL_CALL_TRANSACTION_TASK'
      EXPORTING
        transaction       = 'VA01'
    *   MODE              = 'A'
    *   UPDATE            = 'S'
      TABLES
        bdcdata_imp       = bdcdata  "Blank table
    2. BUT, this will ONLY open the tcode VA01 with BLANK values.
       If you have made a BDC program, then you will understand that
       for filling up values automatically, we have to pass some informatino
       (eg. program name, screen number, X
              field name, field value
              field name, field value ) etc.
      to this , using the tables parameter BDCDATA_IMP.
    So for eg., the values for this itab will be
    PROGRAM          DYNPRO     DYNBEGIN FNAM          FVAL
    SAPMV45A     0101     X
                        VBAK-AUART     OR
                        VBAK-VKORG     1000
    This will open VA01 tcode, with order type  as OR (Standard order)
    and Sales organization as 1000.
    (You can use SHDB tcode to get the screen field names and values and the full recording)
    Hope this helps.
    regards,
    amit m.

  • Call transaction in new session not working inside CRM Interaction Center

    Hi Experts,
    I have developed a report which contains a screen with push button. When user clicks on button a  transaction (FPL9) is being called and opened in new session or window. But when the report is being called in CRM Interaction Center using transaction launcher and button is clicked no new session or new window is being opened. Our requirement is FPL9 transaction will be opened in new session / window inside Interaction Center also.
    Please help me how to open a new session or window  in interaction center on push botton click.
    Thanks in advance.
    Regards,
    Arnab

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Create a new session when calling a new/different transaction

    Hello Everyone,
    I have a dialog program in which I have a button that calls a different transaction.  I would like for this transaction to open in a new session.  This can be easily done (and there are several posts on this) with FM's TH_CREATE_MODE or ABAP4_CALL_TRANSACTION.  Additionaly it can be done by remote enabling a custom FM and have the transaction call within your custom FM.
    My issue is that I want to pass the transaction a table so that it fills a select-options table at the selection screen.  Then of course I want to skip the selection screen and execute the transaction.  I can pass data if the selection field is a parameter field, but I need to pass the new transaction a table so that a select-options field can be filled.  Does anyone know how to do this and could recommend a proper approach?
    Best Regards,
    Scott

    It seems that you want to start of a new report by calling the ABAP4_CALL_TRANSACTION. There is a parameter USING_TAB which you can use to fill up the data (must be BDC data) to be able to pass to called transaction. Since you are dealing with the select-options this is not a good idea.
    I would suggest:
    From your Module pool,
    Fill the select option table and export it to ABAP memory using EXPORT
    Now,
    1. Create a dummy program ZDUMMY to SUBMIT your report ZREPORT.
    2. IMPORT the exported select option table from memory in ZDUMMY
    3. SUBMIT report ZREPORT with the select option
    4. Attach transaction code say ZDUMMY.
    In your module pool, after exporting the memory call the FM ABAP4_CALL_TRANSACTION with ZDUMMY transaction.
    Regards,
    Naimesh Patel

  • How to call Custom screen in standard transaction on same session

    Hi ,
    I am getting this Problem.
      After one of the screen in standard Transaction (CV01N) I need to call one custom screen. for this I created one program type M with screen. in Stan. transaction I am calling like Call transaction 'XXXX'(for above M program).here I am geeting all my required functionality .but I am getting this custom screen in separate session. I want to call this custom screen on same session of std transaction ( means background custom screen is std.screen).
    Can any one guide me to achive this functionality;
    Regards,
    Saida.

    Hi Agasti,
      Thnx for your reply.
      I tried that method also. even that also calling the Custom screen in new session not in SAP standard session.
    Regards,
    Saida

  • Calling new session

    hi Friends,
    i am using the FM ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST' for calling new session FK03 tcode and Skip the frist screen, i have passed 2 parameters lifnr(LIF) and bukrs(BUK).This Values coming with NEW session, but in FK03 frist screen check box are there for Address data, it is asking Select at least one processing option,
    how to select the processing option. please give me solution.
    Thanks,
    santha

    Hi, you will need to do a partial BDC here.  Please test out the example below. 
    report zrich_0001.
    data: messtab like bdcmsgcoll occurs 0 with header line,
          bdcdata like bdcdata occurs 20 with header line,
          mode(1) type c value 'E'.
    parameters: p_lifnr type rf02k-lifnr,
                p_bukrs type rf02k-bukrs.
    perform bdc_dynpro      using 'SAPMF02K' '0106'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-D0610'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                            p_lifnr.
    perform bdc_field       using 'RF02K-BUKRS'
                            p_bukrs.
    * These are the checkboxes
    perform bdc_field       using 'RF02K-D0110'
                                  'X'.
    perform bdc_field       using 'RF02K-D0120'
                                  'X'.
    perform bdc_field       using 'RF02K-D0130'
                                  'X'.
    perform bdc_field       using 'WRF02K-D0380'
                                  'X'.
    perform bdc_field       using 'RF02K-D0210'
                                  'X'.
    perform bdc_field       using 'RF02K-D0215'
                                  'X'.
    perform bdc_field       using 'RF02K-D0220'
                                  'X'.
    perform bdc_field       using 'RF02K-D0610'
                                  'X'.
    call function 'ABAP4_CALL_TRANSACTION'
      starting new task 'TEST'
               exporting
                 tcode                         = 'FK03'
                 mode_val                      = mode
                 update_val                    = 'S'
               tables
                 using_tab                     = bdcdata
    *                mess_tab                      = messtab
               exceptions
                 call_transaction_denied       = 1
                 tcode_invalid                 = 2
                 others                        = 3.
    *      Form  BDC_DYNPRO
    form bdc_dynpro using  program dynpro.
      clear bdcdata.
      bdcdata-program = program.
      bdcdata-dynpro = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
    *      Form  BDC_FIELD
    form bdc_field using fnam fval.
      clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.
    Regards,
    Rich Heilman

  • Open new session on submitting a program thru FM call

    Hi expertz...need your help up here.
    Have a situation where we need to trigger another program(say zabc : PO History) when the user selects a line in the ALV list and then clicks a button (to call zabc), the new program should run in the background and open up or display the results in a New Session.
    Have tried to use FM 'SUBMIT_REPORT' with STARTING NEW TASK but it dosnt work.  Please see the call below.
    CALL FUNCTION 'SUBMIT_REPORT' "STARTING NEW TASK 'TEST1'
      EXPORTING
      RDIR                   = TRDIR
        report                 = 'ZPRPP_WORKORDERPURCHASING'
       RET_VIA_LEAVE          = ' '
      VARIANT                = ' '
       VARIPROG               = 'ZPRPP_WORKORDERPURCHASING'
       SKIP_SELSCREEN         = 'X'
      EXPRESSIONS            =
    IMPORTING
      VARIANT                =
    TABLES
       SELECTION_TABLE        = i_rspar
    EXCEPTIONS
       JUST_VIA_VARIANT       = 1
       NO_SUBMIT_AUTH         = 2
       OTHERS                 = 3
    Any Idea!.
    Thanks
      Jaif

    Hi,
    copy your function module SUBMIT_REPORT to ZSUBMIT_REPORT and make it remote enabled.
    Now, where ever you want to call this FM, call as below,
    CALL FUNCTION 'ZSUBMIT_REPORT' STARTING NEW TASK 'T'
    EXPORTING
    * RDIR = TRDIR
    report = 'ZPRPP_WORKORDERPURCHASING'
    RET_VIA_LEAVE = ' '
    * VARIANT = ' '
    VARIPROG = 'ZPRPP_WORKORDERPURCHASING'
    SKIP_SELSCREEN = 'X'
    * EXPRESSIONS =
    * IMPORTING
    * VARIANT =
    TABLES
    SELECTION_TABLE = i_rspar
    EXCEPTIONS
    JUST_VIA_VARIANT = 1
    NO_SUBMIT_AUTH = 2
    OTHERS = 3.
    Check it out, it works for me.

  • Call transaction in new session with the value at hotspot

    Hi all,
    As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
    Please suggest any other way to implement this.
    Thanks

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Call transaction in new session (but only one)

    Dear all,
    as a hotspot functionality I would like to open a new transaction in a new session. For that reason, I use the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    However I would like to restrict the new tasks in a way that only one session is used (no matter how often the user clicks the hotspot. Kind of like the ABAP Help in the workbench.
    I checked the class CL_IMC_MODE to see if it could work as a new internal session but the new mode dumped when I pressed the back button and according to the dump Statements that closes the internal mode unexpectedly like LEAVE are not allowed. Since I call standard transactions (like VA03) I can hardly prevent that. Did I miss something or do you have any other idea how I could solve my problem?
    Thank you for any input.
    Christian

    Hi Christian,
    Here is a sample code that takes in a sales order number, displays the document number as hotspot and when the user clicks on the hotspot, it opens a new window for displaying the order. No matter how many times the user clicks on the hotspot, it will only display one window for VA03. I hope this solves your problem.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: ls_vbak LIKE vbak.
    DATA: BEGIN OF i_rfc_spagpa OCCURS 0.
            INCLUDE STRUCTURE rfc_spagpa.
    DATA: END OF i_rfc_spagpa.
    DATA: v_mode LIKE sy-index.
    START-OF-SELECTION.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
    *-- error.
      ENDIF.
      WRITE:/ ls_vbak-vbeln HOTSPOT,
              ls_vbak-vkorg.
    AT LINE-SELECTION.
      CASE sy-ucomm.
        WHEN 'PICK'.
    *-- Delete the previous session and then call VA03 in a new session
          CALL FUNCTION 'TH_DELETE_MODE'
               EXPORTING
                    mode = v_mode.
          CLEAR: i_rfc_spagpa, i_rfc_spagpa[].
          i_rfc_spagpa-parid = 'AUN'.
          i_rfc_spagpa-parval = p_vbeln.
          APPEND i_rfc_spagpa.
          CLEAR i_rfc_spagpa.
          CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
            EXPORTING
              tcode                         = 'VA03'
              skip_screen                   = 'X'
              mode_val                      = 'A'
              update_val                    = 'A'
    *       IMPORTING
    *         SUBRC                         =
           TABLES
    *         USING_TAB                     =
              spagpa_tab                    = i_rfc_spagpa
    *         MESS_TAB                      =
            EXCEPTIONS
              call_transaction_denied       = 1
              tcode_invalid                 = 2
              OTHERS                        = 3 .
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.

  • Asynchronous SUBMIT or CALL WITH creation of NEW SESSION

    I'm doing monotonous comparisons between systems, but I do need to see the SAP standard comparison for each. So I have an ALV list that I'd like to double click a line entry that will spawn 3 NEW SESSIONS and I'll automatically populate the parameters.
    So, has anyone been able to SUBMIT or CALL WITH THE KEY BEING THAT IT MUST CREATE 3 NEW ASYNCHRONOUS SESSIONS. I'd be grateful if you'd share your experience in this regard. Thank you, Adrian

    Hi,
    You can try in this way.
    Create a new FM and place your code there. Call this FM using addition STARTING NEW TASK. It should work fine.
    Check out F1 help on CALL FUNCTION for more details and additions.
    Thanks,
    Vinod.

  • SAPGUI iview from SAP Portal = create new session  results in empty screen

    we use ep700 sp10 and sapgui 6.40 compilation 5 . we have a sapgui iview which starts the login to the R/3 system and shows the user menu with some transactions.
    if the user now creates a new session  with the buttom "create new session" in the sapgui screen he gets a new but empty session  ==> i expected , that he gets the normal sap entry screen with the user and sap menu.
    does anybody now how to get that ?
    many thanks hannes toefferl

    Hi,
    Go to the file .../irj/root/WEB-INF/portal/portalapps/com.sap.portal.appintegrator.sap/property/Transaction/WinGuiRenderLayer.properties
    In this file, change -wp=true to -wp=false and also Workplace=true to Workplace=false.
    Restart the portal for the change to take effect.
    Hope this helps.
    Cheers,
    Sunil
    PS: Reward points for helpful answers.

Maybe you are looking for

  • Exit Code:6; Windows XP, SP3

    This is my first time installing PS CS5.1 Master Collection and after everything was finished I got this: How do I fix this issue? Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s),

  • Problem with Current Tab Image property of tabs

    Hello. I am having trouble changing my tab entries to appear as images. When editing a standard tab I went to the section labeled "Images". Then I put values in for "Current Tab Image" and "Non Current Tab Image", and after running the page the image

  • Can`t start my iphone

    i can`t start mit iphone 4. display stays black

  • Call mysql C API function

    Hi all,        I just have one question, how can I use mysql C API function for my labview program? I program it use dll call, but I use command "show processlist;"in mysql database,can see this process yet.So ,anybody can help me to solve this?     

  • Why is the border on my png file pixilated?

    I just created this transparent graphic and the border is pixilated. I have resized it or anything. What am I missing?