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

Former Member
0 Likes
1,032

hi all, i need help on this.

first i do a select to get data from z table to internal table where data qualified in the select statement.

then the logic will show the internal table data in table control where all fields are output field but 1 field being i/o field. i need to make the i/o field a check box for user to put a check mark. when hit save button, data will update back to internal table and subsequently back to ztable.

the only part i not sure is how to update back to internal table from table control when hit save button.

thanks

rgds

8 REPLIES 8
Read only

Former Member
0 Likes
933

You can modify the internal table in the PAI of the screen. Use the modify statement for that.

MODIFY itab FROM <screen_structure> INDEX tctrl-current_line.

Hope this helps.

Manoj

Read only

Former Member
0 Likes
933

hi,

thanks for the reply. may i know if this modify is to update the whole internal table or modify record by record.

may i know if user hit save button, this modify statement will update back to the internal table by specific record or will update the whole table? is there a way to update the internal table in a single process instead of update record by record.

thanks

Read only

0 Likes
933

Hi,

It modifies only the current line.

keerthi

Read only

0 Likes
933

I dont think there is a way to update the internal table as a whole. You will have to do it record by record.

Manoj

Read only

anversha_s
Active Contributor
0 Likes
933

hi,

kindly chk this standard pgms.

demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at
RSDEMO_TABLE_CONTROL

Regards,

Anver

Read only

0 Likes
933

Hi All

I am using Table Control but I want to pass column headers also dynamically through coding only because my requirement is

I have three different database tables then i will select through dynamically when u will select any table with in these. I want to Columns will dynamically change or table structure automitically change while u will select any table.At that time table control also based on that columns width supress the table width also.

Please sove my problem it is very urgent for me.

Read only

Former Member
0 Likes
933

hi all, i need help on this.

first i do a select to get data from z table to internal table where data qualified in the select statement.

then the logic will show the internal table data in table control where all fields are output field but 1 field being i/o field. i need to make the i/o field a check box for user to put a check mark. when hit save button, data will update back to internal table and subsequently back to ztable.

the only part i not sure is how to update back to internal table from table control when hit save button.

thanks

rgds

sai

Read only

0 Likes
933

Hi Experts,

I have a issue with table control, My requirement is that when ever the user Presses Insert button, the table control which is in Display mode will have to be in Input mode and that too only one record should be in input mode and rest have to be in output mode. can any one help me out to resolve this issue, please mail to abap12337@gmail.com

Thanks in advance

Sameer