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: 

Optimize Column Width of Custom Table Control

Former Member
0 Kudos

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

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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