2007 May 29 5:52 AM
i want in report disply pages like 1 of 10,2 of 10 is it possible?
i want in report disply pages like 1 of 10,2 of 10 is it possible?
2007 May 29 5:54 AM
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
2007 May 29 5:55 AM
2007 May 29 5:56 AM
2007 May 29 6:01 AM
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
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |