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

Table Control values getting refreshed

Former Member
0 Likes
482

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....

4 REPLIES 4
Read only

Former Member
0 Likes
461

Can anyone pls help me out with this issue.....

Read only

Former Member
0 Likes
461

Does anybody have an idea how to do this ?? Pls help me out.....

Read only

Former Member
0 Likes
461

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

Read only

Former Member
0 Likes
461

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.