‎2006 Oct 26 1:16 PM
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
‎2006 Oct 26 3:40 PM
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
‎2006 Oct 26 1:22 PM
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
‎2006 Oct 26 1:23 PM
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
‎2006 Oct 26 1:24 PM
hi,
could u pls explain what the problem is exactly?
rgds,
siva
‎2006 Oct 26 2:35 PM
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
‎2006 Oct 26 1:46 PM
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
‎2006 Oct 26 3:40 PM
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