cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro for abap & sap protal protect mode

Former Member
0 Kudos

hi:all

  I'm trying to implement the Work Protect Mode to work in a Netweaver 7.4 Scenario and web dynpro for abap.but it 'failed

  I have writed the code in web dynpro for abap and modifyed com.sap.portal.epcf.loader, and setting workprotect.mode.default to 2  in sap protal .

the code in wda:

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

call method L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
exporting
DIRTY_FLAG = abap_true.

   how I should to do?

  thanks!!

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi,

You have to set workprotect.mode.default = 3 i.e. display decision popup.

Please refer the below help document

Configuring the EPCF Service - Portal - SAP Library

Regards,

Rama

Former Member
0 Kudos

hi:

  Thank you for your reply!

   I have set workprotect.mode.default = 3 i.e. display decision popup.but it still fail.

   I want to know how I need to do?thanks

My step

   I  start "SAP NetWeaver Administrator"  , navigate to Configuration Management->Infrastructure->Application Modules->com.sap.portal.epcf.loader. ( Configuration steps on SAP EP as a part of NW 7.10 and higher)

image:

and my code in wda of WDDOEXIT

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_APPLICATION_DIRTY_FLAG
exporting
DIRTY_FLAG = abap_true.

call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
exporting
MODE  = 'BOTH'.

* mode = 'APPLICATION_ONLY'.