Application Development 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: 

problem with report layout

Former Member
0 Kudos
122

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

7 REPLIES 7

Former Member
0 Kudos
103

Hi Santosh,

Try using

WRITE:/ SY-ULINE(150).

former_member186741
Active Contributor
0 Kudos
103

is this an alv or conventional report? alv's need a form associated with an end of page event.

Former Member
0 Kudos
103

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.

Former Member
0 Kudos
103

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 don’t 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

Former Member
0 Kudos
103

Santhosh

Did the solution help you.........?

If it is so...Reward Points...

Suresh B Mannem

0 Kudos
103

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.

hymavathi_oruganti
Active Contributor
0 Kudos
103

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