‎2009 Feb 06 7:28 AM
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.
‎2009 Feb 06 7:33 AM
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'.
‎2009 Feb 06 7:33 AM
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'.
‎2009 Feb 06 7:33 AM
Hi Tanisha
Just put 'X' into the optimize fireld of gs_layout ansd pass it in the FM (is_layout = gs_layout).
Pushpraj
‎2009 Feb 06 7:40 AM
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