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

general

Former Member
0 Likes
640

i want in report disply pages like 1 of 10,2 of 10 is it possible?

4 REPLIES 4
Read only

Former Member
0 Likes
618

Hi

Yes it is Possible to display in reports

depending on the Line-Count(no lines in apge) which you declare along with REPORT and the number of lines of data your final output tables consists of.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
618

write 😕 sy-PAGNO . ---> Current page no.

Read only

Former Member
0 Likes
618

Here is that thread for the answer that you are looking for

Read only

Former Member
0 Likes
618
Please see the sample below.


report zrich_0004
       line-size 80
       line-count 65
       no standard page heading.
 
data: imara type table of mara with header line.
 
selection-screen begin of block b1 with frame title text-001 .
parameters: p_check type c.
selection-screen end of block b1.
 
start-of-selection.
 
  perform get_data.
  perform write_report.
 
top-of-page.
 
  perform top_of_page.
 
************************************************************************
*  FORM GET_DATA
************************************************************************
form get_data.
 
  select * into corresponding fields of table imara
        from mara up to 300 rows.
 
endform.
 
************************************************************************
*  FORM WRITE_REPORT
************************************************************************
form write_report.
 
  data: xpage(4) type c.
 
  loop at imara.
    write:/ imara-matnr.
  endloop.
 
  write sy-pagno to xpage left-justified.
  do sy-pagno times.
    read line 1 of page sy-index.
    replace '****' with xpage into sy-lisel.
    modify current line.
  enddo.
 
endform.
 
************************************************************************
*  Form  top_of_page
************************************************************************
form top_of_page.
 
  write:/32 'Test Program',
        at 62 'Page:', at 67 sy-pagno, 'of', '****'.
 
endform.
 
 

Girish