ALV grid display and restricting standard options

Question:
Before I start, I will say that I have already searched in the forums for this subject....
The problem that I have is that I want o disable the standard functions from the ALV grid for PRINT and display graphics.
Now I know that you pass an internal table of excluded function codes to SET_TABLE_FOR_FIRST_DISPLAY to the exporting parameter IT_TOOLBAR_EXCLUDING..
The internal table has been based on the the ddic table UI_FUNCTIONS and contains entries for MC_FC_PRINT and MC_FC_GRAPH. There are 2 entries in this internal table and in debug I can see that the passed internal table does contain these two entries.
My problem is.... I still see the print and graph options. Am I missing something?
Thanks
Answer:
have you filled the toolbar_exclude table like this ?
APPEND '&SORT_ASC' TO gt_toolbar_excl.
APPEND '&SORT_DSC' TO gt_toolbar_excl.
APPEND '&GRAPH' TO gt_toolbar_excl.
APPEND '&FILTER' TO gt_toolbar_excl.
cause it works when you do it like this.
regards
Hans
_________________
hans

More Articles:

Delete a program with running another program?
Installing MiniSAP?
Printing a report to multiple printers simultaneously?
sy-datum vs. sy-datlo?
SQL Trace?
R/3 Objects?