2010 May 12 5:04 PM
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
2010 May 12 6:10 PM
@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/
2010 May 12 6:13 PM
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
2010 May 12 6:21 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |