‎2007 Jul 16 12:57 PM
Hello ABAP Gurus ,
i wonder if there's a way to add (by code ) cols to Table Control from program in runtime mode .
if it is possible let me know how to do it please .
Thx all .
‎2007 Jul 16 1:04 PM
Hello,
You cannot add a column at run time to a table control, as it should present in the layout.
But you can fullfill your requirement in this way. You can create all the columns you want ultimately at the first time itself. Then hide the columns which you want to display on run time.
You can write code for displaying these hidden columns while runtime.
use loop at screen
modify screen.
endloop. to do this.
Think it will help you.
Don't forget to reward if found helpfull.
Regards,
Rakesh.
‎2007 Jul 16 1:13 PM
i want to add cols to the standard sap table control not mine .
‎2007 Jul 16 1:16 PM
Hello Herzel,
Sorry I'm helpless. May be you have to go for an user-exit or so.
Regards,
Rakesh.
‎2007 Jul 16 1:20 PM
‎2007 Jul 16 1:23 PM
Hi Herzel,
I checked in SDN for your requirement and it seems to be possible with user exits.
You should find the user exit. In that your program will be refering, most probably a table type to create the table control internal table. You should add in that table type using append structures to add a new field.
check these links.
Don't forget to reward if found helpfull.
Regards,
Rakesh.
‎2007 Jul 16 2:16 PM