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

Refresh ALV with refresh button from an internal table

Former Member
0 Likes
928

Hello,

Who could help me further with the following problem?

In a program I use the function REUSE_ALV_GRID_DISPLAY. Every thing is working fine except one thing. I enabled the default buttons for the ALV so the user is able to sort the list and use the filter etc. One of the buttons is the refresh button. When I press this refresh button the program doesn't pass the function or form which is mentioned in the parameter "I_CALLBACK_USER_COMMAND" of the function REUSE_ALV_GRID_DISPLAY.

All the other functions and user interactions which I have defined in the ALV, like hotspots and an extra print button are working fine and call the function which is mentioned in the parameter.

In my program I'm creating an internal table. This internal table has to be rebuild when the refresh button is pressed. What I see now is, when I debug the program, if I press the refresh button, is that the ALV is refreshed with the values of the internal table. I have to jump out the refresh so the internal table selects the new values.

Kind regards,

Richard Meijn

Hello,

Who could help me further with the following problem?

In a program I use the function REUSE_ALV_GRID_DISPLAY. Every thing is working fine except one thing. I enabled the default buttons for the ALV so the user is able to sort the list and use the filter etc. One of the buttons is the refresh button. When I press this refresh button the program doesn't pass the function or form which is mentioned in the parameter "I_CALLBACK_USER_COMMAND" of the function REUSE_ALV_GRID_DISPLAY.

All the other functions and user interactions which I have defined in the ALV, like hotspots and an extra print button are working fine and call the function which is mentioned in the parameter.

In my program I'm creating an internal table. This internal table has to be rebuild when the refresh button is pressed. What I see now is, when I debug the program, if I press the refresh button, is that the ALV is refreshed with the values of the internal table. I have to jump out the refresh so the internal table selects the new values.

Kind regards,

Richard Meijn

5 REPLIES 5
Read only

Former Member
0 Likes
819
try this...

FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.

case p_ucomm.
   when 'XXXX'.

...
...
P_SELFLD-refresh = 'X'.
endcase.
Read only

Former Member
0 Likes
819

Hello,

This is the strange thing. If I but a break in my program on the case statement of the user_command function the program doesn't stop on the case statement?

So it doesn't pass the case statement when the refresh button is pussed. I have defined an other button to print selected lines. If I press that button the case statement is passed?

Kind regards,

Richard Meijn

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
819

Hi,

Check this thread.May be it can help you.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
819

Hi,

Check this thread.May be it can help you.

Read only

Former Member
0 Likes
819

The standard pf-status which I'm using is "STANDARD_FULLSCREEN" for the parameter I_CALLBACK_PF_STATUS_SET.

Regards,

Richard