2008 Jun 26 12:41 PM
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
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
2008 Jun 26 12:44 PM
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.
2008 Jun 26 12:48 PM
Hi,
Set the Pf status and write code under the event AT USER-COMMAND and write the refresh table statement to clear the list.
2008 Jun 26 12:49 PM
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
2008 Jun 26 12:50 PM
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.
2008 Jun 26 1:16 PM
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.
2008 Jun 26 1:24 PM
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.
2008 Jun 26 1:30 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |