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

column width optimse problem

Former Member
0 Likes
588

wish to increase the length of the column to accomodate the complete col name..

now i am getting "customer header acti" although i want it to be complete like "customer header action".

i searched the forum but couldnt match it with my requirement(may be i am missing on something).

have a look at my function module call.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = sy-cprog

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT =

IT_FIELDCAT = it_fcat[]

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • I_HTML_HEIGHT_TOP =

  • I_HTML_HEIGHT_END =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = it_final[]

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

in it_fieldcat[] there is a parameter SELTEXT_S , SELTEXT_M and SELTEXT_L.

Please provide caption in SELTEXT_L so it will be displayed completely.

also in Layout :

GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.

3 REPLIES 3
Read only

Former Member
0 Likes
558

in it_fieldcat[] there is a parameter SELTEXT_S , SELTEXT_M and SELTEXT_L.

Please provide caption in SELTEXT_L so it will be displayed completely.

also in Layout :

GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.

Read only

Former Member
0 Likes
557

Hi Tanisha

Just put 'X' into the optimize fireld of gs_layout ansd pass it in the FM (is_layout = gs_layout).

Pushpraj

Read only

Former Member
0 Likes
557

Hi,

Data : wa_layout type SLIS_LAYOUT_ALV.

wa_layout-colwidth_optimize = 'X'.

Now pass WA_LAYOUT to the function module REUSE_ALV_GRID_DISPLAY to the parameter IS_LAYOUT.

Thanks,

Ibrahim