Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2007 at 11:42 AM

    Max 255 character you can display in an ALV Report.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2007 at 11:44 AM

    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>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2007 at 11:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2007 at 01:26 PM

    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 ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 04:30 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 09:34 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.