cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with triggering portal event refreshUwlBackend in WDA application

Former Member
0 Kudos

Hi Experts,

For one of our workflows, custom WDA application developed to display when user opens workitem in UWL. The WDA application contain Approve and Reject buttons, which are used for approving/rejecting workflow workitems. We are using FIRE method of interface class IF_WD_PORTAL_INTEGRATION, to trigger portal event 'refreshUwlBackend' to refresh UWL after approval or rejection of the workitem. Please refer below for code snippet used for firing the portal event.

UWL refresh after actions on workitem, is working fine in current ECC (EHP5) and Portal systems. Now, we are upgrading to ECC EHP6 and Portal 7.3. In upgraded environment, UWL refresh is not happening in portal after action on workitem. I debugged and found that above method FIRE is being called in upgraded environment, but somehow the refresh is not happening.

Any quick response on this issue will be highly appreciated as we are approaching go-live.

Code Snippet:

DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.

lo_portal_manager = lo_api_component->get_portal_manager( ).

CALL METHOD lo_portal_manager->fire
    EXPORTING
        portal_event_namespace  = 'urn:com.sap.netweaver.bc.uwl.ui'
        portal_event_name           = 'refreshUwlBackend'
        portal_event_scope          = if_wd_portal_integration=>co_event_scope-current_window_and_parents.

Thanks,

Siva Sankar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Siva,

Portal event works only in the same portal page,but not between pages.If you raise a portal event to refresh UWL work items, Portal page which has this iView( WDA application for approval) should also include hidden UWL iView so refreshUwlBackend event will call Refresh function which will remove completed work items from UWL.

Please check following link for further details.

http://help.sap.com/saphelp_nw73/helpdata/en/00/ba62528739451e9952df509d7699b7/content.htm

You can implement option 2 mentioned in the document.

Refreshing with Hidden iView

Add a hidden iView on the page that raises the refreshUwlBackend event. This is the same event that is triggered when users manually choose the Refresh function. If the user returns to the task list after a task has been completed, approved, or rejected in another window, the refresh is automatically done by the iView.

Hope this helps.

Thanks,

Balaram Naidu

Former Member
0 Kudos

Thank you Balu.

We don't have separate portal page created in this case. The custom screen is getting displayed via SWFVISU configuration in backend where we mention to open a specific WDA application when related workflow task is opened.

SAP confirmed that the portal event 'refreshUwlBackend' is obsolete for Portal 7.3, as they came up with Real Time Refresh concept which requires some setup (OSS note 1286915) in backend and portal. Once this setup is done workflow runtime system will create events when you complete a work item, which can be used by UWL to update worklists of the user.

Thanks a lot for looking into this issue.

Thanks,

Siva Sankar

Answers (0)