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

new to abap

Hi all,

I am new to abap

what does it mean line-count8(2) and line-count0(1)

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 12:12 PM

    ...another is when u use the line-count addition in the report statement..

    report yxxxx .....line-count 2(1)

    it means LINE-COUNT page_lines(footer_lines)

    rgds,

    PJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 12:09 PM

    Hi hari,

    welcome to SDN.

    <b>Use of LINE-COUNT in Lists</b>

    When specifying a fixed number of lines (LINE-COUNT) for each list page in the REPORT or NEW-PAGE statement, you should be aware of the following:

    In general terms, you should use the default value (0 = no fixed number of lines per list page) for the LINE-COUNT specification because this is the only way you can achieve formatting appropriate for the screen without any arbitrary page break.

    When printing, the user should be able to define the page size to suit the printer. Therefore, the program should not specify the page size, but rather allow for meaningful results with any page size.

    Defining a fixed number of lines makes sense only with lists with a fixed page layout, but you should always consider whether it would not be better to use a SAPscript layout set.

    If you use the default setting (no ...LINE-COUNT), the system assumes an internal page length of 60000 lines. If a list has more than 60000 lines, there is an automatic page break.

    reward points for helpfull answers and close the thread if your question is solved by clicking radio buttons on the top left.

    regards,

    venu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 12:13 PM

    REPORT zhari_temp LINE-SIZE 40 LINE-COUNT 8(2).

    what this code is doing

    END-OF-PAGE.

    ULINE.

    START-OF-SELECTION.

    DO 4 TIMES.

    WRITE / sy-index.

    ENDDO.

    DO 2 TIMES.

    WRITE / sy-index.

    ENDDO.

    RESERVE 3 LINES.

    WRITE: / 'LINE 1',

    / 'LINE 2',

    / 'LINE 3'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 12:07 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 12:08 PM

    one possibility...

    if it is line-count0(2) then means read the 2nd character of attribute count0 of field string line.

    if it is line-count+8(2)

    means read 2 characters of the attribute count of field string line starting at the 8th position...

    similarly line-count+0(1) means first character

    rgds,

    PJ

    Message was edited by: Priyank Jain

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 12:08 PM

    hi,

    this is called offset

    for ex if line-count value is xudydydyyydd

    line-count8(2) will be yy - from 8 th position to 2 characters

    cheers,

    sasi

    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.