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: 

User-Command

Former Member
0 Kudos

Hi ,

I added one Button in Application toolbar . I am using clas CL_SALV_TABLE for displaying record in ALV grid format.

now my req is that after selecting the any record from ALV Report and Clicking on the button on application Toolbar . system allow me to goes into Debug mode with Importing value the row no and SY-UCOMM field . Please suggest me the solution .

Regards,

Sandeep

3 REPLIES 3

Former Member
0 Kudos

Hi SAndeep

Whats ur Question here. You should handle all this things in the event handler method of User_command event.

Hope you have set the user command for the buttons .

Former Member
0 Kudos

Hi Sandeep,

You should use event handler to handle this situation. There is a standard event ADDED_FUNCTION in CL_SALV_EVENTS.

Get all the events from CL_SALV_TABLE class and register method on_user_command for event ADDED_FUNCTION. Write your custom logic to handle user command in event handle method. Refer demo program SALV_DEMO_TABLE_EVENTS.

Hope this will help..

Rgds,

PB

Edited by: PBHATT on Nov 16, 2009 10:09 AM

Former Member
0 Kudos

Thanks