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: 

display long text on alv

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member404244
Active Contributor
0 Kudos

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

11 REPLIES 11

Former Member
0 Kudos

hi

change fldcat-seltext_m to fldcat_sltext_l.

fldcat-outputlen = '255'.

reg

Ramya

0 Kudos

the len1 = 255. so it is already set. colum width is of 255 chars. but only approx 136 char is showing.

former_member228751
Contributor
0 Kudos

Hi AJay,

Check the length of the field in interanl table.

0 Kudos

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.

former_member404244
Active Contributor
0 Kudos

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

0 Kudos

Hi,

Check the Report statement.

Report <report_name> no standard page heading line-width 255.

--

--

Best Regards,

Suresh

0 Kudos

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.

0 Kudos

Hi,

split the long text into two parts and use two coloumns to display it..Check if it is working for u?

Regards,

Nagaraj

0 Kudos

do u have any sample code for split the column into two parts

ajay

0 Kudos

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

0 Kudos

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