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

List print-out (width more than 255 chars)

Hi folks,

Is there any method to get printout of list output having more than 255 chars in width.

I have to display <b>around 350 chars(width) in list o/p</b>. It displays fine, but when I take the printout, only 255 chars get printed. How is it possible to get full list printed on A4 paper?

Any help will be appreciated.

Thanks and Regards,

Pragya

Add comment
10|10000 characters needed characters exceeded

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 08:23 AM

    I think the maximum calumns that can be printed is 255 chars, so what you can do is go for a mulitiline report (i.e.) limiting your report width to 255 chars.

    Regds

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 08:22 AM

    take help from basis person for page fprmat seeting in transaction <b>spad</b>

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 08:26 AM

    Use transaction SPAD

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 08:27 AM

    Hi Pragya,

    Please go through this piece of document from SAP Library

    If you use a column with greater than 255 as the LINE-SIZE in the REPORT or NEW-PAGE statement, the following notes apply:

    Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum type (SLIST_MAX_LISTLINE).

    Printing: You cannot print the list using standard printing functions. To print it, you must create a special print routine that arranges the data in shorter lines (for example, using the ... PRINT ON addition in the NEW-PAGE) statement.

    Accessing the entire contents of a line:: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).

    Hroizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".

    Output length:: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.

    Example

    NEW-PAGE LINE-SIZE 1000.

    DATA: F1(500) VALUE 'F1'.

    WRITE: / F1 COLOR COL_NORMAL. " Output with length 255

    WRITE: /(500) F1 COLOR COL_NORMAL. " Output with length 500

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 12:03 PM

    HI,

    WITH ALV REPORTING ONLY IT I POSSIBLE TO DISPLAY THE LIST WITH MORE THAN 255 CHARACTER LENGTH AND MORE THAN 90 COLUMNS EVEN U CAN TAKE A PRINT OF HOW MANY COLUMNS U WANT.

    Add comment
    10|10000 characters needed characters exceeded