Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FPM : OVERRIDE_EVENT_GAF method of Component Controller

Hello All

I am not able catch the button evenet value in OVERRIDE_EVENT_GAF method of Component Controller.

What i have done is

1) Created FPM Application with Road Map 4 Mainsteps.

2) In the First Road Map contains view, having two buttons. On click of buttons need to hide MainStpes

Example : On Click of Button1 need to show Step1 Step2 and Step3 means Step4 is hiding

On Click of Button2 need to show Step1 Step3 and Step4 means Step2 is hiding

3)For the above requirement In the View created two actions for two buttons. In Button1 action written below code.

Code for Button1 Action in the View

data: lo_fpm type ref to if_fpm,*lr_event type ref to cl_fpm_event.

  • create event

lr_event = cl_fpm_event=>create_by_id(

cl_fpm_event=>gc_event_change_step ).

lo_fpm = cl_fpm_factory=>get_instance( ).

lr_event->mo_event_data->set_value(

iv_key = 'B1'

iv_value = 'BUTTON1').

4) onclick of Button 1 when i m trying to get the value of B1 it is coming empty in the OVERRIDE_EVENT_GAF method of Component Controller. Expecting "BUTTON1" written below code

Code for OVERRIDEEVENT_GAF method of Component Controller_

DATA: lo_fpm TYPE REF TO if_fpm,

lr_event TYPE REF TO cl_fpm_event.

  • get reference to FPM API

lo_fpm = cl_fpm_factory=>get_instance( ).

  • create event

lr_event = cl_fpm_event=>create_by_id(cl_fpm_event=>gc_event_change_step ).

lr_event->mo_event_data->get_value(iv_key = 'B1' ).

5) Based on condition planning to hide the steps.

IF BUTTON1

Hide Step4

IF BUTTON2

Hide Step2

Please help how to get value in OVERRIDE_EVENT_GAF method of Component Controller onAction of Button

Edited by: CarlinWilliams on Jun 17, 2011 1:56 PM

Edited by: CarlinWilliams on Jun 17, 2011 1:57 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question