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: 

ALV (reuse_alv_list_display), how to increase the line size ??

Former Member
0 Kudos

Hi guys,

I have a requirement such that i have to create an ALV report with many columns hence its line size is greater than 255 chars, hence some columns are not getting printed properly.

Please tell me how to rectify this problem.

I am using the following code:-

v_layout-colwidth_optimize = c_x.

v_layout-max_linesize = v_line.

v_layout-NO_MIN_LINESIZE = c_x.

call function 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

IS_LAYOUT = v_layout

IT_FIELDCAT = v_fieldcat

tables

t_outtab = i_essr_final

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

Thanks

Rahul

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

specify the line-size in the report statement.

report ztest line-size 400.

Regards,

Ravi

Former Member
0 Kudos

Hi Rahul,

In your Filedcatalog population check if all the columns are set to be displayed...

i mean in filedcatalog Property FILEDCAT-NO_DISPLAY should not be equal to 'X'.

This may be the problem in your case.

and moreover....

from your code...

<b>comment following two lines...</b>

v_layout-max_linesize = v_line.

v_layout-NO_MIN_LINESIZE = c_x.

<b>Reward Points if helpful,</b>

Regards,

Tejas

0 Kudos

I am displaying all the columns....the rest of the columns are coming in the next line..

I have already tried setting the line-size but even that is not working..

Please suggest something else.

Thanks

Rahul

0 Kudos

Hi Rahul....

Please....

<b>just comment following two lines from your code....

v_layout-max_linesize = v_line.

v_layout-NO_MIN_LINESIZE = c_x.</b>

<b>Reward points if this helps,</b>

Regards,

Tejas

Former Member
0 Kudos

Hi Rahul,

In the FM <b>'REUSE_ALV_LIST_DISPLAY</b>', try using the following parameters:

min_linesize like sy-linsz, " if initial min_linesize = 80

max_linesize like sy-linsz, " Default 250

This has the default length of 250 char.

Hope this helps u to display all ur fields.

Regards,

Thasneem

former_member632991
Active Contributor
0 Kudos

Hi,

Check this link..

The standard line size that u can print is 255 characters in ALV report.

You can check notes 186603 to display report with more than 255 charecters.

you will get the detailed notes. In the Attachments you have the Z program code.

After creation of the new format, run the job with the new format ie. attach the new format to your printer, and run the job. Now take the spool number and put it as a parameters to the Z program.

for more details check this thread

Hope it work fine.

Rewards points if useful

Regards

Sonika

0 Kudos

Hi

i just have to display the columns in a single row.. printer issue is separate..

even at the time of displaying, its displaying the last column name in the second line..

rahul