‎2006 Aug 25 11:36 AM
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.
‎2006 Aug 25 12:21 PM
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.
endmoduleRegards,
Richa
‎2006 Aug 25 11:48 AM
hi,
After saving, clear the values in first tab. As they are saved, they are no longer required.
Regards,
Sailaja.
‎2006 Aug 25 11:48 AM
hi
good
use the CLEAR itab . before coming to the 2nd itab.
thanks
mrutyun
‎2006 Aug 25 12:21 PM
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.
endmoduleRegards,
Richa
‎2006 Aug 25 12:23 PM
Hello ALex.
After clicking the save button clear the fields of the particular tab.
Hope this will helps u.
If useful reward.
Vasanth