on 12-02-2010 4:19 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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 ).
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.