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

Hi OPPS ALV REFRESH BUTTON in OPPS ALV

Hi Guru,

I have one requirment after display OPPS ALV user want to click on refresh button

while refreshing OOPS ALV i want to submit my report again so that user can see update data with refresh code.

But guru I cant get sy-ucomm in OPPS ALV for refresh button.

Please help me out ASAP.

Point will awarded.

Thanks

Ramana

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 04:45 AM

    define your own PF-STATUS for the ALV screen...

    in that screen define the refresh button with customized code...

    this value you will be able to catch via sy-ucomm

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 04:50 AM

    Hi

    Ok first you need to copy the gui status STANDARD from the function group SALV into your program. This is the standard gui status used for the toolbar in your program, next modify it and add a button to the toolbar for your refresh. Then in you program, you need to tell it to use this status instead.

    cl_salv_table=>factory( IMPORTING r_salv_table = gr_table

    CHANGING t_table = ispfli ).

    • Here you are telling the alv object to use this gui status instead

    gr_table->set_screen_status(

    pfstatus = 'STANDARD'

    report = sy-repid

    set_functions = gr_table->c_functions_all ).

    Now, you will have your button on the toolbar, but you will still need to handle it.

    Check program SALV_DEMO_TABLE_FUNCTIONS to see what the procedures are to handle your custom button.

    Also, here is a tutorial which will walk you thru the entire process. With screenshots. Hope it is helpful.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/alv%20object%20model%20-%20simple%202d%20table%20-%20event%20handling.pdf

    <b>Reward if usefull</b>

    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.