Application Development 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: 

refresh the basic list

Former Member
0 Kudos

experts,

i have run a report using write statement ,and an output list was generated. i have used a set pf-status for the list and placed a refresh button. my aim is the entire list should get cleared when i press refresh button.

is it possible to generate or refresh a list which contains no data

with regards

7 REPLIES 7

Former Member
0 Kudos

If there is no data in the list there is no need to refresh it.If you want to refresh the data,clear the cariables and refresh the internal table.

Former Member
0 Kudos

Hi,

Set the Pf status and write code under the event AT USER-COMMAND and write the refresh table statement to clear the list.

Former Member
0 Kudos

Hi Ramesh,

If you want to get a list without any data, under usercommand of your refresh button, just REFRESH the table and display it without any headings.

Regards,

Chandra Sekhar

Former Member
0 Kudos

this is not possible to generate a list with out any data...at least it should have a write statement ..

check this example...

start-of-selection.

write:/ 'this is test'.

at line-selection.

if sy-lsind = 1.

write:/ ' this is good'.

elseif sy-lsind = 2.

endif.

Former Member
0 Kudos

Hi Ramesh,

Try this.

At user-command.

case sy-ucomm.

when 'REFRESH'.

sy-lsind = 0.

refresh <itab>.

loop at <itab> into wa.

<write the contents>

endloop.

endcase.

I think this solves ur issue.

Reward if found useful,

Regards,

Swapna.

Former Member
0 Kudos

Hi Once again,

otherwise try this way :

TABLES :

spfli.

DATA :

t_spfli TYPE TABLE OF spfli.

SELECT *

FROM spfli

INTO TABLE t_spfli.

SET PF-STATUS 'YMENU1'.

LOOP AT t_spfli INTO spfli.

WRITE :/5 spfli-carrid,

10 spfli-connid.

ENDLOOP.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'REFRESH'.

sy-lsind = 0.

REFRESH t_spfli.

LOOP AT t_spfli INTO spfli.

WRITE :/5 spfli-carrid,

10 spfli-connid.

ENDLOOP.

skip.

ENDCASE.

Regards,

Swapna.

Former Member
0 Kudos

hi,

This is possible by writing the code under AT USER-COMMAND event.

Here Put sy-lsind = 0.

refresh the table and perform the display operation.

All the enteries from the list and the table got cleared.

Hope this will Help.

Reward if useful.

Sumit Agarwal