cancel
Showing results for 
Search instead for 
Did you mean: 

How to add UNDO funtionality in fpm Application using button?

0 Kudos
381

Hi expert,

i created a fpm application , i displayed data in list format, if user delete a row in list . that deleted row should appear in the list when user clicks on UNDO button which mentioned in the application.

Accepted Solutions (0)

Answers (1)

Answers (1)

simon_hoeg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sadeek,

this is an easy one.

1. The Undo button is assigned (e.g. via OVP configuration) to an FPM event, say 'FPM_UNDO'

2. This event is raised, once the user presses the button in the running application

2. In the Feeder Class methods PROCESS_EVENT or GET_DATA, you can handle the event (-> ABAP constant CL_FPM_EVENT=>GC_EVENT_UNDO) with a corresponding application logic.

Best regards,

Simon

0 Kudos

hi simon.hoeg ,

thanks for your response, i raise the event in GET_DATA but, how could i reverse the changes the which are done by using EDIT or DELETE buttons.

thanks in Advance

shaik sadeek

simon_hoeg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Shaik Sadeek,

in case you have logged the prior changes e.g. in a separate private internal table, you can undo all this in the data table after FPM_UNDO has been raised.

This is something that the FPM framework does not offer out of the box, instead the application developers have to code this by themselves.

Best regards,

Simon