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

ALV -grid

Hi,

I am looking help on ALV grid (output).

By default in the output of report i get 5 fields using ALV grid.

After getting this list , i have a option to increase and choose more fields.

Let us say i have added 2 more to already existing 5 fields.

So from the next time, when ever user executes the report he should get the 7 fields as default.

is the possible with out touching the source code of the report.

regards

Satheesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2005 at 03:06 PM

    Create a variant , save the layout and make it default.

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 17, 2005 at 03:07 PM

    yes,

    -> fill parm. is_variant and i_save

    CALL METHOD grid1->set_table_for_first_display

    EXPORTING i_structure_name = 'ZTAB'

    is_layout = lay

    it_toolbar_excluding = tb0

    is_variant = gs_variant

    i_save = x_save

    ...

    regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 17, 2005 at 03:07 PM

    Yes, you can save the layouts, as global, or as user specific. As well as making a layout a default.

    On the ALV toolbar, there should be an icon for changing layouts and saving layouts. Experiment with these functions.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • If the program is not allowing you to save, you need to fill the parameters when calling the method.

      
        data: variant type  disvariant.
      
        variant-report = sy-repid.
        variant-username = sy-uname.
      
        call method alv_grid->set_table_for_first_display
            exporting
                 is_layout              = layout
      <b>        is_variant             = variant
                 i_save                 = 'U'</b>
                 i_structure_name       = 'I_ALV'
            changing
                 it_outtab       = i_alv[]
                 it_fieldcatalog = fieldcat[].
      
      

      Regards,

      Rich Heilman

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.