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 IN ALV

Former Member
0 Likes
1,136

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
699

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

2 REPLIES 2
Read only

Former Member
0 Likes
699

>

> 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

Read only

Former Member
0 Likes
700

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.