03-24-2010 7:56 PM
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.
03-24-2010 8:02 PM
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
03-24-2010 8:02 PM
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
03-24-2010 8:11 PM
Thanks Rich.
I was able to add columns but how do I add the headings for these new columns?
03-24-2010 9:10 PM
03-24-2010 11:36 PM
11-02-2010 12:22 PM
06-14-2013 7:08 AM
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?