Skip to Content
author's profile photo Former Member
Former Member

ALV Without Row Selection

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2006 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12:24 PM

    hi,

    could u pls explain what the problem is exactly?

    rgds,

    siva

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.