11-22-2007 4:41 AM
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
11-22-2007 4: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
11-22-2007 4: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.
<b>Reward if usefull</b>