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

module pool

Former Member
0 Likes
548

hi all,

i got 3 tabs and in each tabs there are 3 input/output box and a save button to update the database.After entering values in the (1st tab)i/o box and when i push save button.its getting updated.i will do the same operation on the second tab.My problem is after doing the sme on the 2nd tab if i click on the 1st tab the value retains on the 1st tab i/o box.i dont want tht to happen.How can i clear the previous values on the 1st tab.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
522

Hi Alex,

its really simple. You just need to clear the internal table or the variables (what-ever is on your screen as fields) after saving the data in the user_command.

module User_command.
 case ok_code.
   when 'SAVE'.
      *PERFORM ACTION - AS PER YOUR REQUIREMENT
      *clear fields on the first tab
      clear : v_field1,v_field2, itab1,itab2.
 endcase.
endmodule

Regards,

Richa

4 REPLIES 4
Read only

Former Member
0 Likes
522

hi,

After saving, clear the values in first tab. As they are saved, they are no longer required.

Regards,

Sailaja.

Read only

Former Member
0 Likes
522

hi

good

use the CLEAR itab . before coming to the 2nd itab.

thanks

mrutyun

Read only

Former Member
0 Likes
523

Hi Alex,

its really simple. You just need to clear the internal table or the variables (what-ever is on your screen as fields) after saving the data in the user_command.

module User_command.
 case ok_code.
   when 'SAVE'.
      *PERFORM ACTION - AS PER YOUR REQUIREMENT
      *clear fields on the first tab
      clear : v_field1,v_field2, itab1,itab2.
 endcase.
endmodule

Regards,

Richa

Read only

Former Member
0 Likes
522

Hello ALex.

After clicking the save button clear the fields of the particular tab.

Hope this will helps u.

If useful reward.

Vasanth