This website is not affiliated with, sponsored by, or approved by SAP AG.

ALV Refresh button messes up grouping

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

ALV Refresh button messes up grouping

Postby 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?
RGoeken
 
Posts: 45
Joined: Fri Aug 11, 2006 3:18 am

Re: ALV Refresh button messes up grouping

Postby 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
Rich
 
Posts: 7112
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool


Return to ABAP

Who is online

Users browsing this forum: No registered users and 8 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.