Restarting or Reloading Webdynpro ABAP(FPM) application in Portal

Hi All,
I have created a ABAP webdynpro application in FPM framework which is run in the portal. The application has got a roadmap that contains 7 steps. In the last step there is a button 'save and exit'. When the user reaches the last step and presses the 'save and exit' button, one popup will appear with a 'close' button. When the user pressed that 'close' button, the application should restart i.e., the user should be taken to the first step. I tried using the method 'NAVIAGATE_ABSOLUTE' where I hardcoded the PCD path which takes the user to the first step but it is not helpful ( All Relative navigation links and Detailed navigation links were missing in portal ) in my case as it is not actually restarting the application. Could anyone help me out in getting the application restarted in the portal on click of a button.
Note: We tried with Exit-Plug as well, which is not applicable ( helpful) for portal integration.
Please suggest.
Thanks
Deepak

Hi Deepak,
Well we have few webdynpro applications with multiple views, by design, on the last step after save, we disable all other button and display a new button called 'RESTART' with only available choice. On click of this button
1. We initialize all the data of component.
2. Clear stored variable parameters & internal table used by assistance class
3. if everything was fine fire navigation to the FirstDefaultView of the webdynpro application.
Thus its almost restart of the application.
So design wise have a method  INIT_COMP  in the component controller of webdynpro component. and then at the last step when call to RESTART is made reinitialize all the data of your webdynpro component.
method onactionrestart.
wd_assist->reinit_my_obj_tables( ).
wd_this->fire_to_v_Start_plg(  ).
endmethod
Greetings
Prashant

