Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in Method Definition.

Former Member
0 Likes
1,420

CLASS lcl_event_handler DEFINITION .

PUBLIC SECTION .

METHODS :

handle_button_click

FOR EVENT button_click OF cl_gui_alv_grid

IMPORTING e_ucomm.

PRIVATE SECTION.

ENDCLASS. "lcl_event_handler DEFINITION

While Compiling i am receiving an error which says " Formal Parameter "E_UCOMM" does not exist..."

Can anyone tell me why this is happening

Regards

Gopal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
761

Hi,

Please go to transaction SE24 and enter class name as CL_GUI_ALV_GRID. On entering with Display button, go to the event tab. Find the BUTTON_CLICK event and place cursor on it. Click on Parameters Button.

You will see two parameters

ES_COL_ID

ES_ROW_NO

Hence since "e_ucomm" does not exist here, the error is occuring.

However there is an event MENU_BUTTON which has a parameter E_UCOMM. Hence probably you've got the event wrong in your definition there.

Cheers,

Aditya

2 REPLIES 2
Read only

Former Member
0 Likes
762

Hi,

Please go to transaction SE24 and enter class name as CL_GUI_ALV_GRID. On entering with Display button, go to the event tab. Find the BUTTON_CLICK event and place cursor on it. Click on Parameters Button.

You will see two parameters

ES_COL_ID

ES_ROW_NO

Hence since "e_ucomm" does not exist here, the error is occuring.

However there is an event MENU_BUTTON which has a parameter E_UCOMM. Hence probably you've got the event wrong in your definition there.

Cheers,

Aditya

Read only

Former Member
0 Likes
761

Thanks Adi.