2011 Oct 24 5:29 AM
Hi All,
I have developed ALV report using grid layout.The user wanted that when he execute the report and click on refresh button the report data gets refreshed as report output is based on Z table and same Z table is updating through RFC interface continously.So this functionality is working for me but problem is that after click refresh 2 to 3 times then to come back to selection screen he has to click back button same number of times as refresh button click.
Could anybody help how I can come back to selection screen on single click after click refresh button.
Thanks&Regards,
Sachin
2011 Oct 24 5:42 AM
Hi,
I guess, you must be using custom refresh button and standard back button. I would suggest go for custom back button as well.
Regards,
Pranav.
Hi,
I guess, you must be using custom refresh button and standard back button. I would suggest go for custom back button as well.
Regards,
Pranav.
2011 Oct 24 5:37 AM
hi sachin ,
just wanted to know that wheather u created any push-button for refresh and back .
if yes than what is the code in back button .
regards
ranjan.
2011 Oct 24 5:42 AM
Hi,
I guess, you must be using custom refresh button and standard back button. I would suggest go for custom back button as well.
Regards,
Pranav.
2011 Oct 24 6:24 AM
Hello Pranav,
Thanks for the update.
I not using any custome refresh button but using PF-STATUS 'STANDARD'.
On refresh button I am again fetching data and calling fieldcatlog and displaying report.
Regards,
Sachin
2011 Oct 24 6:34 AM
Hi Sachin,
ON the user command of REFRESH button fetch data and just user after data is fetched RS_SELFIELD-REFRESH = 'X'.
This will solve the problem.
Regards,
Madhukar Shetty
2011 Oct 24 8:01 AM
Hi Madhukar,
The refresh button logic is working fine but problem is in back button.I mean consider user click refresh button 3 times to see the current data then to go back on selection scrren he has to click back button also three times,So this should be on single click.
Regards,
Sachin
2011 Oct 24 8:11 AM
Hi Sachin,
This is what Madhukar meant
On refresh button I am again fetching data and calling fieldcatlog and displaying report.
Do not call the fieldcatalog and function module again.
Get the new data into your internal table in user command event &
Just add refresh = 'X' in your user command event.
For example
FORM f_user_command USING UCOMM LIKE SY-UCOMM v_selfld TYPE slis_selfield.
if sy-ucomm = 'REF'.
PERFORM get_data.
selfld-refresh = u2018Xu2019.
endif.
ENDFORM.
Kesav
2011 Oct 24 9:32 AM
Hi keshav,
Thank you very much Its working for me now.
Regards,
Sachin
2011 Oct 24 5:44 AM
hi sachin ,
try this code.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'S2000'.
CALL SELECTION-SCREEN 2000.
endcase.
regards
ranjan
2011 Oct 24 8:11 AM
Hİ,
In your user_command perform; reconfigure back command with LEAVE TO SCREEN 0.
CASE save_ok.
WHEN '&F15' OR '&F03'.
LEAVE TO SCREEN 0.
ENDCASE.
Take care.
Çağatay
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |