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

adding one more fields to table control

Former Member
0 Likes
1,225

hi all,

i have a table control which created based on internal table.

I add one more field to internal table, to be displayed in table control.

what i did. i activated the code and try to import the field from the program using the screen painter tool.

I can not found that field in the internal table.

br

ali

6 REPLIES 6
Read only

Former Member
0 Likes
871

Hi,

If you want to add a new field to your table control, you will have to include the field from either its respective database table (Add from Dictionary) and add the field to the internal table.

Or you can declare a variable (let's say

 DATA: gv_io(10) TYPE c 

) and then add the variable as a column onto your table control (Add from Program). Also you gotto add the field to the internal table.

Read only

Former Member
0 Likes
871

Hi,

move the data of your internal table into some other internal table first.

now take one data variable having the field you want to add and

loop at new internal table

, concatenate that variable into your new table.

end loop.

you can take one structure having all the fields of old internal table plus new field. n then refer this structure.

Read only

venkat_o
Active Contributor
0 Likes
871

Hi Ali,

Activate the include where you declared the internal table. In fact, you activate whole program once. Still if you don't get, just place one input filed on the table control, give your field name(ITAB-FILED) and activate.

Regards,

Venkat.O

Read only

Former Member
0 Likes
871

thanks Venkat.O,

the fields appear in the screen painter, but how i can add it as a column in table control?

BR,

Ali

Read only

venkat_o
Active Contributor
0 Likes
871

Ali,

If it is customized program, Just delete table control in screen painter. Again place table control on the screen and select all fields from internal table and place on table control if you are not able place single field on the table control.

You can also place single field on table control in screen painter.

Regards,

Venkat.O

Read only

Former Member
0 Likes
871

I just add the field from internal table to table control, but one issue with header for the column.

How i can rename it , blank header and lock one(not editable)?

br,

ali