Skip to Content
avatar image
Former Member

Change layout Button In ALV Grid

Hi all,

I have a requirement where I am creating Field Catalogue from Z Table(has 60 fields) for few(12) fields.

The user would like to have the option to add more fields by changing the Layout. But I dont see the Fields in Hidden Column when I click the Change Layout Button in ALV Toolbar. It just displays the Field based on Field Catalogue defined.

Is there a way I can maintain all the fields without being displayed in ALV initally and letting the user select the hidden fields as per their requirement. As happens in SE16 where we can select the fields to be displayed.

Thanks for the support.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 22, 2010 at 04:03 AM

    Hi Abhilasa,

    For your requierment you have to create the Field catalog for all the 60 fields. Assign the value X to the component no_out of Field catalog for those fields, which you do not want to display initially. But you can choose those fields by clicking on the Change Layout Button.

    This will solve your Problem.

    Regards

    DKS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 22, 2010 at 12:46 PM

    Hi Abhilasha,

    In the reuse_alv function module we can see a field I_SAVE.If you pass this as 'X' then the option of saving the layout variants are available.

    Create a layout by,selecting just the fileds required for display and set it as the default variant.It can be made Global or user-specific.But we need to declare all fields in the fieldcatalog.

    So if the default variant is set,everytime the program is run it shows only the fields selected in it but can select more form the change layout option.

    Hope it helps.

    Regards

    Byju

    Add comment
    10|10000 characters needed characters exceeded