Application Development 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: 

ALV Toolbar

Former Member
0 Kudos

Hi Friends,

I am including custom push buttons on alv toolbar but displaying only one custom button but erasing rmaining one, here my requirement is to add button to existing toolbar.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = SY-REPID

I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'

i_callback_user_command = 'USER_COMMAND'

............

FORM set_pf_status USING rt_extab TYPE slis_t_extab

SET PF-STATUS 'STATUS' EXCLUDING rt_extab.

ENDFORM.

thanks,

asha

1 ACCEPTED SOLUTION

raviprakash
Advisor
Advisor
0 Kudos

Hi Asha,

This is happening because you have created a new status called STATUS. In this status, you have included only one button. In this way, the default buttons of the ALV vanishes. If you want all the other buttons to be visible then you have to include them manually. Or you can do one thing:-

1) Open GUI Status window and go to the menu EXTRAS->ADJUST TEMPLATE.

2) This opens a new window called ADJUST TEMPLATE. Here choose LIST STATUS radio button and press OK.

3) This puts all the default buttons of the LIST STATUS on the ALV.

Thanks and regards,

Ravi :).

NOTE: Points keep me alive on SDN .

3 REPLIES 3

raviprakash
Advisor
Advisor
0 Kudos

Hi Asha,

This is happening because you have created a new status called STATUS. In this status, you have included only one button. In this way, the default buttons of the ALV vanishes. If you want all the other buttons to be visible then you have to include them manually. Or you can do one thing:-

1) Open GUI Status window and go to the menu EXTRAS->ADJUST TEMPLATE.

2) This opens a new window called ADJUST TEMPLATE. Here choose LIST STATUS radio button and press OK.

3) This puts all the default buttons of the LIST STATUS on the ALV.

Thanks and regards,

Ravi :).

NOTE: Points keep me alive on SDN .

0 Kudos

Thanks,

I got output by copyinging sytem defined pf status to zstatus, here

I got as per standard toolbar but i am unable to get custom button which i added in the zstatus.

Thanks

0 Kudos

Hi Asha,

Though you have marked this as answered, here is the solution. Create a new STATUS, Add your custom button and then add the rest of the default buttons that you need. This might work as i myself have got stuck in one such problem in past.

Thanks and regards,

Ravi.