Application Development 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: 

Add new columns in table control in custom screen program

Former Member
0 Kudos

Hi all,

I need to enhance a screen program already created by some one else.

In the program I have a screen which has a table control and in which I need to add 2 more columns.

can anyone tell me how do I add two new columns to the already existing table control in the screen?

Thanks.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

First, add the two new columns to the underlying internal table associated with the table control. Then go to the screen using screen painter. From the left hand side, select the icon for input/output field, and drag and drop this UI element into the table control. This should add a new column. Double click on the new column, and give it the same name as what you defined in your internal table. Depending on how the table control was created, the name of the internal table or work area may be defined differently in the screen. So simply check what is used in an existing column of the table control. So if you double click on another column, and its name is ITAB-COL1, then you should use ITAB in your column. So if your column name is COL99, then enter the name of your new column as ITAB-COL99. Make sense?

Regards,

Rich Heilman

6 REPLIES 6

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

First, add the two new columns to the underlying internal table associated with the table control. Then go to the screen using screen painter. From the left hand side, select the icon for input/output field, and drag and drop this UI element into the table control. This should add a new column. Double click on the new column, and give it the same name as what you defined in your internal table. Depending on how the table control was created, the name of the internal table or work area may be defined differently in the screen. So simply check what is used in an existing column of the table control. So if you double click on another column, and its name is ITAB-COL1, then you should use ITAB in your column. So if your column name is COL99, then enter the name of your new column as ITAB-COL99. Make sense?

Regards,

Rich Heilman

0 Kudos

Thanks Rich.

I was able to add columns but how do I add the headings for these new columns?

0 Kudos

I think you would drag a "text" element and drop it in where the heading should be. I'm pretty sure it is a "text" element. Its been a while since I've had to do this.

Regards,

Rich Heilman

0 Kudos

Thanks Rich.Problem solved!

0 Kudos

Thx rich for u r information

0 Kudos

HI Rich,

I did same way as you mentioned but it shows me error message as:

"Collision with header element in table control

    Message no. 37857

"

Diagnosis

    There is already a title element at the required position in the table

    control.

Actually i created the table control through wizard, Please let me know how to modify it?