cancel
Showing results for 
Search instead for 
Did you mean: 

FPM_OIF_COMPONENT - Close Button

Former Member
0 Kudos

Hello Experts,

I am using 'Talent Management Specialist'--Corporate goals view. The WD component for the same is 'HAP_GOALS_MAIN'. This application having two FPM buttons namely 'Save' and 'Close'.

When I clicks on 'Close' button, pop-up windows opens (Do you want to close the window?) with two buttons, 'Yes' and 'No'. If I click on 'Yes' I am completely logged out of the application but If I click 'No' , it displays Application Terminated message.

I have checked component controller's Process_event method of WD application HAP_GOALS_MAIN but it does not have any coding for the 'gc_event-close'.

Could you please help to "what may be the cause behind this?"

Thanks in Advance,

Prashant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The behavior after pressing "YES" button is normal as you are confirming to close the browser.

The logic behind 'NO" button is some what troubling.

If you see need_confirmation method, i expect eo_confirmation_request = cl_fpm_confirmation_request=>go_data_loss for the close event.

Event_handler for yes and NO is inside the framework. Some how the OIF instance is returning the message Application terminated. I would have expected that it stays where it was before you press close button.

Former Member
0 Kudos

Hi Baskaran,

I have checked the code inside need_confirmation method. It is as follows.


      wd_this->data_is_changed = is_data_changed( ).
      if wd_this->data_is_changed = abap_true.
        eo_confirmation_request = cl_fpm_confirmation_request=>go_data_loss.
      endif.

Is there any solution to remove this application terminated message when user clicks on 'No' button from pop-up window.

Thanks,

Prashant

Former Member
0 Kudos

Hi,

it is difficult to say why the framework shows the termination message. You can do a debugging to find out . Other option is to

take control in your hands. Write your own popup and handle the Yes or No events.

Comment this code in Need_confirmation and use the logic in process_event.

In process_event defer the event_result in case of data_changed is true.

ev_result = if_fpm_constants=>gc_event_result-defer.

Display your POPUP, handle your Yes or NO button events and return

lo_fpm->resume_event_processing(

if_fpm_constants=>gc_event_result-ok ).

or

lo_fpm->resume_event_processing(

if_fpm_constants=>gc_event_result-failed ).

Refer : Handling Application-Specific Dialog Boxes in the developer guide.

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50?quicklink=index&overridelayout=true]