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

ALV Tool bar

Former Member
0 Likes
974

How to deactivate entire tool bar in an ALV list output..Wat i mean is "Tool bar of ALV O/P "

Thanks inadvance,

Sriram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
946

hi,

Create your own pf-status say, 'ABC'.

Pass this pf-status name to the reuse_alv_display fm.

Regards

Sailaja.

How to deactivate entire tool bar in an ALV list output..Wat i mean is "Tool bar of ALV O/P "

Thanks inadvance,

Sriram

6 REPLIES 6
Read only

Former Member
0 Likes
947

hi,

Create your own pf-status say, 'ABC'.

Pass this pf-status name to the reuse_alv_display fm.

Regards

Sailaja.

Read only

0 Likes
946

i think this is to disable tool bar of selection screen..i want to disable the functions of asc,desc,sum,filter in ALv grid o/P.. every thing i need to disable..

Read only

Former Member
0 Likes
946

You can have a PF Status of your own, instead of the standard which doesn't have any of the standard buttons..

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = W_REPID

I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

form PF_STATUS SET_PF_STATUS

USING P_EXTAB TYPE SLIS_T_EXTAB.

set pf-status 'STAT1'. Double click on STAT1 and create your own pf-status. and activate

enform.

Regards,

Ravi

Read only

Former Member
0 Likes
946

make use of SET PF , check Documentation of FM what u are using to display data in ALV.

Regards

Prabhu

Read only

Former Member
0 Likes
946

hI..,

Just execute this program .. it disables all the toolbar pushbuttons of ALV grid display !!!!!

<b>tables spfli.

type-pools: slis.

data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.

select * from spfli into table t_spfli.

call function 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = sy-repid

I_CALLBACK_PF_STATUS_SET = 'STATUS'

  • I_CALLBACK_USER_COMMAND = ' '

I_STRUCTURE_NAME = 'SPFLI'

  • IS_LAYOUT =

  • IT_FIELDCAT =

IT_EXCLUDING = T_EXCLUDING

tables

t_outtab = T_SPFLI

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

FORM STATUS USING rt_extab TYPE slis_t_extab .

SET PF-STATUS SPACE.

ENDFORM.</b>

<b>reward if it helps u..

sai ramesh</b>

Read only

Former Member
0 Likes
946

<u><b>Sure this will solve u r problem as i had done already ...</b></u>

To exculde some the buttons from ALV just follow the steps below .

Go to SE80 T-code

Select Package in first combo

give BALV_ADDON in secod combo give Enter.

u will get list below ..

From that list select PROGRAMS->R_ALV_LIST_TOOLBAR_MANAGER.

in that u can see on tool bar named STANDARD....

This is the standard one which ALV is useing ..

Just right click and select COPY ...

it will ask from pogram and to program ..

u give ur program name in to program

and ZSTANDARD for tool bar ...

Now u can go to u r program and edit that toolbar

i.e delete the buttons that u dont need ..

thanks

JK