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

Web Dynpro & Portal Integration: the Work Protect Mode

Hello,

I'm trying to get the Work Protect Mode to work in a Netweaver 7.0 EHP1 Scenario.

Description of Work Protect Mode can be found here.

I have a ABAP web dynpro which lets the user modify some custom data in a table, and commit it to DB. The web dynpro is bound to an Iview in the portal. What I want, is to deliver a message to the screen if the user modifies data he sees, and then navigates to some other Iview on the portal.

Using Work Protect Mode and setting the "dirty flag" should be all I need to do, according to what I read. Yet it does not work, i can see using the debugger that my code gets executed:

* Init portal integration interface, if not already done before
DATA lo_api TYPE REF TO if_wd_component.
DATA lo_portal TYPE REF TO if_wd_portal_integration.

IF wd_this->portal IS INITIAL.
lo_api = wd_this->wd_get_api( ).
lo_portal = lo_api->get_portal_manager( ).
CALL METHOD lo_portal->set_work_protect_mode
EXPORTING
mode = 'BOTH'.
wd_this->portal = lo_portal.
ELSE.
lo_portal = wd_this->portal.
ENDIF.

* Sets dirty flag
lo_portal->set_application_dirty_flag( dirty_flag = abap_true ).

but to no avail: when I navigate to another portal link, nothing whatsoever happens and data is lost. Things I already tried are:

  1. Using APPLICATION_ONLY instead of BOTH as work protect mode configuration
  2. Following this thread, going to path: system admin -> system config ->service config->Applicaitons ->com.sap.portal.epcf.loader, and setting workprotect.mode.default to 2 (though maybe I already overrided that with code)

Any hints? Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 22, 2014 at 12:35 AM

    Hi Guiseppe,

    Did you find a solution to your problem?

    We are experiencing the same issue for existing web dynpros that worked before upgrading to 7.4.

    regards

    Julian

    Add a comment
    10|10000 characters needed characters exceeded

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.