cancel
Showing results for 
Search instead for 
Did you mean: 

work protect mode in a pop-up window

former_member186444
Participant
0 Kudos

Work protect mode does not seem to work for a pop-up window...unless someone can tell me different?

I tried adding my own message into the WDDOONCLOSE of the window to allow the user continue or cancel...but of course, there is no way to react to that decision and stop the window closing regardless.

Can anyone help?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member82178
Active Participant
0 Kudos

Hi Clark,

I think, work protect mode should work for popup window as well. Can you try with set_work_protect mode to 'both' and see if any luck..? Before this, set DIRTY_FLAG to TRUE for application.

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

Regards,

Madhu Sudhan.

Former Member
0 Kudos