Skip to Content
author's profile photo Former Member
Former Member

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 07:13 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2008 at 06:04 PM

    From the docu:

    If an application features a resume plug, the corresponding session is retained when navigating away in the portal. However, in many cases it may be sensible or even absolutely necessary to close the application completely. In such cases, you must not implement a resume plug for the interface view.

    This is exactly what I'd like to make dynamically configurable

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Horsk,

      Got the same issue: I use suspend/resume plug for integrating Flex application with Web Dynpro ABAP (had to embed Flex into BSP, moreover!)

      I noticed that even though I was navigating away from the Web Dynpro ABAP application, the session was not closed.

      Hence, when coming back to the application, it is resumed and not "reinstantiated".

      I was wondering whether it was not possible to use a workaround like setting the Portal dirty_flag or Work protect mode..., which would ask the user for the Portal to close the application

      Best regards,


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.