on 06-15-2009 10:49 AM
I am displaying line items in the script.
I have total 20 line items and in each page i am displaying 5 line items with page wise totals . I am displaying 20 line items in 4 pages each page below i am displaying 5 line items amount totals , in the last page i want to display 4 pages totals . I have done calculations for getting totals but when displaying i am getting problem.
First page
line item 1 10,000
line item 2 20,000
line item 3 30,000
line item 4 15,000
line item 5 25,000
first page total called as ubertag : 90,000
Second page
top first page total as ubertag : 90,000
line item 1 12,000
line item 2 18,000
line item 3 25,000
line item 4 15,000
ine item 5 25,000
second page total called as ubertag: 95,000
3rd page
top of second page ubertag 95,000
line item 1 11,000
line item 2 19,000
line item 3 35,000
line item 4 10,000
line item 5 25,000
3rd page total called as ubertag : 1,05,000
4th page
top of page ubertag : 1,05,000
line item 1 5,000
line item 2 8,000
line item 3 4,000
line item 4 1,000
ine item 5 2,000
all pages total called as gesamtsaldo : 3,10,000
I have 15 lines text at the last of the page i want to display it with out splitting.
can u please suggest me how can i display above format. Now i am getting page wise totals and final totals but displaying at last i want to call it as gesamtsaldo ( 4 pages total)
1. how i display page wise totals
2. how i display 4 pages at last page
i am using following statement for every page total.
IF NEXTPAGE > 0
UBERTAG : &WRBTR&
ENDIF.
please guide me.
Hi Sri,
Refer this [Wiki|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/displayingspecificnumberofrecordsperpage]
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U APpend all the Page totals into one internal table and display them at last page by LOOP'in that internal table. whenever u r printing the page totals on each page just APPEND them into an internal table.
Regarding displaying 15 text lines, Use PROTECT & ENDPROTECT to protect the Paragraph on same page.
Hope it helps!!
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srisai,
Try using protect and end protect to get the sum and total on the same page. Try using bottom and end bottom for your totals on the last page.
For your final total validate it like,
If &nextpage& = 0.
Print your final total.
endif.
Regards,
Amuktha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.