Similar Messages

  • 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

  • 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

  • Webdynpro ABAP independent application

    hello,
    I have developed independent application of webdynpro ABAP
    i want to integrate it on portal
    i have page, create iview, assign application url to the iview - all this i do in portal content administration etc
    but in later versions, instead of iview etc, there is bankend transaction code, ie tcode in R/3 where I can assign my web dynpro application to portal
    I need the name of that transaction code. kindly help with your inputs
    thanks
    bhakti

    Hi Bhakti,
    AFAIK there is no such kind of facility available so that you can directly assign your webdynpro into the portal using any t-codes.
    But the SAP Enterprise Portal supports the Web Dynpro application development with functions like:
    Event handling of portal events
    Navigation between Web Dynpro applications within the portal or to any portal content
    WorkProtect mode
    And With Web Dynpro you create interactive Web-based user interfaces for business applications. The portal allows the role-based and secure access to different kinds of information (structured or non-structured), services, and applications using a Web Browser.
    For portal integration, refer the below document which will give you an idea.
    How to Integrate Web Dynpro  ABAP in Portal
    Thanks
    KH

  • 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

  • Webdynpro ABAP Caching Problem in Portal

    Hi All,
    We have developed custom applications using Webdynpro - ABAP, using FPM and accessing those applications through SAP Netweaver Portal 7.0. I have deactivated all the caching techniquies in Portal @ iview level and Page level, Portal Runtime and ContentFetch side, But still causing the same problem.
    I have a doubt, wether this is happening because of SAP Logon Caching @ SAP WAS system level. I have checked the SSO parameter settings in RZ10 Profile parameters. Our basis people have set both accept and create parameter value = 1. Is this causing issue?
    Or Is there any other settings which is required to do in Portal or SAP system level. Please let us know , really appreciate your value suggestions and help.
    Please find the below links, which im referring to...
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/d2/91553b4d53273de10000000a114084/frameset.htm
    http://help.sap.com/SAPHELP_NWPI71/helpdata/EN/48/69eb40e8a607d6e10000000a42189c/content.htm
    Thanks in Advance
    PRadeep
    Edited by: Pradeep on Jan 28, 2009 9:10 AM

    The delete icon will not show up in the line of the favorite/templates, if no hours are recorded on it. There is no transfer to the backend either, unless hours are recorded on these working time attributes. also ensure note 1986356 is implemented for details column check CAC2 for the CATS profile attached to the user in CVR in Su3

  • WebDynPro ABAP iView not picking Portal Theme stylesheet

    Hi,
    We are facing issues in integrating the WebDynPro ABAP application in Portal . The WebDynPro ABAP iView is not picking the portal theme. It is picking its actual color.
    We are in EP 6 SP 14.
    Can anyone let me know what can be the reasons.
    Best Regards
    Sid

    Hello,
    for the web dynpro for abap application you can create a application configuration. To create the configuration
    right click on the application -> create/Change Configuration -> and once you create the configuration, it will open up in browser and you can see 2 tabs structure and parameters
    In parameters tab you will find an option Force Use of External StyleSheet check the box and save the configuration. Once done with this process.
    Go to the iView Properties of the applications and set the application configuration name and it would take the Portal Theme.
    hope this helps.
    Pramod
    reward points if helpful.

  • Webdynpro ABAP columns hidden in portal only

    We have configured webdynpro abap application HRESS_A_CATS_1.
    When we test from the backend, we see a delete column on the left and each day has a detail column as below:
    When we launch from the portal, those columns are hidden:
    Is there some personalization or customizing feature that I am missing?  I am not familiar with portal administration, could there be a parameter on the iView itself that is causing this to occur?
    When I look over the shoulder of our portal administrator and he looks at the iView preview itself, the columns are there.
    Something is hiding them, but not sure what it is....

    The delete icon will not show up in the line of the favorite/templates, if no hours are recorded on it. There is no transfer to the backend either, unless hours are recorded on these working time attributes. also ensure note 1986356 is implemented for details column check CAC2 for the CATS profile attached to the user in CVR in Su3

  • Adding a Webdynpro Abap custom application to the list HCM F&P List

    Hi
    On my Portal's  HR Admin tab i have a link Start process to start all my HCMF&P Processes. Is there any way i can add my custom web dynpro application to this list. So that using the same link the HR Can proces any Adobe Form or a custom web dynpro application ?
    Can i add my  custom webdypro application to the table T5ASRPROC or V_T5ASRPROCVALID ?
    regards
    Pamela

    Hi Chris,
    Ran into similar issue with another Adobe form.
    But this time no matter how many times I add "$record." instaed of "$."in the binding ($.WERKS.DATA[*].field), it disappears. And now none of the dropdowns are working in another Adobe form.
    Does ALC 8.2 have to do something with it?
    Now if the binding shows "$.WERKS.DATA[*].field", how should I specify the list items . It needs  three inputs.
    Binding = same as "$.WERKS.DATA[].field" ? or $.WERKS.DATA[] or $.WERKS
    and since the field catalogue and actual list items are attached at runtime how do I specify other two inputs "Text" and "Key".
    ~Amit.
    Edited by: Amit Molekar on Aug 11, 2010 7:14 AM

  • Webdynpro ABAP application on MSS Overview screen

    Hi Guru's,
    We are having a customized Overview screen in MSS which is all Webdynpro Java application.I am trying to add Webdynpro ABAP custom application link on the overview page.I created a IVEW ,then PAGE, assigned to Workset and then to role .
    Copied the PCD location and assigned in the Resources of Homepage framework.
    When I do preview it is fine but when I run it through Overview..I am getting 404 page error.
    Again its webdynpro ABAP application in the Overview page..What are the steps for it ..I created Area,Subarea ,Services and assigned Resources which has the PCD location with ROLES:// ...
    Also in Services I mentioned it as WEBDYNPRO ABAP application.
    Please suggest me ay steps I may be missing.
    Thanks,
    ST

    Also I was comparing the links through HTTP WATCH that was trying to read:
    The first one is from direct page assignment under ROLE in Portal:
    http://DEV SYSTEM/sap/bc/webdynpro/SAP/zhr_associate_form/;sap-ext-sid=bNrjr3FDhSA9HxracqUNhQ9H0Rpx1m12qVv5aAWcHbEw
    The Second one is referred under overview from Homepage Framework:
    http://DEV SYSTEM/sap/bc/webdynpro/sap.com/pcui_gp~xssutils/XssMenuArea/;sap-ext-sid=bNrjr3FDhSA9HxracqUNhQE37DBLWEEK_COBmuSIHeeA
    I am for sure missing something ..can you please suggest.
    Thanks,
    ST

  • Getting Pernr for WebDynpro ABAP application

    I am building a new WebDynpro ABAP application and I want to be able to get the PERNR for the user logged into the portal and this application.
    I have read some information on this forum about getting the URL or application parameters in order to get the userid or similiar parameters and to handle this within the Window in the HANDLEDEFAULT method of a WebDynpro ABAP application.
    I have looked into this and I don't think pulling information from the application parameters will work.  For example, I checked one of our current services for "Personal Data"  and when I go to the portal content administration,  application parameters, I don't see any reference to userid..etc.  I see Property ID, Property Category, Inheritance, End-User Personalization, and Property Description.  In addition, I do not see any information from the URL itself that I could use. 
    Here is the scenario.  The user logs into the portal using the 3 character Network id which in turn, I assume, gets their SAP userid and PERNR in order to retrieve all the HR infotype information for each service.  By the way, the service I mentioned above, "Personal Data", is written in JAVA, so I am not able to see how this particular service works or handles getting the userid and PERNR.
    Has anyone come across this scenario before and how was it handled in terms of getting the userid and PERNR?

    I was thinking that SY-UNAME would be available, but was not sure.  For some reason, I was thinking I was going to have to pass something from the applicaton parameters or some other method to my WebDynpro ABAP program..
    I am not the portal administrator so I have not yet added my WebDynpro ABAP program to the portal yet.  Once, it's added, I will check out the availablility of sy-uname.
    Thanks.

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

  • Reading & writing from MS Excel files in Webdynpro ABAP

    Dear experts,
    We have a requirement to read and write from an MS excel file in a Webdynpro ABAP based application. The application would be deployed on WAS (Web Application Server) which is running as part of SAP ECC on UNIX platform.
    What is not clear is
    1) If we store the MS Excel template on the server which has UNIX, will the file be recognised for reading/writing programmatically in Webdynpro ABAP? If this works, we have a requirement where the end users will download the excel template and upload the same after filling data into the excel file. The data filled into the excel has to be read and updated in the SAP backend (ECC).
    2) There is an article on "Modifying Excel using WD ABAP" at the following link
    https://wiki.sdn.sap.com/wiki/display/WDABAP/ModifyingexistingexcelsheetusingWDABAP
    But again it is not clear whether this approach will work on Unix based SAP server (ECC WAS).
    Thanks
    Suresh

    I don't know if there is an application in Unix that can read Excel files - if that is what you are asking.  However that has nothing to do with this forum.  If you are uploading the file to ABAP using Web Dynpro ABAP, then it doesn't matter what Operating System the server is running on.  Unix, Linux, Windows - all the processing is done in ABAP and is OS independent. The actual reading of the file in ABAP involves reading either an XML or Text Tab Delimited version of the Excel file however - if you read through the links on manipulating Excel in ABAP.

  • Webdynpro ABAP iView Blank Page

    Hi All
    I have created Webdynpro ABAP iView in the Portals  by giving following parameters
    1) System
    2) application name :
    3) Name space :
    While previewing i am not getting any erros or even i m not expected output also,
    Anyone could pls  you tell what is going wrong.
    How can i check at backend for that application.
    Note: I am new to Webdynpro for ABAP.
    Help will be appreciated.
    Thx & Rgds
    -AW

    I have created Webdynpro ABAP iView in the Portals by giving following parameters
    1) System
    2) application name :
    3) Name space :
    what are the values you have given ??? namespace should be SAP.
    ensure that your webdynpro ABAP application works fine. Goto se80-> select Web Dynpro Comp. /intf. and type in you webDynpro COMPONENT name here PRESS Enter key.
    you need to know the webdynpro component that this Application is supposed to execute to test it in ABAP work bench.
    Greetings
    Prashant

  • Display RSS flows in WebDynpro ABAP

    Hi,
    I was surprised that my search in this topic on "RSS" did not return any result.
    I need for a customer to develop a couple of WebDynpro ABAP screens (without any portal) and to display information coming from a RSS flow inside these WD4A screens.
    Any idea how to achieve this, standard solution preferred or via custom coding?
    Thanks
    Yann

    Your question isn't really Web Dynpro ABAP centric.  The process to consume and parse the RSS is indepent of the use of classic dynpro, BSP, or Web Dynpro ABAP as the UI.  You are probably just going to use the CL_HTTP_CLIENT class to make the HTTP call from ABAP and then parse the RSS with XML or an XSLT.  Brian McKellar wrote a nice blog on this some time ago.
    /people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt
    He does his output in BSP, but that part can easily be adapted to Web Dynpro.

Maybe you are looking for

  • How to show all the levels of managed metadata in Current navigation in SP 2013

    I am trying to use Managed metadata navigation as Current navigation/Left navigation Bar in a SharePoint intranet publishing site. I found one problem when I was configuring it: If we have the terms in the term set defined as follows: ├─> Root1 │    

  • Script to connect and rename a drive works on Windows 8.1 but not Windows 7

    I have a script to map a drive to a WebDAV share and the staff wanted it so the Drive shows up as Onedrive and not \\http......etc So I added entries to the script to rename the drive to that. It seems to run and work perfectly on Windows 8.1 but on

  • Conditions in scale pricing in purchase info record

    Dear Experts, Need your valuable inputs on the following issue: We have entered into an agreement with a vendor with the following clause: 1 PAC of material ABC costs Rs. 13000/- In every month , the first PAC bought will be priced at Rs 13000/- and

  • Upgrade iMac to Lion OS for iCloud.

    I'm so confused I'm trying to get the iCloud on my iMac but it's saying I don't have the right Lion OS X. so I tried to download it but it's saying I need another version first, well I can't find that version and have NO idea how do upgrade now. HELP

  • My iphone 4 was dropped on road

    is it possible to change the front glass screen for Iphone 4 in singapore ?