‎2008 Feb 28 9:08 PM
Hi All,
I have a table control in which i have two input fields...If i enter some valid values and click enter the values get cleared off !! Can any one tell me how to retain those ???
Pls help me out....
‎2008 Feb 28 10:24 PM
‎2008 Feb 29 4:18 AM
Does anybody have an idea how to do this ?? Pls help me out.....
‎2008 Feb 29 4:58 AM
hi,
Check with the attributes of the table control.
see the example code given, try this..
Is ur table control has data in it, initially?? else,
use this in PBO to upload,
select * from zcust_master2 into table wi_cust1.
tb-lines = sy-dbcnt.
*This uploads the table control with data from customer master.
then keep a pushbutton to 'save'
and write the following code to save the data:
module tabctrl input.
case sy-ucomm.
when 'SAVE'.
if save1 = 1.
modify wi_cust1 index tb-current_line.
if sy-subrc = 0.
modify zcust_master2 from table wi_cust1.
message s005(zmsgbanks1).
else.
message e006(zmsgbanks1).
endif.
endif.
hope this helps u,
Regards,
Arunsri
‎2008 Feb 29 5:15 AM
See the following simple ex:
MODULE TC1_MODIFY INPUT.
MOVE-CORRESPONDING ZFG_SRNO TO G_TC1_ITAB.
MODIFY G_TC1_ITAB INDEX TC1-CURRENT_LINE.
G_TC1_COPIED = 'X'.
REFRESH CONTROL 'TC1' FROM SCREEN '8001'.
ENDMODULE.