2006 Jul 19 11:15 AM
Hi All,
Is it possible to add columns to a table control dynamically?
Let us suppose that we have defined a table control with three columns (say matnr, matkl, meins) initially. Based on some values I would like to add one more column to the existing table contro at run time. Is it possible? If yes, could you let me know the procedure of doing it?
Thanks & Regards,
Phani.
2006 Jul 19 11:19 AM
Hi,
The other way is possible...
add all columns.., Then Hide the unwanted columns. if you want them in runtime make it visible.
Regards
vijay
Regards
vijay
Hi,
The other way is possible...
add all columns.., Then Hide the unwanted columns. if you want them in runtime make it visible.
Regards
vijay
Regards
vijay
2006 Jul 19 11:19 AM
Hi,
The other way is possible...
add all columns.., Then Hide the unwanted columns. if you want them in runtime make it visible.
Regards
vijay
Regards
vijay
2006 Jul 19 11:26 AM
Hi Vijay,
Thanks for the prompt reply.
But I can not expect the number of columns. I will get some values into an internal table.
If I get two values into the table, then I have to display two columns, if I get 10 values then I have to display 10 columns with value as column header.
Thanks & Regards,
Phani
2006 Jul 19 11:36 AM
Hi,
in that case you can use OO ALV , here Build Dynamic internal table and show the data in ALV grid control.ALV grid and table control looks same.this is simple also.
Regards
vijay
2006 Jul 19 11:34 AM
HI Phani,
I think we cannot change the number of columns to a table control.THe way vijay pointed was the only one.add all the colums and make them invisible.
THanks,
Santosh
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |