cancel
Showing results for 
Search instead for 
Did you mean: 

How to get FPM event in embed component

Former Member
0 Kudos

Hi,

how to get FPM refresh event in embed component? I'm working with SRM 7.0.

I created a web application dynpro and implemented Interfaces / SAPSRM / WDI_I_FPC_CA_DTLS,

/SAPSRM / WDI_L_FPC_GENERAL, IF_FPM_UI_BUILDING_BLOCK were generated and new methods in COMPONENT_CONTROLLER.

PROCESS_EVENT that was generated appears to be suitable for processing events of the FPM, but this method is never called.

Thanks,

Thiago Cabral

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Baskaran,

the refresh button is standard. I do not fire event.

Yes, FPM_REFRESH is fired.

I put a break-point in PROCESS_EVENT but this method was not called.

I added my custom component in a new tab in the component /SAPSRM/WDC_AOFC_BEV. The view tab is created by "tab enhancement framework" which is standard code, It is found in the method of view ONACTIONSELECT_TAB.

I have no method of overwriting the component.

Code in PROCESS_EVENT:

IF io_event->mv_event_is_validating = abap_true.

CASE io_event->mv_event_id.

WHEN cl_fpm_event=>gc_event_refresh. "IF_FPM_CONSTANTSGC_EVENTrefresh.

ENDCASE.

ENDIF.

Thanks,

Thiago Cabral

Former Member
0 Kudos

>

> Hi Baskaran,

>

> the refresh button is standard. I do not fire event.

> Yes, FPM_REFRESH is fired.

> I put a break-point in PROCESS_EVENT but this method was not called.

>

> I added my custom component in a new tab in the componentc. The view tab is created by "tab enhancement framework" which is standard code, It is found in the method of view ONACTIONSELECT_TAB.

>

> I have no method of overwriting the component.

>

> Code in PROCESS_EVENT:

>

> IF io_event->mv_event_is_validating = abap_true.

> CASE io_event->mv_event_id.

> WHEN cl_fpm_event=>gc_event_refresh. "IF_FPM_CONSTANTSGC_EVENTrefresh.

>

> ENDCASE.

> ENDIF.

>

>

> Thanks,

> Thiago Cabral

Hi,

if i understand you correctly then your custom component is not directly referred as UIBB. I think the /SAPSRM/WDC_AOFC_BEV is embedded as UIBB in FPM, your custom component is taking part in the view asemply of /SAPSRM/WDC_AOFC_BEV.

My conclusion is that FPM doesnt have any knowledge of your component while FPM-REFRESH event is triggerd, hence your component is not taking part in FPM event phase model. It probably transfer the control to the process_event of /SAPSRM/WDC_AOFC_BEV.

You could write your code there incase of refresh event, find out which TAB is active and decide to call the process-event of the respective component (call forward ).

Former Member
0 Kudos

Hi Baskaran,

Understood. Actually my component is not referred to as UIBB.

The method process_event component /SAPSRM/WDC_AOFC_BEV is not called.

We made a functional change and implemented a workaround.

Thanks!

Edited by: ThiagoCabral on Dec 28, 2010 3:39 PM

Former Member
0 Kudos

Hi,

it sounds strange !!! Please explain how does this refresh event is being triggered or fired.?

Do you have a Button in FPM toolbar to trigger the FPM_REFRESH event?

What code have you written in process_event to handle this event ?.

Is there any Shared Component involved ?

do you have any overrride method implemented in this component ?