2005 Mar 01 10:14 AM
Hi All,
I am using ALV List to display the output. I want to hide all the buttons except the sum button.
I referred "An Easy Reference for ALV GRID CONTROL" but it is for grid not for list.
Thanx & Regards,
Dilip
Hi All,
I am using ALV List to display the output. I want to hide all the buttons except the sum button.
I referred "An Easy Reference for ALV GRID CONTROL" but it is for grid not for list.
Thanx & Regards,
Dilip
2005 Mar 01 10:23 AM
Hi Dilip,
I assume that you are using REUSE_ALV_LIST_DISPLAY. There's a parameter called IT_EXCLUDING , to which you can pass the function codes of all the buttons which yuo want to suppress.
Regards,
Anand Mandalika.
2005 Mar 01 12:11 PM
Dear Anand,
I don't know what parameters should i pass to 'it_excluding' .
In using alv grid the parameter is
ui_functions passed to 'it_excluding'.
Which is the parameter that i pass here ?
Kindly tell me....
Dilip
2005 Mar 01 3:30 PM
If you look at function group SALV, then GUI STATUS 'STANDARD', open up the Application toolbar, and see function codes like &OUP for sort ascending and &ODN for sort descending. The values &OUP and &ODN are what you would pass in an internal table to the 'it_excluding' parameter if you wanted to turn off those functions. For example:
TYPES: BEGIN OF my_exclude,
fcode like rsmpe-func,
END OF my_exclude.
DATA: t_my_exclude type standard table of my_exclude,
wa_my_exclude like line of t_my_exclude.
wa_my_exclude-fcode = '&OUP'.
append wa_my_exclude to t_my_exclude.
wa_my_exclude-fcode = '&OUP'.
append wa_my_exclude to t_my_exclude.
....
CALL FUNCTION....
it_excluding = t_my_excludeLet us know how it goes.
2005 Mar 03 12:47 PM
2005 Mar 01 3:15 PM
Hi Dilip,
here're some examples :
include <b>LSALVF01</b>
FORM E09_EXCLUDING_BUILD TABLES E09_IT_EXCLUDING TYPE SLIS_T_EXTAB.
i think , rest of the missing fcodes you can find in debugging with sy-xcode!
regards Andreas
2005 Mar 03 12:53 PM
2005 Mar 01 9:59 PM
Hi Dilip,
The easiest way to do this is as shown in the code below.
DATA: BEGIN OF i_functions OCCURS 0.
INCLUDE STRUCTURE rseul_fun.
DATA: END OF i_functions.
DATA: BEGIN OF i_function_list OCCURS 0.
INCLUDE STRUCTURE rsmpe_funl.
DATA: END OF i_function_list.
DATA: BEGIN OF it_exclude OCCURS 0,
fcode LIKE rsmpe-func.
DATA: END OF it_exclude.
CALL FUNCTION 'RS_CUA_GET_STATUS_FUNCTIONS'
EXPORTING
language = sy-langu
program = 'SAPLKKBL'
status = 'STANDARD'
* IMPORTING
* MASTER_LANGUAGE =
TABLES
functions = i_functions
function_list = i_function_list
EXCEPTIONS
menu_not_found = 1
program_not_found = 2
status_not_found = 3
OTHERS = 4.
DELETE i_function_list WHERE fcode = '&UMC'
OR fcode = '&SUM'.
LOOP AT i_function_list.
MOVE i_function_list-fcode TO it_exclude.
APPEND it_exclude.
CLEAR it_exclude.
ENDLOOP.
At the end of this code, you will get your it_exclude. use that in your ALV list function call.
Srinivas
2005 Mar 03 12:47 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |