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: 

How to add a push button on an ALV grid ?

Former Member
0 Kudos

Hi,

How to add a push button on an ALV grid, using ON_TOOLBAR, ON_USERCOMMAND Methods. Clicking on that push button, a new screen has to be displayed.

1 REPLY 1

Former Member
0 Kudos

Hi,

Assuming that you want to have a "push-button" column, i.e. push-buttons within an ALV grid then you need to implement the following steps:

(1) Set the style of the column as button

ls_fcat-style = CL_GUI_ALV_GRID => MC_STYLE_BUTTON.

(2) When the user pushes the button event BUTTON_CLICK is triggered. Thus, define an appropriate event handler method.

<b>Reward points</b>

Regards