‎2009 Nov 14 3:10 PM
Dear all ,
kindly tell me how to add a column to an existing table control
Thanks in advance
Sri
‎2009 Nov 14 3:32 PM
Hi,
You can add a column from the database dictionary by clicking on the 'Get from Dictionary' button.
Or if you want to add some column from the program, you can do so by clicking on the 'Get from Program' button.
‎2009 Nov 14 3:30 PM
Its easy ,
First get the program name and the screen number, this you can get by using F1 on screen and then technical setting.
Now go in this screen and then press layout.
In layout , go in change mode . now double click the table control , its color will change.
now go in attributes , you will see all fields on table control.
Add you field with desired settings at the appriorate position in this list.
Activate and test.
‎2009 Nov 14 3:32 PM
Hi,
You can add a column from the database dictionary by clicking on the 'Get from Dictionary' button.
Or if you want to add some column from the program, you can do so by clicking on the 'Get from Program' button.
‎2009 Nov 14 3:38 PM
Hi i tried to 'get from program' already but the heading am not able to add and also it goes short dump when i run..
‎2009 Nov 14 3:54 PM
Hi,
Are you trying to get a column from the program?
Ok..whatever that is, you gotto go to the TOP include where they have declared your internal table that is in sync with your table control.
If you check the flow logic, then you can find something like this
Process before output.
loop at it_tab with control tcl.
module name.
endloop.
Go to the TOP include and include the field name of the new column that you are adding in it_tab.
Also check if you have activated the Layout and the program as a whole.
What is the runtime error saying?
‎2009 Nov 15 11:11 AM
hi thanks a lot for the reply , still i am getting run time error it says 'CONVERSION ERROR'.
‎2009 Nov 15 5:51 PM
Hi,
-> Check if you have added the field in the internal table declaration in the TOP include.
-> Check if the declaration is matching with that of the field from the program.
Please give a detailed description of the error message.
‎2009 Nov 16 4:29 AM
‎2009 Nov 16 6:12 AM
Hi Nitwick ,
The issue is solved ,there was an issue when passing currency field - that is why it had shown conversion error ,I really appreciate your mind to help others , thank you