cancel
Showing results for 
Search instead for 
Did you mean: 

Read button action

Former Member
0 Kudos

Hi,

Can anyone help me in reading button action as per below snapshots.

i want to read MV_EVENT_ID.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member616849
Discoverer

I had the same problem, follow my solution.

DATA: lo_fpm TYPE REF TO if_fpm.
DATA: lo_fpm_ref TYPE REF TO cl_fpm.
* Get FPM instance
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm_ref ?= lo_fpm.
DATA(ucomm) = lo_fpm_ref->mo_current_event->mv_event_id.

IF ucomm EQ 'PLN_PLAN_SELECTED'.

ENDIF.

0 Kudos

Hello Santosh,

can you show me the code, where you getting the reference of lo_fpm  and screen shot of call stack.

Archie-Hammer
Explorer
0 Kudos

Looks like, from the green icon, that the attribute is public as is the MO_CURRENT_EVENT. So to read MV_EVENT_ID you would need to do:

lo_fpm->mo_current_event->mv_event_id.

Former Member
0 Kudos

Thanks for your quick response.I tried it & its not working

Archie-Hammer
Explorer
0 Kudos

That seems odd. almost as if MO_CURRENT_EVENT is not bound. Could be the MT_EVENT_QUEUE is empty?

former_member226239
Contributor
0 Kudos

Where are you trying to read (method) the event name?

Do you have any of the following import parameters: IO_EVENT or IV_EVENTID? If yes, then check them.

-Chandra

Former Member
0 Kudos

Hi,

MT_EVENT_QUEUE is not empty.Let me know how can i read the value?