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

Optimize Column Width of Custom Table Control

Former Member
0 Likes
1,360

Hi,

Is there any parameter that can be set so that the columns of a custom table control be optimized? Like in standard ALV there is CWIDTH_OPT which can be set.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
795

Hi,

You set the desired length (Visible or Defined Length) for any column of a custom table control by going to layout of the screen

Thanks

Venki

Hi,

Is there any parameter that can be set so that the columns of a custom table control be optimized? Like in standard ALV there is CWIDTH_OPT which can be set.

2 REPLIES 2
Read only

Former Member
0 Likes
796

Hi,

You set the desired length (Visible or Defined Length) for any column of a custom table control by going to layout of the screen

Thanks

Venki

Read only

Former Member
0 Likes
795

Hi,

Set the column width in the properties of that particular column of the table control.

and also in the declaration.

  • Invoice amount

LT_FIELDCAT-COL_POS = 7.

LT_FIELDCAT-FIELDNAME = 'DMBTR'.

LT_FIELDCAT-TABNAME = 'lt_update'.

LT_FIELDCAT-REF_FIELDNAME = ' '.

LT_FIELDCAT-REF_TABNAME = ' '.

LT_FIELDCAT-DATATYPE = 'CURR'.

LT_FIELDCAT-OUTPUTLEN = 22.

LT_FIELDCAT-SELTEXT_M = 'Invoice Amount'.

APPEND LT_FIELDCAT.

Regards,

Alex