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: 

In my ALV o/p what is the maximum length of column, I can display ( because

Former Member
0 Kudos

In my ALV o/p what is the maximum length of column, I can display ( because the length of the text some times exceeding 600 chars ) ?

Thanks in ADVANCE

6 REPLIES 6

Former Member
0 Kudos

Max 255 character you can display in an ALV Report.

Former Member
0 Kudos

Hi Sam,

while developed ALV report you can use as much as you want whenver cross the out page automatically harizantal scroll bar get actived so you can use any number of cars.

<b>reward is usefull</b>

Former Member
0 Kudos

HI

the In the layout default max line size will be only 250.

So set this field it_layout-max_linesize to ur required total line size.And also use

it_layout-colwidth_optimize = 'X' to optimize the column width.

Former Member
0 Kudos

Are you saying to do this

w_fieldcat-max_linesize = '1500'.

w_fieldcat-colwidth_optimize = 'X'. ?

If so fieldcat doesnot contian max_linesize and

colwidth_optimize...

I did not get you.. Could you please explain bit more clear ?

Former Member
0 Kudos

I have declared like

<b> S_LAYOUT-MAX_LINESIZE = 1000.

S_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.</b>

However ALV output not displaying the entire length.

  • Call the following function to display output in ALV form

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = 'ZFRSBOI0'

IS_LAYOUT = S_LAYOUT

IT_FIELDCAT = FIELDCAT

IT_EVENTS = P_EVENTS[]

  • it_sort = p_it_sort[]

I_SAVE = 'A'

TABLES

T_OUTTAB = PDET_OTAB_ALV1

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

  • If the function call is not successful, raise error message

  • and come out from the program

IF SY-SUBRC <> 0.

MESSAGE E000(00) WITH

'Unable to display report'(E01).

EXIT.

ENDIF.

Former Member
0 Kudos

i am not getting reply ( could any one please help me )

I have declared like

S_LAYOUT-MAX_LINESIZE = 1000.

S_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.

However ALV output not displaying the entire length.

  • Call the following function to display output in ALV form

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = 'ZFRSBOI0'

IS_LAYOUT = S_LAYOUT

IT_FIELDCAT = FIELDCAT

IT_EVENTS = P_EVENTS[]

  • it_sort = p_it_sort[]

I_SAVE = 'A'

TABLES

T_OUTTAB = PDET_OTAB_ALV1

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

  • If the function call is not successful, raise error message

  • and come out from the program

IF SY-SUBRC <> 0.

MESSAGE E000(00) WITH

'Unable to display report'(E01).

EXIT.

ENDIF.