Application Development 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: 

SORT in REUSE_ALV_BLOCK_APPEND

Former Member
0 Kudos

Hi Experts,

I am working on ALV Block Report. Its having two blocks. When I am coading for Sorting of fields it doing that but the output is different as what we have in ALV Grid. Means if we do sorting in ALV Grid, the field value do not repeat, like :

1234 xyz

sdf

abc etc

so here 1234 is not repeating everytime. But this output I am not getting in ALV Block. Can anybody help me

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos

This is the Difference between list and Grid display view.

And Block list is also some like List display(in terms of view).

former_member404244
Active Contributor
0 Kudos

Hi,

You won't get the output as u deisred when u use the block list ...

Regards,

Nagaraj

0 Kudos

Hi Nagaraj n Amit,

Is there any other way to get it. As my one another post Can I use Grid Display with Block to get it?

0 Kudos

>

> Is there any other way to get it.

Perhaps No.

Can I use Grid Display with Block to get it

Again No.

But yes some work around this could meet your requirement exactly.

Letu2019s say.......

Sort Itab based on the fields which you do not want to repeat over and over after sorting.

Than loop on the final internal table and store the field1 value for each previous Loop iteration and check this value with next loop iteration check if this value matches with previous loop value than just pass "Space" in this field and modify the internal table.

Than show your Block ALV.It would not shown the repeated fields over and over again.

I hope it makes sense.

Cheers,

Amit.

Former Member
0 Kudos

Solved