2007 Apr 05 10:20 AM
How to deactivate entire tool bar in an ALV list output..Wat i mean is "Tool bar of ALV O/P "
Thanks inadvance,
Sriram
2007 Apr 05 10:22 AM
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
2007 Apr 05 10:22 AM
hi,
Create your own pf-status say, 'ABC'.
Pass this pf-status name to the reuse_alv_display fm.
Regards
Sailaja.
2007 Apr 05 10:25 AM
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..
2007 Apr 05 10:22 AM
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
2007 Apr 05 10:23 AM
make use of SET PF , check Documentation of FM what u are using to display data in ALV.
Regards
Prabhu
2007 Apr 05 10:32 AM
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>
2007 Apr 05 11:49 AM
<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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |