2008 Apr 01 3:44 PM
Hi,
One of the fields in the ALV dispaly contains more than 150 character. But that is not displaying in the output.Is there any way to display that. Plz help.
Hi,
One of the fields in the ALV dispaly contains more than 150 character. But that is not displaying in the output.Is there any way to display that. Plz help.
2008 Apr 01 3:53 PM
When declaring column name try Giving as below
fieldcatalog-seltext_m = "NAME "
upto 150 characters
2008 Apr 01 3:53 PM
If you know the max charecter in that field you can populate the filedcatalog for that field as shown
fld_cat-outputlen = 150.
append fld_cat.
2008 Apr 01 3:58 PM
2008 Apr 01 4:10 PM
2008 Apr 01 4:36 PM
Anu,
Check the following procedure to set width of ALV.
1.
define layout structure.
2.
Build layout structure.
data:
w_layout type slis_alv_layout.
3.
Pass this structure through REUSE_ALV_GRID_DISPLAY or REUSE_ALV_LIST_DISPLAY.
w_layout-COLWIDTH_OPTIMIZE = 'X'.
I hope that it helps u .
Regards,
Venkat.O
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
i_callback_program = 'ZORAY1234'
** i_callback_pf_status_set = 'SET_PF_STATUS'
* i_callback_user_command = 'USER_COMMAND'
* I_STRUCTURE_NAME =
is_layout = w_layout
it_fieldcat = i_field
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
it_events = i_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
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = i_mard
* 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.
2008 Apr 01 4:38 PM
HI,
Try this.
Fill the field catalog giving the out put length as '150' as shown below.
DATA : it_fldcat TYPE slis_t_fieldcat_alv,
wa_fldcat TYPE slis_fieldcat_alv.
FORM FILL_fldcat .
wa_fldcat-fieldname = 'EXTRA'(036).
wa_fldcat-col_pos = '7'.
wa_fldcat-seltext_m = 'EXTRA'(015).
wa_fldcat-OUTPUTLEN = '150'.
APPEND wa_fldcat TO it_fldcat.
2008 Apr 01 4:45 PM
If you set wa_layout-colwidth_optimize = 'X'. in ur prog
comment that and try.
Edited by: bhavana gurajada on Apr 1, 2008 5:49 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |