cancel
Showing results for 
Search instead for 
Did you mean: 

FPM Work protect mode (data loss popup)

Former Member
0 Kudos

Hello all,

i have implemented all IF concerning Work protect mode

IF_FPM_TRANSACTION

IF_FPM_UI_BUILDING_BLOCK

IF_FPM_WORK_PROTECTION

and i gave IS_DIRTY = ABAP_TRUE

But nothing will betriggred withing runtime or after living the screen,

my quition is? do I have to do something eles, to implement coding conserning FPM to make it work?

and which coding shall I Implement?

thank you very much

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hi Agadir,

Just implement the below code in your IS_DIRTY() method of IF_FPM_WORK_PROTECTION.

METHOD is_dirty.

if  * component contains unsaved data

  ev_dirty = ABAP_TRUE.

  else.

ev_dirty = ABAP_FALSE.

  endif. 

ENDMETHOD.

Work-Protect Mode - Floorplan Manager for Web Dynpro ABAP - SAP Library

Hope this helps you.

BR,

RAM.