Skip to Content

Grouping of columns in OO ALV

HI experts,

I am using cl_gui_alv_grid to display data in ALV.

My requirement is to group columns so that in the layout I can select the grouped columns based on my requirement.

For suppose I have 20 fields....
I need few fields in one group, and few other fields in one group and few other fields in another group.

Finally in the layout I must be able to select the grouped columns.

How can I achieve this ?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 11, 2014 at 10:16 AM

    Hi Eshwar,

    In Structure lvc_s_fcat you have field name sp_group (Group Key ) which will solve your probelm


    data: ls_field_catalog type lvc_s_fcat.

    move '0001' to ls_field_catalog-sp_group.



    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.