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 Grid display - function module method

Former Member
0 Likes
868

Hi all ,

As per our requirement , I have added a button called 'Summary' to alv gui status ( along with standard alv gui like sort ..) . When I click this button the final internal table contents are changed . I want this changed internal table content to be reflected in the grid without clicking the refresh button .Is there a way to do this.Is there any function module to do this ?

Regards,

Kavitha

4 REPLIES 4
Read only

Former Member
0 Likes
543

Hello,

Once you make modifications in your internal table, once the button is clicked, you call the same ALV display subroutine again.

Best Regards, Murugesh AS

Read only

Former Member
0 Likes
543

Hi Murugesh ,

In that case , I will get it done . But when I click back button , it will go to the previously displayed alv grid . And then from there , when I click back it will go to the selection screen . This should not happen . There must be only 1 grid and not overlapping grids . When I click back it must go directly only to selection screen.

Regards,

Kavitha.

Read only

0 Likes
543

Maybe trying using the LEAVE SCREEN statment in the 'REFRESH' logic.

Would it be possible to post some of your code?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
543

Hello,

you'll process your 'Summary' command in a form that's defined via I_CALLBACK_USER_COMMAND-parameter.

This form has a given interface:

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

In the structure rs_selfield there's a field 'refresh'.

rs_selfield-refresh = 'X' means that the grid-display is refreshed from the internal table.

Regards

Wolfgang