Application Development and Automation 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: 
Read only

line

Former Member
0 Likes
927

what are the terms line-size line-count indicate.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
896

line-size --- maximum line size of report

line-count --- no of lines per page in a report

6 REPLIES 6
Read only

Former Member
0 Likes
897

line-size --- maximum line size of report

line-count --- no of lines per page in a report

Read only

Former Member
0 Likes
896

Line-size indicates - Output width

Line-count indicates number lines per page

Read only

Former Member
0 Likes
896

HI

These are the two parameters at the report level which will control the total number of lines per page and total lenght of each line and also the end of the page..

ex.

report ztest line-count 30(3) line-size 100.

this indicates that the total lines printed per page is 30 out of which 3 is reserved for the end of page and line-size 100 indicate 100 charaters per line.

Thanks

mahesh

Read only

Former Member
0 Likes
896

Hi Sandeep,

<b>Line-Size</b> indicate the length of the line....

Line-size 100.

here 100 is the number of characters per line can have.

....

<b>Line-Count</b> indicates the no op lines per page.

Line-count 25(3).

here 25 wil set ur number of lines per page as 25 & 3 indicates the footer .

3 wil be reserved from ur 25 lines for footer text.

Hope this is clear.

<b>Reward Points if Useful*</b>

Read only

RaymondGiuseppi
Active Contributor
0 Likes
896

<b>REPORT </b>

Addition 2

... LINE-SIZE col

Effect

Creates a report with col columns per line.

If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SY-LINSZ contains the current line size for generating lists. The maximum width of a list is 1023 characters. You should keep lists to the minimum possible size to improve useability and performance (recommendation: LINE-SIZE < 132). For very wide lists (LINE-SIZE > 255), you should consult the notes for using LINE-SIZE

greater than 255.

Notes

The specified LINE-SIZE must not appear in quotation marks.

If the you want the report list (i.e. the output) to be printable, do not define a LINE-SIZE with a value greater than 132 because most printers cannot handle wider lists. You cannot print lists wider than 255 characters at all using the standard print functions. To print the contents of the lists, you need to write a special print routine that arranges the data in shorter lines (for example, using the PRINT ON addition in the NEW-PAGE statement.

At the beginning of a new list level, you can set a fixed line width for the level using the ... LINE SIZE addition to the NEW-PAGE statement.

Example

REPORT ZREPNAME LINE-SIZE 132.

Addition 3

... LINE-COUNT n(m)

Effect

Creates a report list with n lines per page, of which m lines are reserved for the END-OF-PAGE processing. If you omit the "(m)", the default value 0 applies. The system field SY-LINCT contains the current number of lines per page for generating lists.

If the LINE-COUNT specification is missing, the number of lines per page is calculated dynamically from the number of lines actually output on this page. Here, a page break no longer occurs automatically, (internal limit: 60,000 lines) but must be specified explicitly with NEW-PAGE, and the system field SY-LINCT is set to 0. (NEW-PAGE ... LINE-COUNT)

Note

The LINE-COUNT must not be enclosed in quotation marks.

Further information about using LINE-COUNT.

Examples

REPORT ZREPNAME LINE-COUNT 65.

The page has 65 lines.

REPORT ZREPNAME LINE-COUNT 65(8).

The page has 65 lines, of which the last 8 are only used by END-OF-PAGE.

Regards

Read only

Former Member
0 Likes
896

Hi,

<u><b>Line-Size:</b></u>

To determine the width of the output list, use the LINE-SIZE option of the REPORT statement.

Syntax

REPORT <rep> LINE-SIZE <width>.

This statement determines the width of the output list of program <rep> as <width> characters. If you set <width> to zero, the system uses the width of the standard list.

A line can be up to 255 characters long. However, if you intend to print the list, note that most printers cannot print lists wider than 132 characters. If you want to print the list directly while creating it, the page width must comply with one of the existing print formats. Otherwise, the system will not print the list. Make sure not to choose a list width exceeding 132 characters, unless you create the list for display only.

While creating the list, the system field SY-LINSZ contains the current line width. To adapt the list width to the current window width.

<u><b>Line-Count:</b></u>

To determine the page length of an output list, use the LINE-COUNT option of the REPORT

statement.

Syntax

REPORT <rep> LINE-COUNT <length>[(<n>)].

This statement determines the page length of the output list of program <rep> as <length> lines.

If you specify the optional number <n>, the system reserves <n> lines of the page length for the page footer. Those lines of the page footer that are not filled at the END-OF-PAGE event, appear as blank lines.

If you set <length> to zero, the system uses the standard page length . To adapt the page length to the current window size, see Lists with Several Pages

. While the list is created, the system field SY-LINCT contains the current number of lines per page (that is <length>, or 0 for the standard page length).

Regards,

Bhaskar