Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify table control

Former Member
0 Likes
437

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

3 REPLIES 3
Read only

Former Member
0 Likes
394

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

Read only

Former Member
0 Likes
394

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

Read only

Former Member
0 Likes
394

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.