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: 

Selection-screen.

Former Member
0 Kudos

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?

2 REPLIES 2

Former Member
0 Kudos

why don't you try making a CLEAR and a REFRESH to your variable at PBO.

DS

Former Member
0 Kudos

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.