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: 

top-of-page issue...

Former Member
0 Kudos

Hello,

I want header to be printed on each page of report. So I am using I an using top-of-page command to print data as follows.

Docnum--


amt
customer
--


date

:

:

:

:

:

**********************************Summary************************************

Total amount for customers is and so.

Some additional data1

Some additional data2

************************************************************************************

Now, if the first page is completely filled with data and it can only accomdate two more line of summary report then the next two lines related to additonal data goes on page 2 but then again header is printed. I want either whole summary to be printed on next page if a page does not have sufficient space and the header should not be printed if its just printing summary on next page.

Regards,

Rajesh.

2 REPLIES 2

former_member673464
Active Contributor
0 Kudos

hi,

You can use end of page for printing the whole summary in a single page.

Regards,

Veeresh

0 Kudos

I did it end-of-page but it does not print anything at all.

  • Report the summary

perform input_error_listing.

************************************************************************

************************************************************************

    • TOP-OF-PAGE.

************************************************************************

top-of-page.

write:/ 'Date:'(h07), sy-datum,

44 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.'(h08),

118 'Page: '(h09), sy-pagno,

/ 'Time:'(h10), sy-uzeit,

37 'A/R Open Item Conversion'(h11),

'(', sy-repid(20), ')',

118 'System:'(h12), sy-sysid(3) no-gap, '/' no-gap,

sy-mandt.

uline.

write: 01(10) 'Document'(h19),

12(10) 'Document'(h19),

23(04) 'Line'(h19),

28(02) 'DT'(h20),

31(13) 'Amount'(h20) right-justified,

45(10) 'SAP'(h21),

56(10) 'Source'(h22),

67(25) 'SAP Customer'(h23),

93(25) 'Header'(h23),

119(08) 'Rsn Code'(h35),

130(10) 'Pay term'(h25),

142(3) 'Doc'(h33),

147(5) 'Cust.'(h33),

153(4) 'PayT'(h33),

159(4) 'ReCd'(h33).

write:/01(10) 'Number'(h27),

12(10) 'Date'(h28),

23(04) 'Item'(h28),

45(10) 'Cust'(h30),

56(10) 'Cust'(h30),

67(25) 'Name'(h31),

93(25) 'Text'(h24),

119(08) 'In / Out'(h32),

130(10) 'In / Out'(h32),

142(03) 'Err'(h33),

147(05) 'Err'(h33),

153(4) 'Err'(h33),

159(4) 'Err'(h33).

uline.

end-of-page.

write: / ' ********************************************************'.

write: / ' Input File :'(h01), p_ds_in.

write: / ' Batch Session created :'(h02), p_btchnm.

write: / ' A/R Transaction count :'(h04), v_tx_in.

write: / ' BDC_OPEN_GROUP retncd :'(h05), v_bdc_open.

write: / ' BDC_CLOSE_GROUP retncd :'(h06), v_bdc_cls.

write: / ' ********************************************************'.