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

Pushbuttons not displayed on Application toolbar

Former Member
0 Likes
2,294

Hi all,

I created a report using ALV Grid and Iam trying to display 3 buttons in Application toolbar of ALV grid output. But the buttons are not getting displayed.

In ALV grid function module I passed the following parameters

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_callback_pf_status_set = 'X_SET_PF_STATUS'

i_callback_user_command = X_USER_COMMAND'

is_layout = w_layout_ds

it_fieldcat = t_fieldcat

i_save = 'A'

and also created two subroutines.

FORM x_set_pf_status USING rt_extab TYPE slis_t_extab.

SET PF-STATUS USR_STATUS.

ENDFORM. "X_SET_PF_STATUS

FORM x_user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN 'post'.

****

*****

WHEN 'process'.

****

*****

WHEN 'down'.

****

*****

ENDFORM

Created the three buttons in application toolbar under items 1-7. post , process, down.

But the buttons are not getting displayed. Can you tell what can be the problem. Iam using SAP verison 4.7EE.

Best Regards

MS

Hi all,

I created a report using ALV Grid and Iam trying to display 3 buttons in Application toolbar of ALV grid output. But the buttons are not getting displayed.

In ALV grid function module I passed the following parameters

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_callback_pf_status_set = 'X_SET_PF_STATUS'

i_callback_user_command = X_USER_COMMAND'

is_layout = w_layout_ds

it_fieldcat = t_fieldcat

i_save = 'A'

and also created two subroutines.

FORM x_set_pf_status USING rt_extab TYPE slis_t_extab.

SET PF-STATUS USR_STATUS.

ENDFORM. "X_SET_PF_STATUS

FORM x_user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN 'post'.

****

*****

WHEN 'process'.

****

*****

WHEN 'down'.

****

*****

ENDFORM

Created the three buttons in application toolbar under items 1-7. post , process, down.

But the buttons are not getting displayed. Can you tell what can be the problem. Iam using SAP verison 4.7EE.

Best Regards

MS

3 REPLIES 3
Read only

TuncayKaraca
Active Contributor
0 Likes
1,021

@mariosuresh

Did you copy STANDARD_FULLSCREEN GUI status from program SAPLKKBL?

Make sure you activated the GUI Status...

Check this link http://www.sapalv.net/2009/07/sap-alv-tutorial-4-%E2%80%93-add-button-to-toolbar/

Read only

Former Member
0 Likes
1,021

Hi,

Try using the parameter i_callback_pf_status_set = 'SET_STATUS' in call FM REUSE_ALV_GRID_DISPLAY.

Then in subroutine SET_STATUS assign the PF status that you created.

form set_status using rt_extab type slis_t_extab .  
  set pf-status 'your_pf_status'.
endform.

Thanks,

Vaishali

Read only

Former Member
0 Likes
1,021

Hi,

Rename the subroutine 'x_set_pf_status' as 'X_SET_PF_STATUS'.

i.e. change the name of subroutine to upper case.

hope this helps.

Rajat