Hi All,
As part of my requirement I want to implement work protect mode, and have been to help.sap.com also "WDR_TEST_PORTAL_PROTECT".
After all struggled where to start to implement this in my custom WDA, faced two many dumps... and finally tried calling alone
"SET_WORK_PROTECT_MODE" like below and integrated in portal
data L_COMPONENTCONTROLLER type ref to IG_COMPONENTCONTROLLER .
data L_API_COMPONENTCONTROLLER type ref to IF_WD_COMPONENT.
data L_PORTAL_MANAGER type ref to IF_WD_PORTAL_INTEGRATION.
L_COMPONENTCONTROLLER = WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
L_API_COMPONENTCONTROLLER = L_COMPONENTCONTROLLER->WD_GET_API( ).
L_PORTAL_MANAGER = L_API_COMPONENTCONTROLLER->GET_PORTAL_MANAGER( ).
call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
exporting
MODE = 'BOTH' .
strangely its start working with prompt when try to close browser's 'X' close button and even navigating away from the application.
Want to make sure, is the above peice of code is enough for WORK PROTECT MODE ? with out setting any dirty_flag to TRUE/FALSE ?
Please guide me
Thanks
Rajesh
