03-20-2009 8:50 AM
hi now there is a field of itab having string of 236 characters and i am displaying it in alv. i have set column length 255 even though only a few legth is appearing. only column width incresed but all text has not displayed.
fieldcatalog:
fldcat-fieldname = 'TEXT1'.
fldcat-seltext_m = 'Symptom Long text'.
fldcat-col_pos = 2.
fldcat-outputlen = len1.
APPEND fldcat.
CLEAR fldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = fldcat[]
TABLES
t_outtab = itab[].
what to do? but if i download in exel the whole string/text is coming, unlike on alv.
with thanks and rregards.
AJAY
03-20-2009 8:56 AM
Hi,
try with layout option.
gwa_layout-box_tabname = 'ITAB'.
gwa_layout-no_input = gc_x.
gwa_layout-colwidth_optimize = gc_x.
gwa_layout-zebra = gc_x.
gwa_layout-cell_merge = gc_x.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = fldcat[]
is_layout = GWA_LAYOUT
TABLES
t_outtab = itab[].
Regards,
Nagaraj
03-20-2009 8:52 AM
hi
change fldcat-seltext_m to fldcat_sltext_l.
fldcat-outputlen = '255'.
reg
Ramya
03-20-2009 8:53 AM
the len1 = 255. so it is already set. colum width is of 255 chars. but only approx 136 char is showing.
03-20-2009 8:54 AM
03-20-2009 8:56 AM
i debug and checked. the complete text is there in internal table. even that is appering if i download the alv in excel. but y not coming on alv display.
03-20-2009 8:56 AM
Hi,
try with layout option.
gwa_layout-box_tabname = 'ITAB'.
gwa_layout-no_input = gc_x.
gwa_layout-colwidth_optimize = gc_x.
gwa_layout-zebra = gc_x.
gwa_layout-cell_merge = gc_x.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = fldcat[]
is_layout = GWA_LAYOUT
TABLES
t_outtab = itab[].
Regards,
Nagaraj
03-20-2009 9:02 AM
Hi,
Check the Report statement.
Report <report_name> no standard page heading line-width 255.
--
--
Best Regards,
Suresh
03-20-2009 9:20 AM
i used this but this also has not solved my problem to display a long text of 236 char only it optimised my column width to 136 i think which was displaying as the partial text.
i need full text to display.
03-20-2009 9:42 AM
Hi,
split the long text into two parts and use two coloumns to display it..Check if it is working for u?
Regards,
Nagaraj
03-23-2009 7:19 AM
do u have any sample code for split the column into two parts
ajay
03-23-2009 7:30 AM
Hi,
what u have to do is create one more column in alv, which menas one more field in the final internal table...
now split the valus and put them in two fields ...
Regards,
Nagaraj
10-06-2009 8:12 AM
Hi experts.
Is there any way that i call wage type reporter (report name : H99CWTR0 and tcode : PC00_M11_WTK ) from a z program and get the internal table for further processing without displaying the alv of standard progam. I need the output of the standard progam as input data for processing of zprogram.
Thanks