2006 Feb 15 10:01 PM - last edited on 2024 Feb 04 2:06 AM by postmig_api_4
Hi guys,
I need to get uline at end of each page on the output.
even if I use end of page am not geting proper output.
can anybody help me.
Thanks,
Santosh
2006 Feb 15 10:08 PM
Hi Santosh,
Try using
WRITE:/ SY-ULINE(150).
2006 Feb 15 10:13 PM
is this an alv or conventional report? alv's need a form associated with an end of page event.
2006 Feb 15 10:18 PM
Dear Santosh,
Please try the sample program it should help you.
REPORT zsursh_end_of_page LINE-SIZE 40 LINE-COUNT 25(2).
data : it_mara like mara occurs 0 with header line.
TOP-OF-PAGE.
WRITE: 'Page with Header and Footer'.
ULINE AT /(27).
END-OF-PAGE.
ULINE.
WRITE: /30 'Page', sy-pagno.
START-OF-SELECTION.
select * from mara into table
it_mara up to 100 rows.
loop at it_mara.
WRITE : / it_mara-matnr.
ENDloop.
Do reward points if it helps you.
2006 Feb 15 10:31 PM
Hi Santosh
1. When you specify in your report heading for example LINE-COUNT 65, end-of-page event will not be triggered unless until the out put reaches 65 lines. So if there is no data in output for 65 lines then you dont get uline that you specified under end-of-page event.
2. So you need to check, if line-count is not reaching 65 then you just have to explicitly trigger that even by skipping the lines that are required to trigger that event.
Examaple: v_linct = sy-LINCT .
if v_linct < 65.
v_skipln = 65 - v_linct.
skip v_skipln
endif.
Let me know if you need anything else.
Suresh B Mannem
2006 Feb 16 12:00 AM
Santhosh
Did the solution help you.........?
If it is so...Reward Points...
Suresh B Mannem
2006 Feb 16 2:34 AM
Hi Santhosh,
In new versions of SAP it is mandatory to specify the LINE-COUNT as :
REPORT Z538TEST12 LINE-COUNT 75(3).
Where 75 is the total line count
and 3 is the number of FOOTER lines.
Unless you specify this, the END-OF-PAGE will not be displayed.
For eg.
REPORT Z538TEST12 LINE-COUNT 75.
--Here Number of Footer lines are not specified. Hence END-OF-PAGE will not be displayed.
Ps: Reward points if helpful.
2006 Feb 16 4:11 AM
u can write ULINE in the end of page.
but the end of page to trigger , u need to write LINE-COUNT with REPORT statement, and if the number of records are not reaching the line count then u need to write
SKIP (n) to reach the end of page.
u try like this , it will certainly work.
regards
hyma