Application Development 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: 

Problem on table fields' order in dialog programming

Former Member
0 Kudos
72

Hi Friends,

I have an internal table as;

DATA : BEGIN OF ITAB OCCURS 0,
               SELECT,
               FIELD_CONTROL.
               INCLUDE STRUCTURE ZENTRIES.
DATA : END OF ITAB.

ZENTRIES db table is;
MANDT	TYPE MANDT
UNIQ_N0 TYPE CHAR10
ENTRYNO TYPE NUMC 9,
ZOLL TYPE  DZOLLS,
BNO TYPE CHAR 10,
BDATE TYPE DATUM,
ENTRYINFO  TYPE CHAR 30,
CREATER TYPE SYUNAME
CR_DATE TYPE DATUM,
CR_TIME TYPE UZEIT,
CHANGER TYPE SYUNAME,
CH_DATE TYPE DATUM,
CH_TIME TYPE UZEIT,
DELETED TYPE CHAR 1.

I am putting SELECT field for table control's row selection field,

And these fields in this order;

1. UNIQ_N0

2. ENTRYNO

3. ZOLL

4. BNO

5. BDATE

6. ENTRYINFO

7. FIELD_CONTROL

into my table control. When I run the program and looked at my screen there is no problem in field's order.

But if I change the order on table control as;

1. UNIQ_N0

2. ENTRYNO

3. ZOLL

4. FIELD_CONTROL

5. BNO

6. BDATE

7. ENTRYINFO

there is a problem in displaying the fields. When have run the program and looked at my screen order has changeds as;

1. BNO

2. BDATE

3. ENTRYNO

4. ZOLL

5. FIELD_CONTROL

6. ENTRYINFO

7. UNIQ_N0

Why dialog program changes the display order of fields from my order. As I a developer I want to put fields with my order. Where is the wrong?

Help please.

Thanks.

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos
51

Try with setting up the Field's position again.

Click on the Field of the table control, maintian proper value in the properties.

For UNIQ_N0, set Column as 1

For ENTRYNO, set Column as 2

Activate it.

Regards,

Naimesh Patel

0 Kudos
51

Hi Naimesh,

I have controlled and setted the fields position. Also, before controlling and setting the fields order are normal that means it is suitable order.

Another information I want to say is that my screen is a subscreen and it is in a tabstrip. Does this effects the order of columns?

Thanks