Application Development 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: 

Change the funcionality y a ALV button

Former Member
0 Kudos

Hi, I need to change the funcionality of the buttons "+" and "-" in an ALV.

I need to throw a function when I push the button "+" or "-" (add line, delete line).

What events do I have to use ?

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

REUSE_ALV_GRID_DISPLAY

The important parameters are :

I. Export :

i. I_callback_program : report id

ii.<b> I_callback_pf_status_set</b> : routine where a user can set his own pf status or <b>change the functionality of the existing pf status</b>

iii. I_callback_user_command : routine where the function codes are handled

iv. I_structure name : name of the dictionary table

v. Is_layout : structure to set the layout of the report

vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE

vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.

II. Tables :

i. t_outtab : internal table with the data to be output

Regards

vasu

1 REPLY 1

Former Member
0 Kudos

REUSE_ALV_GRID_DISPLAY

The important parameters are :

I. Export :

i. I_callback_program : report id

ii.<b> I_callback_pf_status_set</b> : routine where a user can set his own pf status or <b>change the functionality of the existing pf status</b>

iii. I_callback_user_command : routine where the function codes are handled

iv. I_structure name : name of the dictionary table

v. Is_layout : structure to set the layout of the report

vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE

vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.

II. Tables :

i. t_outtab : internal table with the data to be output

Regards

vasu