Hi all gurus, please forgive me as I'm quite a newbie on the argument.
Shortly; in SRM 7.0 there's a button that allows the user to create a copy of a document. Our desiderata is to show an intermediate popup to confirm ("Are you sure? bla bla ") with two buttons (yes/no) so that:
- pressing "Yes", execution should continue flawlessy with the same action_id ("COPY");
- pressing "no" makes the execution stop (stop processing the event).
Some details:
- buttons are in the view CNR_VIEW, in component FPM_OIF_COMPONENT.
- I found an interesting guide and some references to the use of the method NEEDS_CONFIRMATION offered by the interface IF_FPM_UI_BUILDING_BLOCK:
However, it seems IF_FPM_UI_BUILDING_BLOCK is not implemented by standard in this wd as there's no method "NEEDS_CONFIRMATION". Moreover, it seems that adding IF_FPM_UI_BUILDING_BLOCK as implemented interface in FPM_OIF_COMPONENT is kinda a standard modification.
EDIT:
Found that IF_FPM_UI_BUILDING_BLOCK is implemented by FPM_IDR_COMPONENT which is used by FPM_OIF_COMPONENT. So I guess there's no standard modification required. Anyway, it's not clear to me how could I use NEEDS_CONFIRMATION method for my purpose. I guess I have to implement a specific code for the method, however I don't have NEEDS_CONFIRMATION as listed method in my FPM_OIF_COMPONENT -> CNR_VIEW .
Am I missing something on the argument?
We had successfully implemented some code via post-exit on the method ONACTIONBUTTON_PRESSED to execute specific operations on the basis of the action_id associated to the event. However we're looking for the smartest/simplest way to get a confirmation popup in case of document copy as there are some advices user should be aware of and require specific confirmation.
Thanks for your help!
M.
Edited by: Matteo Montalto on Mar 5, 2012 12:12 PM