Skip to Content
author's profile photo Former Member
Former Member

Refresh ALV with refresh button from an internal table

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:51 AM
    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.
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 10:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 10:26 AM

    Hi,

    Check this thread.May be it can help you.

    how-to-refresh-an-alv-grid-created-with-fm-reuseal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 10:28 AM

    Hi,

    Check this thread.May be it can help you.

    how-to-refresh-an-alv-grid-created-with-fm-reuseal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 10:37 AM

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

    Regards,

    Richard

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.