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

push button - User command problem in ALV

vallamuthu_madheswaran2
Active Contributor
0 Likes
2,168

Hi Friends,

I have copied the user interface from SAPLKKBL, STANDARD_FULLSCREEN.

I have added two push buttons. one is at the menu level and another one is the ALV grid line level.

if I press pack/shipment button then it triggers user_command(it's working fine) but If I click the serial number push button then user_command is not triggered but PF_status subroutine has triggered.

Thanks with Regard,

Vallamuthu M.

6 REPLIES 6
Read only

SimoneMilesi
Active Contributor
0 Likes
1,763

I guess you are using CL_GUI_ALV_GRID technology, right?
If so, you need to handle its methods/event (i.e. BUTTON_CLICK).
PF_STATUS / USER_COMMAND subroutines are for the Toolbar you copied, not for row events

Read only

0 Likes
1,763

Hi Simone Milesi,

Thanks for your update.

I am using the FM REUSE_ALV_GRID_DISPLAY_LVC.

Thanks with Regards,

Vallamuthu M

Read only

0 Likes
1,763

vallamuthu.madheswaran2 i'm sorry, that FM is so old and deprecated that i do not remember how to help you.

Did you try a quick search here or on google? Maybe this helps you a bit

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,763

So, you use REUSE_ALV_GRID_DISPLAY_LVC.

How did you pass the subroutine name? Did you set its name in upper case? Did you make sure the name in the parameter matches exactly the name of the subroutine?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,763

You should consider using CL_GUI_ALV_GRID (REUSE_ALV_GRID_DISPLAY_LVC is one step from REUSE_ALV_GRID_DISPLAY on the road to this class, structures of parameter are already ready for the class to use)

  • Else look at FM GET_GLOBALS_FROM_SLVC_FULLSCR to get reference to instance of class from within old FM.
  • Else look for old threads/questions and parameters for EVENTS to handle the old way.
Read only

0 Likes
1,763

Hi Raymond Giuseppi,

Thanks for your update.

Now I have changed the push button to expand all icon. Now the problem is solved.

Thanks with Regards,

Vallamuthu M..