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

SAP-ABAP

Former Member
0 Likes
999

For displaying the footer in list i have to reserve some empty lines for this what i have to do?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
966

HI

GOOD

AS YOU HAVE NOT MENTIONED IN WHICH KIND OF REPORT YOU WANT THE SPACE HEREWITH I AM GIVING SOME LINKS,GO THROUGH THEM I HOPE YOU WILL GET SOME SOLUTION.

The function module SET_PRINT_PARAMETERS fills the input fields with the default values. Because of the function module, the Lines field is ready for input, even though the LINE-COUNT addition is used in the REPORT statement. The option, in this case, is needed to reserve space for two footer lines.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba5e235c111d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/90/1d493a331311d5b696006094192fe3/content.htm

THANKS

MRUTYUN

HI

GOOD

AS YOU HAVE NOT MENTIONED IN WHICH KIND OF REPORT YOU WANT THE SPACE HEREWITH I AM GIVING SOME LINKS,GO THROUGH THEM I HOPE YOU WILL GET SOME SOLUTION.

The function module SET_PRINT_PARAMETERS fills the input fields with the default values. Because of the function module, the Lines field is ready for input, even though the LINE-COUNT addition is used in the REPORT statement. The option, in this case, is needed to reserve space for two footer lines.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba5e235c111d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/90/1d493a331311d5b696006094192fe3/content.htm

THANKS

MRUTYUN

7 REPLIES 7
Read only

Former Member
0 Likes
966

Hi,

In the 'REPORT' statement, mention the number of lines and also mention the number of lines you want to reserve in each page for the footer within bracket. for example the following statement will reserve 3 lines for footer in each list page.

Report ZTESTREPO line-count 70(3).

Rgds,

Deb.

Read only

Former Member
0 Likes
966

Hi,

Take a look here

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba06935c111d1829f0000e829fbfe/frameset.htm

To execute a page break on the condition that less than a certain number of lines is left on a page, use the RESERVE statement:

Regards,

Ravi

Read only

Former Member
0 Likes
966

Hi

you can Use the RESERVE statement.

RESERVE <n> LINES

If less than n free lines are left on the list page between the last output and the page footer, this statemet gets triggered

regards

Beena

Read only

Former Member
0 Likes
967

HI

GOOD

AS YOU HAVE NOT MENTIONED IN WHICH KIND OF REPORT YOU WANT THE SPACE HEREWITH I AM GIVING SOME LINKS,GO THROUGH THEM I HOPE YOU WILL GET SOME SOLUTION.

The function module SET_PRINT_PARAMETERS fills the input fields with the default values. Because of the function module, the Lines field is ready for input, even though the LINE-COUNT addition is used in the REPORT statement. The option, in this case, is needed to reserve space for two footer lines.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba5e235c111d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/90/1d493a331311d5b696006094192fe3/content.htm

THANKS

MRUTYUN

Read only

Former Member
0 Likes
966

Hi Srinivas,

Please read the following paragraph.

<b>Controlling Page Size</b>

To control the size of the output page, use the following additions on the report statement:

line-size

line-count

The line-size addition controls the width of the output list; line-count controls the number of lines per page.

Syntax for the line-size and line-count Additions to the report Statement

The syntax for the line-size and line-count additions to the report statement is as follows:

report line-size i line-count j(k).

where:

i, j, and k are numeric constants. Variables are not allowed.

i specifies the width of the output list (in characters).

j specifies the number of lines per page in the output list.

k specifies the number of lines reserved for a footer at the bottom of each page.

Do not enclose i, j, or k in quotes.

<b>Using line-size and line-count</b>

By default, the width of the output list is equal to the maximized window width. For example, if your window is maximized before you execute a report, the system will use that width as the output width of your program. If your window has been resized to be less than the maximum, the system will still use the maximized size. A scroll bar will appear at the bottom of the window to allow you to scroll right and see the rest of the report.

To override this behavior, specify the list output width by using line-size. Valid values are 2 through 255.

TIP

Most printers cannot print more than 132 characters on a line. If you think your users may want to print the output list, try not to exceed 132 characters per line.

The page number is printed in the top-right corner of the list. The default number of lines per page is 60,000-the maximum allowed. You can use line-count to override this number. For example, to specify 55 lines per page, enter report line-count 55. Specifying line-count 0 means use the maximum (60,000).

The user can specify the number of lines per page that is appropriate for the printer when he or she prints the report.

TIP

You can also set the line-count in the middle of the report, so different pages can have different numbers of output lines. To do this, use the new-page statement (covered later). It can also be used to set the number of lines per-page before any output is generated.

line-count is not usually used with reports that are viewed online. For example, suppose R/3 incremented the page number each time you pressed the page down key. If the user generates a report, scrolls to page 3, and then resizes the window, will he still be on page 3? Obviously, the ability to resize the window makes it difficult to make rules about page numbers online. You could try making the page size equal to the window height when the report was run. But if the user resizes the window after the report has been generated, the page breaks will no longer match the window height. The user will see gaps in the output and the beginning of pages in the middle of the window. To avoid these problems in online reports, use the default value for line-count.

Read only

Former Member
0 Likes
966

Hi,

Use this

REPORT <reportname> LINE-COUNT 25(5).

This means that the page would conain 25 lines and 5 lines are reserved for the footer.

Thanks,

Sujana

Read only

Former Member
0 Likes
966

Hi Srinivas,

Please go thorugh this link. This is very useful.

http://cma.zdnet.com/book/abap/ch15/ch15.htm

<a href="http://cma.zdnet.com/book/abap/ch15/ch15.htm">Page Format</a>