Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Refresh basic list Output

Former Member
0 Likes
613

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?

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
574

Please check my reply in the following thread

a®

Read only

Former Member
0 Likes
574

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.>

Read only

0 Likes
574

Hi Sandeep.

Thanks for the reply.

I have done that. But, top-of-page won't trigger when the user refreshes the output screen.

Read only

0 Likes
574

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.