‎2007 Sep 20 3:24 PM
There is a selction screen havig select options for kunnr.by giving value in selection-screen, output is being displayed. but when we will back from output, there should be no value in selection-screen. how?
‎2007 Sep 20 3:45 PM
why don't you try making a CLEAR and a REFRESH to your variable at PBO.
DS
‎2007 Sep 20 10:38 PM
As Dimas says, you just need to make sure you clear the select-option range table before the screen is redisplayed... but typically for a report this would actually be during the "end-of-selection" event after you are sure you have finished using them... alternatively you could copy the values to your own range table and clear the select-options right at the start-of-selection.. some pseudo code examples below.
Jonathan
*"Example 1:
select-options:
s_kunnr for kna1-kunnr.
start-of-selection.
perform get_data. "using s_kunnr in DB select
end-of-selection.
perform write_report.
clear: s_kunnr, s_kunnr[]. "all finished with.
*"Example 2:
ranges:
gr_kunnr for kna1-kunnr.
select-options:
s_kunnr for kna1-kunnr.
start-of-selection.
gr_kunnr[] = s_kunnr[]. "copy to own global range
clear: s_kunnr, s_kunnr[]. "all finished with.
perform get_data. "using gr_kunnr in DB select
end-of-selection.
perform write_report.