ALV Refresh button messes up grouping

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
RGoeken
Posts: 45
Joined: Fri Aug 11, 2006 3:18 am

ALV Refresh button messes up grouping

Post by RGoeken » Wed Apr 19, 2017 7:57 am

Hi all,

I need a refresh button in ALV. I use REUSE_ALV_GRID_DISPLAY for the ALV.
When I set gs_fieldcat-edit = 'X' on any field, the refresh button is showing but then my grouping on a column is gone.
Before the change the output was like:
ORDER MATERIAL
1 11111111
22222222
2 33333333
After activation of the refresh button it is like:
1 11111111
1 22222222
2 33333333

Any ideas how to activate the refresh button without messing up the grouping?

Rich
Posts: 7116
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool
Contact:

Re: ALV Refresh button messes up grouping

Post by Rich » Wed Jul 19, 2017 9:09 am

A refresh basically reads and redisplays your data.

I would define a user command callback (se the documentation for the FM) and handle it all yourself, where you could redo the groupings etc etc

Rich
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com

Post Reply