Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALv + Group Lines

manuelhildemaro_ramossanc
Active Participant
0 Likes
718

Hi...Good Day...

See next.. I have..

1000 xxxx yyyyy

1000 zzzz ccccc

1000 vvvvv rrrrrrrr

2000 www ttttttt

2000 hhhh oooo

Can i do this in alv ???

1000 xxxx yyyyy

zzzz ccccc

vvvvv rrrrrrrr

2000 www ttttttt

hhhh oooo

I guess that alv can do it... But i dont have much time for research..

If somebody knows how do it, i will aprecciate..

Thanks.......

Regards,

Manuel H.

Hi...Good Day...

See next.. I have..

1000 xxxx yyyyy

1000 zzzz ccccc

1000 vvvvv rrrrrrrr

2000 www ttttttt

2000 hhhh oooo

Can i do this in alv ???

1000 xxxx yyyyy

zzzz ccccc

vvvvv rrrrrrrr

2000 www ttttttt

hhhh oooo

I guess that alv can do it... But i dont have much time for research..

If somebody knows how do it, i will aprecciate..

Thanks.......

Regards,

Manuel H.

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
651

Hi,

Try to use fm REUSE_ALV_HIERSEQ_LIST_DISPLAY

Take a look at report "BALVHD01". This is a sample Hierarchical List.

Read only

0 Likes
651

Thanks Ars for your reply.. but i want more or less this....

number name last name

1000 xxxx yyyyy

1000 zzzz ccccc

1000 vvvvv rrrrrrrr

2000 www ttttttt

2000 hhhh oooo

number name lastanme

1000 xxxx yyyyy

-


zzzz ccccc

-


vvvvv rrrrrrrr

2000 www ttttttt

-


hhhh oooo

Read only

0 Likes
651

Hi,

You can ALSO use simple alv grid using SORT will work


    i_sort-fieldname = 'NUMBER'.
    i_sort-down = c_x.
    append i_sort.
    clear i_sort.

    call method grid1->set_table_for_first_display
      exporting
        is_layout                     = gs_layout
        is_variant                    = gs_variant
        i_save                        = 'A'
        it_toolbar_excluding          = i_exclude[]
      changing
        it_outtab                     = i_output[]
        it_fieldcatalog               = i_fieldcat[]
        it_sort                       = i_sort[]
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.