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

Regarding Create Pushbutton on Report output using ALV

Former Member
0 Likes
367

hi all,

How to Create Pushbutton on Report output using ALV.

Can anybody send the code for that.

Regards

Reddy

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
350

Check the below comments

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_callback_program       = sy-repid
    i_callback_pf_status_set = 'STATUS'   "<---this is must
    i_callback_user_command  = 'USER_COMMAND'

"Setting here..

FORM status USING p_extab TYPE slis_t_extab.
  "Set the Button using the staus
  "Copy the Standard status from the program SAPLKKBL status
  " STANDARD using SE41, and use that here.
  "Pf status
  SET PF-STATUS 'STANDARD' EXCLUDING p_extab.
ENDFORM. " STATUS

"handling here...

FORM user_command USING r_ucomm LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.

"handling here...

ENDFORM.