Resume plug in EP

Once I have a RESUME PLUG (interface) in my WDA window, the EP keeps a single session open for each WDA.
While this is a performance boost it is a memory waste. So in my application I'd like to programmatically switch it on / off (as per configuration).
Is there any chance to do so. Possible solutions:
- Dynamically create the plug (Dynamically Created Outbound Plug), but how?
- change the type of the plug programmatically (Standard / Resume)?
- change the state in WDDOAPPLICATIONSTATECHANGE, but I have no idea how.
Any idea on how to attack this?

This seems to work, I just want to keep an eye on that:
In the WDDOAPPLICATIONSTATECHANGE I do check for Suspend state and in this case I can set the dirty flag (of course, in the real implementation this will be configurable)
ELSEIF state_change->state_change_reason = state_change->co_reason_suspend.
    r = 'SUSPEND'.
CALL METHOD lo_portal_manager->set_application_dirty_flag
  EXPORTING
    dirty_flag = TRUE
I'd really like not know what a SAP WDA developer would say this is, a trick or very bad hacking because of..?

Similar Messages

  • On Resume Plug another iview ?

    Hi Webdynpro Java guru's ;
    I have an suspendable application and it has 3 iviews (iview a , ivew b , iview c).
    my application starts with iview a then plugs iview b. In iview b application navigates another application.
    After some process it returns back and my first application resumes. When resume plug called. i want my
    application plug iview a .
    How i can do this ?
    Pls help

    Hi,
    When u click resume plug u want application plug iview a right ?
    String Url = "application iview a url";
        wdThis.wdGetSusResWindowInterfaceViewController().wdFirePlugResumePlug(Url);
    u store iview a url in Url variable and pass that variable to resume plug.
    Regards,
    sunaina Reddy T

  • How to fire resume plug?

    hi experts,
            when we make suspend plug in window in componet X  and call another application of component Y through URL of that application. If i have already made resume plug of component X.  So after switching over to Y application how should i come back to application X through resume plug.
    Please revert back.
    Thanks,
    Saurin.

    1. create a event EXIT_EVENT in Component controller
    2. create a method CALL_EXIT_EVENT in component controller.
    3. write code in CALL_EXIT_EVENT to fire event EXIT_EVENT.
    4. create a event handler method CALL_EXIT_PLUG in window of application Y which will fire on event EXIT_EVENT.
    5. write code in CALL_EXIT_PLUG to fire exit plug of Y.
    now you can call CALL_EXIT_EVENT to exit from application Y and to resume to X.
    there is no need to pass url of X in exit plug.
    that's it. u r done...

  • Resume Plug POST Parameter

    Hi,
    Can we read the resumeURL before calling suspend ? If yes how ?
    On application resume, Can we read the POST parameter value immediately on resume, returned by external application and on which method we can read them ?
    Vinit

    Now i understud you.
    To get the post parameters from resume plug... you need to create in this plug a few parameters with the same name of the post parameters.
    regards,
    Angelo

  • Suspend and Resume Plug

    Hi all,
    Here: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm</a>
    is written about Suspend and Resume Plugs, and how to use them.
    I have one question about it:
    "<b><i>To be able to put a Web Dynpro application into the suspend state and resume it later on, you must set the Suspensibility (sap.suspendable.application) application property to true.</i></b>"
    Is this <b>SelfDefined</b> property for the webdynpro application? if- no, what have to be done, so to be set?
    Thank you in advance.
    BR

    Hi Diana,
    the only way to define a Web Dynpro application explicitly as suspendable is to define a specific application property named sap.suspendable.application. Possible values are true or false. Not defining this parameter means that the application is not suspendable.
    Check the document <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/102ed591-62a6-2910-94ac-e6038ef7b76e">How to realize suspendable Web Dynpro Java applications within the SAP NetWeaver Portal</a>. There you will find detailed instrcutions how to set the property.
    Best regards,
    Martin

  • Problem in construct_url and firing outbound plug data passing

    Fnds,
    I have been posting this but no one was able to help me specifically.
    I am calling other WDA2 from WDA1.. i used construct_url, and called the outbound plug which is type suspend.
    so wda2 is opening in same browser. .good.
    but i want to send a value to the URL .. basically i can see parameter in outbound plug as url..
    but how to pass the value to URL..
    and in WDA2, how to read this value... pls plsssssss..
    i know its simple, but i need some sampel code or example which reads this value of URL.
    kindly help me..
    Niraja

    Hi Nirja,
    You must have done this coding to call WDA2.
      DATA lv_url TYPE string.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'ZWDA2'
        IMPORTING
          out_absolute_url = lv_url.
      CONCATENATE lv_url '?sap-client=' sy-mandt '&sap-language=' sy-langu '&PARAM1=' <P1> '&PARAM2=X'
      INTO        lv_url.
      wd_this->fire_out_plg( url = lv_url ).
    here out is suspend plug of WDA1.
    now here is the code u need to do the coding in HANDLEDEFAULT method of default window of WDA2 to get the parameter passed by WDA1.
      DATA ls_url TYPE LINE OF tihttpnvp.
      DATA lt_url TYPE tihttpnvp.
      wdevent->get_data(
      EXPORTING
        name = if_wd_application=>all_url_parameters
      IMPORTING
        value = lt_url ).
      LOOP AT lt_url INTO ls_url .
        CASE ls_url-name.
          WHEN 'PARAM1'.
            <your logic to handle value of param1
          WHEN 'PARAM2'.
            <your logic to handle value of param2
          WHEN OTHERS.
        ENDCASE.
      ENDLOOP.
    moreover you need to fire simpel exit plug in WDA2 to get back to WDA1. And obviously you will have to define resume plug in WDA1.
    Hope you will be having enough clarification.
    -Haresh
    Edited by: Khandal Haresh on Nov 7, 2008 5:00 AM

  • Web Dynpro ABAP: Inbound/Outbound plugs

    Hi,
    Has anyone used the suspend/resume functionality in a Web Dynpro ABAP Window? I need to navigate from my component to another component and be able to navigate back and resume the session. Apparently it can be done using these types of plugs but there is no doco/examples available to look at.
    Thanks!!
    Nick

    Hi Nick,
    here's documentation about the suspend/resume plugs: http://help.sap.com/saphelp_nw04s/helpdata/en/43/6b972329d23d33e10000000a11466f/frameset.htm
    Regards, Heidi

  • Suspend and resume of WD ABAP applicaiton support in the Portal

    Hello,
    I am implementing Suspend and resume feature in WD ABAP. It works fine in NWBC and also in stand alone. But in the portal it does not seem to work. I have done the following.
    1. Created a resume pulg (The applicaiton is suspended as I can see the state to suspend in the WDDOSTATECHANGED method.
    2. The navigation in the portal is in place and WD applicaiton is replaced by my target BSP
    3. I am NOT firing any plugs so there is no problem here
    Now what is not happening is the following.
    1. The sap-wd-resumeurl is not part of the url parameters so I am not sure when the WD applicaiton is suspended this parameter is really sent or not?
    2. Since I do not have the resume URL when I press the back in the portal window (right hand side top of the page) the resume plug is getting fired. But the parameters that I have set in the BSP are not part of the url parameters in the resume plug
    3. If I explicitly pass the sap-wd-resumeurl as a url paramter to the BSP (hard code the resume URL since I know the PCD path of my WD iview) and then use this URL to naivagate from the BSP then the WD applicaiton is started but the resume plug is not fired. In SM04 I can see a new session created now.
    4. Step 4 works fine (the suspend and resume) works fine when I repeat it the second time.
    A quick help will be really appriciated. I am on SP14 of NW 7.0
    Thanks and best regards,
    Harish.

    Hello,
    I am implementing Suspend and resume feature in WD ABAP. It works fine in NWBC and also in stand alone. But in the portal it does not seem to work. I have done the following.
    1. Created a resume pulg (The applicaiton is suspended as I can see the state to suspend in the WDDOSTATECHANGED method.
    2. The navigation in the portal is in place and WD applicaiton is replaced by my target BSP
    3. I am NOT firing any plugs so there is no problem here
    Now what is not happening is the following.
    1. The sap-wd-resumeurl is not part of the url parameters so I am not sure when the WD applicaiton is suspended this parameter is really sent or not?
    2. Since I do not have the resume URL when I press the back in the portal window (right hand side top of the page) the resume plug is getting fired. But the parameters that I have set in the BSP are not part of the url parameters in the resume plug
    3. If I explicitly pass the sap-wd-resumeurl as a url paramter to the BSP (hard code the resume URL since I know the PCD path of my WD iview) and then use this URL to naivagate from the BSP then the WD applicaiton is started but the resume plug is not fired. In SM04 I can see a new session created now.
    4. Step 4 works fine (the suspend and resume) works fine when I repeat it the second time.
    A quick help will be really appriciated. I am on SP14 of NW 7.0
    Thanks and best regards,
    Harish.

  • Suspend Plug Problem

    Hi,
    I'm trying to use suspend&resume plugs in a WDA application to call an external ITS Service and then to go back to my application by clicking BACK button in the browser.
    the url that I try to call is
    http://zzzzz:1111/sap/bc/gui/sap/its/BBPMAININT/!?sap-client=xxx&sap-language=EN&TMP_P1_1=K02214&~OkCode=GPDP
    i always get an error that '~' sign is not allowed....
    I can omit it at sap-clientand sap-language parameters, but it's mandantory to use it before OkCode parameter.
    B.T.W. it works fine then using an exit plug....
    any ideas?

    Hi
      You can this following  before navigating, and call the escaped URL.
        CALL METHOD CL_HTTP_SERVER=>ESCAPE_URL
          EXPORTING
            UNESCAPED = lv_dse_url1
          RECEIVING
            ESCAPED   = lv_dse_url1.
    Thanks
    Anzy
    Award points if this solves your problem

  • Web dynpro outbound plugs

    Hi experts,
    We have just upgraded to SRM SPS 21 and realized the outbound plug is not working as expected. By right, if the interface outbound plug is declared as plug type 'Exit', it should close the current window. However, this is not the case. Any advice on this?
    Thanks!
    Moderator message : Wrong forum. Post the question in Web Dynpro forum, thread locked.
    Edited by: Vinod Kumar on Jul 18, 2011 10:50 AM

    Hi Nick,
    here's documentation about the suspend/resume plugs: http://help.sap.com/saphelp_nw04s/helpdata/en/43/6b972329d23d33e10000000a11466f/frameset.htm
    Regards, Heidi

  • Cannot create suspend plug in IDE

    Hi,
    perhaps someone can help me. I want to create a link in my WD app that navigates to another page, but in the same window. I think I need to use suspend/resume plugs. My problem is that I can't create a suspend plug in the Window of my application.
    Here is what I did:
    I added sap.suspendable.application=true on application level
    I added suspend/resume plugs on the interface controller. Suspend plug has a string parameter Url
    Now I want to add a suspend/resume plug on the main window of my application. If I don't I get a build error complaining: "Missing inbound plug 'Resume' from interface view 'ErxReportInterfaceView' of interface 'ErxReportCompInterface'." and a similar message about missing suspend plug. However, if I add those plugs, I can only add them as standard plugs, I do not have the possibility to add another type of plug. What am I doing wrong?
    I am using SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP01 PAT0000, Build 200811082206.
    Thanks,
    Kai

    Hi
    Are you using CE 7.1 environment?
    Thanks
    Prasad

  • Additional blank browser window appears when testing a Web Dynpro app.

    When I run a Web Dynpro Application, I always get a second blank browser window opening at the same time as the application. This is not happening for everyone here though. I guess it's a browser setting but I haven't been able to track it down and it's very annoying having this thing pop up every time.
    Any idea how I can get rid of it?
    thanks,
    Malcolm.

    Hi Enrique,
    suspend and resume plugs don't work on Portal, this is done by Portal Navigation. You can suspend the application by setting the Suspensibility property, but not use the plugs. See here: [Suspend and Resume Plugs|http://help.sap.com/saphelp_nwce10/helpdata/en/44/d958673ef05f4de10000000a11466f/frameset.htm]
    kind regards
    Stefanie

  • Window Navigation In Web Dynpro ABAP

    In one of our requirements we would have to make use of the suspend plug in Web Dynpro Abap. Would anyone happen to have any other information on this topic. Is there a sample program available which demonstrates the same?
    The requirement is that, I have to call an external window (output screen) from my present screen (input screen). While this external window is active, the calling window (input screen) should be disabled. When the external window (output screen) is closed the input screen should be enabled again. I have read that suspend/resume plugs can be used for this. However, I have not been able to figure out how to use them.
    As a starting point, it would help if I can find out how navigation between two windows (not views) can be achieved.

    You can enable and disable a view at least programmatically by binding the enabled property of all elements to one context variable and setting this to false when you navigate and back to true when you come back.
    With these special plugs I haven't worked at time.
    Frank

  • Calling a BSP application in ABAP webdynpro

    Hi Friends,
    Is there any chance that i can call a BSP application from WEBDYNPRO.
    regards
    Nalinikanth.

    Hi Yashpal/ Pankaj,
    I have one question regarding this.
    The usage of the UI element link "link to URL" is pretty much understandable to call a stanalone application.
    Whereas the usage of suspend and resume plugs, how does it work for BSP applications? For two WD components we can connect the plugs and it works.
    As I do not know about BSP, does it have in/out plugs like WD components?
    If so how to create the navigation link for this.
    Please explain.
    Sankar.

  • How to call jsp/ejb in webdynpro applications

    Hi
    Is It Possible to call jsp and EJB in webdynpro applications.If it is please let me know..
    Regards
    Chandra

    Hi,
    You can call JSp and serlvets using suspend and resume plugs
    /people/bertram.ganz/blog/2006/07/03/web-dynpro-java-foundation--whats-new-in-sap-netweaver-2004s
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/bb8c6cc7131d67e10000000a1553f6/frameset.htm
    For EJbs you can create a DTO and try to make use of the model import available in Webdynpro.
    Regards
    Ayyapparaj

Maybe you are looking for