‎2007 Sep 20 2:20 PM
Hi,
I want to modify the column display. I mean, I create a table control but after that, I want to change the column order (for example, I add a new field). If I do that, the columns does not appears properly (not appears in the correct order).
Does anybody know what is the problem?
Thanks
‎2007 Sep 20 2:34 PM
Hi Mayor,
Check the structure sequence you have applied for table control. The other thing the value you fetching to Internal Table and Structure You have applied for Table control should be in the same order.Then after if you are unable to solve the problem, send me the code I will do that.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
‎2007 Sep 20 2:51 PM
Hi,
you cannot change the order in the table control which is already created.
what all changes u want should be done only in the structure that u have passed to the table control. There would be structure mismatch when u add a new field
‎2007 Sep 20 3:18 PM
Hi,
The problem is with a TC of a standard dynpro for infotypes (3000). When I debug the code, the table CXTAB_CONTROL has the table field COLS with the right order but in this table the field COLS-INDEX is not correct.
For example CXTAB_CONTROL-COLS is
CXTAB_CONTROL-COLS[1]-SCREEN-NAME = FIELD1
CXTAB_CONTROL-COLS[2]-SCREEN-NAME = FIELD2
CXTAB_CONTROL-COLS[3]-SCREEN-NAME = FIELD3
CXTAB_CONTROL-COLS[1]-INDEX = 1
CXTAB_CONTROL-COLS[2]-INDEX = 3
CXTAB_CONTROL-COLS[3]-INDEX = 2
but it might be
CXTAB_CONTROL-COLS[2]-INDEX = 2
CXTAB_CONTROL-COLS[3]-INDEX = 3
I know that you can modify this, because for non standard TC you can change the column order.