2008 Jul 21 9:46 AM
Hi all,
To add a push button in alv, I have copie the pf-status 'Standard' to my program, named 'Zstandard' ,and added button to the status.
and added parameters in ALV function like:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_callback_pf_status_set = 'SET_PF_STATUS'
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
DATA: wa_extab TYPE slis_extab.
wa_extab-fcode = '&OAD'.
APPEND wa_extab TO rt_extab.
wa_extab-fcode = '&AVE'.
APPEND wa_extab TO rt_extab.
SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab .
ENDFORM. "Set_pf_status
But still I am not able to display the pf-status.
can anybody tell me step bu step procedure to add push button in ALV.
thanks,
sudheer
2008 Jul 21 9:51 AM
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_callback_pf_status_set = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
...
FORM SET_PF_STATUS using extab type slis_t_extab.
" i am not sure but the below code will decativate , i mean removes the two buttons from the Status.
DATA: wa_extab TYPE slis_extab.
wa_extab-fcode = '&OAD'.
APPEND wa_extab TO rt_extab.
wa_extab-fcode = '&AVE'.
APPEND wa_extab TO rt_extab.
"if you want to add them you double click on ZSTANDARD or go to SE41 and add it directly in the Application toolbar.
SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab .
ENDFORM.
Hi all,
To add a push button in alv, I have copie the pf-status 'Standard' to my program, named 'Zstandard' ,and added button to the status.
and added parameters in ALV function like:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_callback_pf_status_set = 'SET_PF_STATUS'
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
DATA: wa_extab TYPE slis_extab.
wa_extab-fcode = '&OAD'.
APPEND wa_extab TO rt_extab.
wa_extab-fcode = '&AVE'.
APPEND wa_extab TO rt_extab.
SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab .
ENDFORM. "Set_pf_status
But still I am not able to display the pf-status.
can anybody tell me step bu step procedure to add push button in ALV.
thanks,
sudheer
2008 Jul 21 9:50 AM
>
> Hi all,
>
> To add a push button in alv, I have copie the pf-status 'Standard' to my program, named 'Zstandard' ,and added button to the status.
>
> and added parameters in ALV function like:
> CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
> EXPORTING
> i_callback_program = repname
> i_callback_pf_status_set = 'SET_PF_STATUS'
>
> FORM set_pf_status USING rt_extab TYPE slis_t_extab.
> DATA: wa_extab TYPE slis_extab.
> wa_extab-fcode = '&OAD'.
> APPEND wa_extab TO rt_extab.
> wa_extab-fcode = '&AVE'.
> APPEND wa_extab TO rt_extab.
> SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab .
> ENDFORM. "Set_pf_status
>
> But still I am not able to display the pf-status.
>
> can anybody tell me step bu step procedure to add push button in ALV.
>
> thanks,
> sudheer
hi sudheer can u post the complete code may be u have not passed the form name to the events table or events table to the function module check it
2008 Jul 21 9:51 AM
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_callback_pf_status_set = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
...
FORM SET_PF_STATUS using extab type slis_t_extab.
" i am not sure but the below code will decativate , i mean removes the two buttons from the Status.
DATA: wa_extab TYPE slis_extab.
wa_extab-fcode = '&OAD'.
APPEND wa_extab TO rt_extab.
wa_extab-fcode = '&AVE'.
APPEND wa_extab TO rt_extab.
"if you want to add them you double click on ZSTANDARD or go to SE41 and add it directly in the Application toolbar.
SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab .
ENDFORM.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |