‎2011 Jul 27 6:42 AM
Hi experts,
is there a possibility, to append a column to a table control durring the runtime?
So, that column is not appended to the dynpro at load-of-program.
I know, that I can modify the table control structure, but when I append a column to this I can't see them.
Thx in advance
‎2011 Jul 27 7:21 AM
‎2011 Jul 27 7:23 AM
Hello,
thx for the fast answer.
I know, but my problem is, that I HAVE TO USE a table control.
‎2011 Jul 27 7:26 AM
Check the link I have given in previous reply. It have lot information about table control as well.
You may also create columns and hide it according to your requirement.
To hide a column we will use the INVISIBLE field of the structure CXTABA_CONTROL and set its value to 'X'.
e.g. To hide column number 3.
DATA col LIKE LINE OF tab-con-COLS .
READ TABLE tab_con-COLS INTO col WHERE index = 3. "tab_con is the name
" of table control.
col-INVISIBLE = 3.
MODIFY tab-con-COLS FROM col INDEX 3.
‎2011 Jul 27 7:30 AM
I know, but I have to APPEND the column durring runtime.
Not changing the visibility.
‎2012 Sep 25 11:42 AM
Hi Christian,
I need to append a column to a table control in runtime. Did you achieve this?
Thanks in advance.
Regards,
Pedro Sousa
‎2012 Oct 08 10:16 AM
HI Pedro,
first sorry for late answer, but I was at home due to illness.
I am very sorry, but I also found no solution for this problem.
I had to modify the dynpro.
Kind regards
Christian
‎2012 Oct 08 10:23 AM
‎2012 Oct 08 10:29 AM
ehmm....
and where is the column appended to the table control durring runtime?
‎2012 Oct 08 10:48 AM
+ (Insert) button is there, after clicking on it, it will add one blank row.
You've to change the code according to your requirement.
First it'll come like this:
After clicking on insert button
- Regards,
Manish Shankar.
‎2012 Oct 08 11:26 AM
‎2012 Oct 08 11:39 AM
Ohh sorry, I interpreted column as row. It's my mistake.
I will try for solution and if I'll get, then sure I'll help you.
- Regards,
Manish Shankar.
‎2012 Oct 08 11:40 AM