cancel
Showing results for 
Search instead for 
Did you mean: 

FPM Work protect mode (data loss popup)

0 Kudos

Hi,

FPM OIF Application uses several GUIBBs. Is it possilbe to switch on WORK PROTECT mode in order to avoid data loss in case of:

1) Link navigation into another application

2) Browser window close

Best regards

Kamil

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos


is thier any method for feeder classes to prevent data loss. If yes can u please mention the steps??

0 Kudos

Yes, this works....

Merci

Former Member
0 Kudos

Hi Kamil,

To achieve this, the application must u2018tellu2019 the FPM whether it contains unsaved (u201Cdirtyu201D) data. For this, the FPM provides the Web Dynpro Interface IF_FPM_WORK_PROTECTION. It contains only one method, which is described in the table below:

Method IS_DIRTY

This interface can be implemented by any Web Dynpro component in your application which is known to the FPM (e.g. any UIBB or a shareddata component). At runtime, the FPM will detect all components implementing this interface. If any of these Components signals unsaved data, then the application is marked as u2018dirtyu2019. This application u2018dirtystateu2019 is then passed on by the FPM to the shell (i.e. the portal or the NWBC).

Your application can use the sample code shown below:

Syntax

METHOD is_dirty.

if * component contains unsaved data

ev_dirty = abap_true.

else.

ev_dirty = abap_false.

endif.

ENDMETHOD.

Thanks

Senthil