Exit from ABAP FPM application to anothor WD application in same window

Hello experts,
If anybody can please suggest how to exit an FPM application to another WD component without using suspend mode.
I did following coding in the process event but this opens target wd abap application in the same window. But the problem is below code uses suspend method for FPM application hence there are performance issues.
if io_event->mv_event_id = 'BACK_EMP_PRF'.
DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_navigate_to = lo_fpm->get_navigate_to( ).
lv_launch-HEADER_TEXT = ''.
lv_launch-URL = lv_url (lv_url is target url for WD application)
*USE_SUSPEND_RESUME = 'X'.
*PARAMETER
lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
endif.
Is there any API to open new application in the same window without suspend_resume method.
Thanks in advance
Umang

Hi Baskaran,
Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and  I have given  its FPM ID "EMP_PRF_BACK".
Then on the process event method I have coded as following.
if io_event->mv_event_id = 'BACK_EMP_PRF'.
DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_navigate_to = lo_fpm->get_navigate_to( ).
lv_launch-HEADER_TEXT = ''.
lv_launch-URL = 'http://www.google.com/'.
*USE_SUSPEND_RESUME = ''.
*PARAMETER
lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
endif.
for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.
Thanks in advance
Umang

Similar Messages

  • Exit from ABAP FPM application to anothor WD application (W/O FPM)

    Hi Experts,
    I am working on a custom ABAP FPM application using roadmap pattern. I have anothor WD application w/o FPM application which calls my second FPM application. I do the navigation from my first application to FPM application using an exit plug in the window of first app. This navigation works fine. Now FPM component has following steps.These views are embed from a WD component ZFPM.
    EDIT  View - WD Comp ZFPM
    REVIEW View - WD Comp ZFPM
    CONFIRMATION View - WD Comp ZFPM
    I want a button on the EDIT screen and confirmation screen which will lead me to first application (ZCOMP1). For this I created an exit plug in the EDIT window and Confirmation window. But when I debug the application i find that even though control goes to respective exit plugs navigation does not happen. I think thats because of FPM. Can anybody please suggest the posible approach for it or is it just that this navigation is not possible?
    Thanks in Advance
    Umnag
    Edited by: Umang Mathur on May 31, 2011 1:36 AM

    Hi Baskaran,
    Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and  I have given  its FPM ID "EMP_PRF_BACK".
    Then on the process event method I have coded as following.
    if io_event->mv_event_id = 'BACK_EMP_PRF'.
    DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
    DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_navigate_to = lo_fpm->get_navigate_to( ).
    lv_launch-HEADER_TEXT = ''.
    lv_launch-URL = 'http://www.google.com/'.
    *USE_SUSPEND_RESUME = ''.
    *PARAMETER
    lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
    endif.
    for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.
    Thanks in advance
    Umang

  • User exit from ABAP workbench

    Hello Gurus,
           How can I get  user exit from ABAP workbench ?
    thanks very much!

    here is the program for the user exits..
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    TABLES : tstc,     "SAP Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
           WHERE pgmid    = 'R3TR'
             AND object   = 'PROG'
             AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
             WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
              WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
              WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
              WHERE pgmid    = 'R3TR'
                AND object   = 'FUGR'
                AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP Modifactions
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
          WHERE sprsl EQ sy-langu
            AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    give the tcode it will show the user exit and if u click on the user exit it will takes to the code..
    regards,
    venkat

  • Exiting from ABAP Web Dynpro application

    Hi,
    In ESS portal we have one tab Personal info, there I have created one link and integrated my ABAP web dynpro application.
    I want to exit from the application and go back to the Personal info sub area. created one exit button in my application on press of that i need take this action.
    Please guide me with this
    Thanks!
    Piyush

    Piyush,
    I am not sure whether it works or not just get the navigation url of personalinfo subarea and using portal APIs navigate to that url when you click on exit button
    Thanks
    Bala Duvvuri

  • Unable to return from a column link to popup page in the same window

    Using 3.2
    I have a tabform with a link to a pop-up page (and passing values). It's working fine but when I 'Save' on the pop-up, instead of returning to the originating page, it opens up a new window with the originating page on it. How do I get back to the originating page? I'm sure it's in my branch or button url syntax but can't figure it out. I tried creating a process to 'close window' but still opens up a new window.
    FYI - if I just do the 2nd page as a normal page, all is fine but the users would prefer a popup.
    Thx.
    Sandie

    Use the template 'Popup' for your page.
    Create a After Submit Process and select the option 'Close Window'. Make sure this is the last process (highest sequence number). This will automatically closes the popup window and user will be on the parent page.
    Do not create any branches on the popup page or any target in your Save button.
    If you need to refresh the parent page with the information entered on the popup page, enter the following code, at the end, in the process that does your DML (a process that comes before the Close Window process).
    htp.p('<script>');
    htp.p('window.opener.location.reload(true);');
    htp.p('</script>');
    I have created popups this way and they work, at least in 3.2version. In APEX 4.0, the parent page is not refreshing with the data entered on the popup page, which I'm currently investigating into. If you have a different code to refresh the parent page, please share it with me.
    Edited by: rbheemir on Nov 10, 2010 2:56 PM

  • Navigate from one iview to another and open in the same window

    Hi,
    I created two iviews with Visual Composer 7.0 SP8.
    In the first iview I create a button with hyperlink action, that call the URL of the second iview. The two iviews are in separates pages.
    The problem is that the second iview is open in a different window, and I want to open this iview in the same window. I changed the propertie start in new window with "show in the portal content", but It is still open in another window.
    How can I open the second iview in the same window?
    Thanks,
    Ivan

    Hi Marcus,
    I created two iviews, the property of the first iview is window type = primary window, the second iview is defined like window type = nested window.
    Now the problem is that I can not deploy the second iview in the portal.
    Do you know what is happening?
    Best regards,
    Iván.

  • Exit from FPM application to non-FPM application

    Hi Experts,
    In my custom project (ABAP Webdynpros), I have created homepage screen using non-FPM webdynpro application. When I click any link on homepage, Iu2019m calling 2nd screen (FPM application) using exit plugs and this is working fine.
    In FPM application I have [EXIT] button. When I click [EXIT] button I want to call homepage in the same screen. How can I do this? Exit plugs are not working in FPM application. 
    There is a similar post I have seen in SDN, but it was not answered.
    Exit from ABAP FPM application to anothor WD application (W/O FPM)
    [Exit from ABAP FPM application to anothor WD application (W/O FPM) ]

    You are right, it is a simillar post as you already mentioned. I am afraid there is not much beter answer available from me than already posted in that other thread.
    I am not sure in 7.02 the navigation api's are expanded such a way that you can supply window as inplce or new.

  • Calling KM navigation iview from ABAP

    Hi All,
    I am trying to call the KM Navigation iview from ABAP webdynpro view. it is like implement the same functionality as currently available for Repository filters through ABAP coding. I have to create a new Folder in the KM and call the KM Navigation iview for that specific folder. I know KM has provided few new webservices which I can use to create a new folder in the KM repository but I am unable to open the KM navigation iview with the newly created folder through coding.
    I am using the navigate_absolute Portal Navigation method to call the KM Navigation iview from ABAP code. Currently it is opening iview with the folder set as root folder in the iview property but I need to open it with the newly created folder through the code. The same sort of functionality is implemented from java code by passing the Business parameter with navigate_absolute method. The problem with ABAP code is that I don't know what is the exact format of the Business parameter to be passed.
    In the java code the Business parameter is passed as
    Uri=/documents/cprxrpm/46A73F1FEED21B0DE10000000A4241A8:DFM_450_MIT3_SAURABH/RIH/47B44774254208CCE10000000A4241A8:wonder-item-01 :WONDER-ITEM-01
    Does anybody have idea how can i implement the same scenario in ABAP and what should be the format of the to be passed as Business Parameter from ABAP code ?
    Regards,
    Vikash

    In the abap web dynpro view create an exit out bound plug with url as parameter.
    In your wddoinit call the the url. The url can be accessed by previewing the km iview in content management. Hope this helps.

  • Opening URL application in same window without using plugs.

    Hi,
    I am working on ESS and MSS.
    When user click on a button , an application has to open in the same window. As it is standard application I do not want to create plugs in the windows.
    Please let me know is it possible or not. If yes please give me suggestions.
    If it is not possible please suggest me how to do it with plugs.
    Regards,
    sarath.
    Edited by: sarath kumar on Feb 18, 2010 4:51 PM

    Hi Sarath,
    For navigation Inplace ( i.e in same window ) you can use launchpad customizing.
    Search for FPM cookbook in the net and you will know how to do launchpad customizig ( Transaction LPD_CUST ).
    When you configure launchpad then in Advanced paramters under the group potal parameters you have option of choosing Navigation Mode as Inplace.
    Regards
    Manas Dua

  • How to exit from a WebDynpro ABAP application and open another url

    Hi Friends,
    How to exit from a WebDynpro ABAP application and open another url like (www.yahoo.com) in the same window of the WD4 application on click of a Button?
    Regards,
    Xavier

    Hi,
    First of all you should create outbound plug in the window you are trying to exit with plufg type "Exit"
    Then create method handler in the view with this code
            data lo_view_cntr type ref to if_wd_view_controller.
            data lo_win_cntr type ref to if_wd_window_controller.
            data: l_parameter_list type wdr_event_parameter_list,
                  l_parameter type wdr_event_parameter,
                  l_val type ref to data,
                  l_val_url type REF TO data.
            field-symbols: <fs> type any,
                           <fs_url> type any.
            lo_view_cntr  = wd_this->wd_get_api( ).
            lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
            CREATE DATA l_val type c.
            CREATE DATA l_val_url type string.
            ASSIGN l_val->* to <fs>.
            ASSIGN l_val_url->* to <fs_url>.
            <fs> = 'X'.
            <fs_url> = 'http://your-link.com'.     
            l_parameter-name = 'URL'.
            l_parameter-value = l_val_url.
            INSERT l_parameter INTO TABLE l_parameter_list.
            lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
                                                                    parameters = l_parameter_list ).
          You can easily change this logic to exit application instead of redirecting to the site
           just changing to
           l_parameter-name = 'CLOSE_WINDOW'.

  • Call an applications 'user exit' from a PL/SQL procedure

    My question is a technical PL/SQL question related to Oracle Applications. I need to call a standard applications 'user exit' from a stored PL/SQL procedure. Can anyone tell me if this is possible and how to do it?
    (i.e. I am attempting to call the AR user exit SALESTAX)
    Thanks,
    Michelle Dodge

    Hi,
    Read this thread, perhaps is there your response :
    Host...
    Nicolas.

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • Ole excel application from abap

    Hi all ,
               I   an calling  one excel application  from abap .  I   don't want to make excel file visible ,  but insted  want to save and close the file , by using method
    saveas for excel application  and later i want to see the file . file name i want to store in a variable .
    eg :
    CALL METHOD OF H_EXCEL 'FILESAVEAS' = RC
    EXPORTING #1 =  filename .
    Can it be possible ?
    regards,
    SA

    hi
    i simpler method will be to use the function modules for this purpose.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
             PROGRAM_NAME        = SYST-CPROG
             DYNPRO_NUMBER       = SYST-DYNNR
             FIELD_NAME          = ' '
             IMPORTING
               file_name           = file_name .
              lc_filename = file_name.
              CALL FUNCTION 'GUI_DOWNLOAD'
                EXPORTING
                BIN_FILESIZE                    =
                  filename                        = lc_filename
                  filetype                        = 'DAT'
                TABLES
                  data_tab                        = gt_itab.
              IF sy-subrc <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
    Fn module F4_filename will prompt for the name of the file to be saved  and GUI_DOWNLOAD will save the file.
    gt_itab is the internal table containing the data to be stored in excel.

  • Calling Javascript from ABAP webdynpro application

    Hai All,
    I want to call a Javascript from ABAP-Webdynpro application. If anyone has done this. Please let me know.
    Thanks & Regards,
    H.K.Hayath Basha.

    go to window
    create suspend outbound plug and resume inbound type
    when create an outbound plug of Suspend type a parameter Url is automatically created,
    fire the outbuond plug with the Url to a BSP page where you have JavaScript.
    and fromt he BSP navigate back to WDA again which you can do using by reading the url parameter sap-wd-resumeurl, which contains the WDA URL
    Abhi

  • Portal Workprotect in Talent Profile - WebDynpro ABAP FPM application

    We are trying to implement Workprotect in ESS - Talent Profile application (HRTMC_EMPLOYEE_PROFILE). The requirement is that when user had entered data in either Internal work experience, External Work experience or other tabs; before he has saved the data, if the user clicks on some other link in portal or try to close the window, Portal work protect that is enabled should prompt the user to save the data or risk losing data.
    What has been done so far:
    1. Enabled Workprotect on Portal:
    Step 1: In the portal, go to System Administration -> System
    Configuration -> Service Configuration.
    Step 2: In the portal catalog, Select
    application "com.sap.portal.epcf.loader" and open the properties for
    service "epcfloader" for editing
    Step 3: Set property workprotect.mode.default = 3
    Step 4: Save -> Restart service
    Now, Portal Work protect is enabled.
    2. On the Talent application end, I have seen many posts in forum & FPM related workprotect documentation. But, it is not clear as to how this actually works when it comes to FPM application.
    The documents says FPM allows application to make use of work protect
    mode offered by Portal. To achieve this, the application must u2018tellu2019 the
    FPM whether it contains unsaved
    (u201Cdirtyu201D) data. For this, the FPM provides the Web Dynpro Interface
    IF_FPM_WORK_PROTECTION. In the is dirty method, you have to put
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    Questions:
    1. If you see the shared application component HRTMC_TP_SHARED_DATA, it implements interface IF_FPM_WORK_PROTECTION. But, the isdirty method in the component controller has already existing code
    METHOD is_dirty.
    ev_dirty = wd_this->mv_is_dirty.
    ENDMETHOD.
    Where should we put the code given below as described in FPM documentation. In shared component or in individual components like HRTMC_TP_WORKEXP_INTERNAL, HRTMC_WORKEXP_INTERNAL, HRTMC_TP_EDUCATION
    etc.
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    And, the line "* component contains unsaved data" as described in document- how do we code this for talent profile considering that there are multiple components, shared component etc? My requirement is that if user has entered some data in any of the tabs like internal work experience, external work experience, then work protect should work if
    user tries to navigate away or close browser.
    2. If you see general documentation for Work protect and webdynpro (not for FPM), it says that the application must define a special status (dirty flag), which tells the portal when there is unsaved data. You can set and cancel this status (TRUE, FALSE) using method
    SET_APPLICATION_DIRTY_FLAG in interface IF_WD_PORTAL_INTEGRATION.
    And it goes on to say that one must set application flag dirty
    SET_APPLICATION_DIRTY_FLAG
    exporting
    DIRTY_FLAG = TRUE | FALSE
    and also set work protect mode
    call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    exporting
    MODE = NONE | APPLICATION_ONLY | BOTH
    3. Which is the correct way to enable Work protect in case of Talent profile applications? Which method of which component should should we add code to? Which of the above ways should we follow ( Interface IF_FPM_WORK_PROTECTION or IF_WD_PORTAL_INTEGRATION) ? Which component and which method should we Set Work protect and  Set isdirty
    Please advise.

    Hi Experts,
    Can you please provide some useful info in implementing work protect in Standard FPM WebDynpro ABAP applications? In this case, as mentioned above, the application is  ESS Talent Profile application (HRTMC_EMPLOYEE_PROFILE).
    Thanks,
    Sandeep

Maybe you are looking for