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 Without Row Selection

Former Member
0 Likes
726

Good Morning,

I've created a report using <b>REUSE_ALV_GRID_DISPLAY</b>.

I want to exclude de boxes for row selection in the left of the grid, how can i do that?

This should be basic...

Best Regards,

Pedro Gaspar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

Hi Pedro,

if you have declared a Box-field in your table, delete it and make layout-box_fieldname clear.

the box-field in the table must not be the first field,

if layout-box_fieldname is set, it would be automaticly set to first.

Regards, Dieter

6 REPLIES 6
Read only

Former Member
0 Likes
672

Hi

U have to check which is its functional code and pass it to fm by parameter IT_EXCLUDING.

DATA: WA_EXCLUDING TYPE slis_extab,

GT_EXCLUDING TYPE slis_t_extab.

WA_EXCLUDING-FCODE = ....

APPEND WA_EXCLUDING TO GT_EXCLUDING.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

............

IT_EXCLUDING = GT_EXCLUDING

...............

Max

Read only

Former Member
0 Likes
672

In YOur code you should comment the line where you fil the layout information box_fieldname = <Some name>.

and also remove the extra single cahracter field in the internal table that is being displayed.

Regards,

ravi

Read only

Former Member
0 Likes
672

hi,

could u pls explain what the problem is exactly?

rgds,

siva

Read only

0 Likes
672

Hello Siva,

As far as i know, when the function <b>REUSE_ALV_GRID_DISPLAY</b> it creates an ALV Grid that looks like an Excel Worksheet.

The first cell of each row isn't the field of my internal table but it's a "box" where i can click to select or unselect the row. I want the ALV to be displayed without those select/unselect "boxes".

Best Regards,

Pedro Gaspar

Read only

Former Member
0 Likes
672

Hi Pedro,

try this:

DATA: EXCLUDING TYPE SLIS_T_EXTAB.

DATA: WA_EXCLUDING TYPE SLIS_EXTAB.

*

WA_EXCLUDING-FCODE = '&ETA'.

APPEND WA_EXCLUDING TO P_EXCLUDING.

*

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = PROGNAME

  • I_CALLBACK_PF_STATUS_SET = 'MAIN'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'

IS_VARIANT = VARIANT

IS_LAYOUT = LAYOUT

IT_FIELDCAT = FIELDCAT

IT_EXCLUDING = EXCLUDING

IT_SORT = SORT

IT_FILTER = FILTER

I_SAVE = 'A'

IT_EVENTS = EVENTS

IT_EVENT_EXIT = EVENT_EXIT

IS_PRINT = PRINT

TABLES

T_OUTTAB = ITAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Regards, Dieter

Read only

Former Member
0 Likes
673

Hi Pedro,

if you have declared a Box-field in your table, delete it and make layout-box_fieldname clear.

the box-field in the table must not be the first field,

if layout-box_fieldname is set, it would be automaticly set to first.

Regards, Dieter