Skip to Content
avatar image
Former Member

Display in alv grid

Hi all abap gurus,

I am using REUSE_ALV_GRID_DISPLAY, now wat is want is that i have 15 fields in my fieldcatalog but when alv grid is displayed first time i want to display only 10 fields, after the display user can display the remaning fields by changing the layout settings at display level itself,

now i can abe to change the the number of fields displayed at screen level that is the standard func. ALV provides but first time ALV grid is displayed all the fields are displayed which i want to restrict to fewer fields.

thanks

Devender.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Sep 26, 2008 at 09:53 AM

    >ALV grid is displayed all the fields are displayed which i want >to restrict to fewer fields.

    If you Don't want all the fields then you can use NO_OUT option in the fieldcatalog for the column which you Don't want them in first display.

    fieldcat-no_out = 'X'. "mention for the columns which you want 
                                  "to hide.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 26, 2008 at 09:55 AM

    Try like this

    add a Push button at the application toolbar, assign a function code to it, and give the code for that function in user-command.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 26, 2008 at 09:56 AM

    hi

    use NO_OUT in field catalog which fields are not need to display at first time display. User can select in layout setting for display

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 26, 2008 at 10:25 AM

    hai ,

    use variant option such that to display 10 fields in output .

    resue_variant_get.

    shan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 26, 2008 at 12:28 PM

    I was missing that i got if afterwards, but anyways thanks all of u for helping

    Add comment
    10|10000 characters needed characters exceeded