Skip to Content
avatar image
Former Member

how to hide selection column from alv grid

hi

i want to hide selection columns form alv grid.. how can i do it.. Is there any fm for that?

regards

palak

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 21, 2008 at 08:48 AM

    Hi palak,

    here is no FM for your problem. You have to set one field of your layout to 'X'.

    e.g. data: it_layout TYPE lvc_s_layo.

    it_layout-no_rowmark = 'X' .

    Regards,

    Azra.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 08:43 AM

    Hi

    U need to set the flag field NO_OUT in catalog table

    Max

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      the ALV Grid Control allows you to directly hide key columns with NO_OUT (field KEY_SEL is not used).

      Field name:NO_OUT

      Comp. type:LVC_NOOUT

      Dtype(length):Char(1)

      SPACE, 'X'

      If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.

      Regards,

      Neenu.

      Edited by: Neenu Jose on Oct 21, 2008 10:46 AM