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 List

Former Member
0 Likes
1,164

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,097

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.

Read only

0 Likes
1,097

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

Read only

0 Likes
1,097

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_exclude

Let us know how it goes.

Read only

0 Likes
1,097

Hi Charles,

Thanku for your informative reply.

Dilip

Read only

andreas_mann3
Active Contributor
0 Likes
1,097

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

Read only

0 Likes
1,097

Andreas ,

Thanku for your informative reply.

Regards,

Dilip

Read only

Former Member
0 Likes
1,097

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

Read only

0 Likes
1,097

Hi Srinivas,

Thanku for your informative reply.

Dilip