2009 Sep 13 10:08 AM
Hi,
I am displaying a BASIC LIST. I have to place a u2018Refreshu2019 icon to refresh / re-execute the program from the output screen with the previously selected criteria. How can this be acheived?
2009 Sep 13 10:20 AM
2009 Sep 13 11:58 AM
Hi Arvind,
The logic is pretty simple. To stay on the basic list inside AT LINE-SELECTION or AT USER-COMMAND, you simply have to set sy-lsind = 0 inside your DISPLAY_REPORT form.
Then use the following code:
<START-OF-SELECTION.
PERFORM DISPLAY_REPORT.
.
.
.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'REFR'.
PERFORM DISPLAY_REPORT.
WHEN OTHERS.
ENDCASE.>
2009 Sep 13 3:51 PM
Hi Sandeep.
Thanks for the reply.
I have done that. But, top-of-page won't trigger when the user refreshes the output screen.
2009 Sep 14 9:41 AM
For using TOP-OF-PAGE while refreshing, you will have to do the following:
START-OF-SELECTION.
PERFORM DISPLAY_REPORT.
TOP-OF-PAGE.
PERFORM TOP_PAGE.
.
.
.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'REFR'.
PERFORM DISPLAY_REPORT.
WHEN OTHERS.
ENDCASE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE SY-LSIND.
WHEN '1'.
* Note: Though you are setting SY-LSIND = 0, it will only take effect *after* this code is executed
PERFORM TOP_PAGE.
WHEN OTHERS.
ENDCASE.