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

Need to function module to clear Subscreen contents

Former Member
0 Likes
392

Hi.

can anyone say Function module which clears the contents of Subscreen when navigated from subscreen to subscreen.

MY Problem:

i have 6 subscreen.(A,B,C,D,E,F) each subscreen has 100 checkboxes.

i checked some checkboxes of subscreen A. And navigated to subscreen B. And again navigated back to subscreen A.

I found all the checkboxes what i checked before are checked. I want them to be unchecked(screen not refreshed), when i come back to that subscreen.

Any Function module avaliable to refresh screen contents.

Help me.

Hi.

can anyone say Function module which clears the contents of Subscreen when navigated from subscreen to subscreen.

MY Problem:

i have 6 subscreen.(A,B,C,D,E,F) each subscreen has 100 checkboxes.

i checked some checkboxes of subscreen A. And navigated to subscreen B. And again navigated back to subscreen A.

I found all the checkboxes what i checked before are checked. I want them to be unchecked(screen not refreshed), when i come back to that subscreen.

Any Function module avaliable to refresh screen contents.

Help me.

1 REPLY 1
Read only

MarcinPciak
Active Contributor
0 Likes
351

Don't think so. I am affraid you will have to clear all checkboxes one by one. Anyhow you can use field symbols to address them dynamically and clear their content.


"suppose you have checkboxes ch_01, ch_02 ... ch99

field-symbols <checkbox> type any.
data: g_checkbox_name type string.
data: n_index(2) type n.

do 99 times.
  n_index = sy-index.
  concatenate 'CH_' n_index into  g_checkbox_name.
  assign (g_checkbox_name) to <checkbox>.
  check sy-subrc = 0.
   "cleat the content of subsequent checkboxes
   clear <checkbox>.
enddo.

Regards

Marcin