How to display page wise totals in Smartforms
hi,
I created Tax Invoice for SD my quetion is i have 10 items 5 items are displaying in first page and rest of 5 items are displaying next page.
in first page 5 items i have to display the total amount in first page and same like second page also please help me.
regards
Hi,
Create two global data variables called pag_total & currentpage and initialize currentpage as 1.
if currentpage <> sfsy-page.
pag_total = 0.
pag_total = pag_total + column value(which values u want to add).
currentpage = sfsy-page.
else.
pag_total = pag_total + column value(which values u want to add).
endif.
Write these lines in main area table row of that particular column cell and store the SFSY-page value also in a global variable(currentpage).
Then write the pag_total variable in the footer.
Thanks,
Venkat
Similar Messages
-
Urgent:page wise total in smartforms
hi,all
How to do page wise total in smartforms ?
use table in smartforms for summary in pagebreak
ex. page1
10 (line 1)
20 (line 2)
30 (line 3)
total 100
page 2
40 (line 1)
50 (line 2)
total 50
Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)
Total in page 2 inccorrect = line2 (in page2) .
please help me guys to solve this problem..r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
first create a variable in Global difinations-->global data tab.(ex v_tot)
then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...
then in theTABLE>footer>inset a line display the variable(total u r using).here
after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
lem me know if u have any clarifications.
u can calculate as the above way for all the 6 fields.
please Avoid postin duplicate threads -
Dear friends,
I am displaying my reprot in ALV GRID display but as per new requirement my client want that it should be dealer wise means the dealer should come on top of page and its customer data below that heading after all customers the totle should come and when dealer change it should appear on the new page.
Can any body tell me hw to do this.
Thanking you all in advance,
NavinHI
navin this code might help u this code triggers a pge break at every new date
*& Report Y_TOP_PAGE *
REPORT y_top_page .
TABLES : mara.
TYPE-POOLS: slis.
DATA : w_repid LIKE sy-repid.
w_repid = sy-repid.
DATA : BEGIN OF it_mara OCCURS 0,
matnr LIKE mara-matnr,
END OF it_mara.
*layout
DATA: wa_layout TYPE SLIS_LAYOUT_ALV.
*field catalog
DATA: it_fieldcat_wrt_off TYPE slis_t_fieldcat_alv,
wa_fieldcat_wrt_off TYPE slis_fieldcat_alv.
START-OF-SELECTION.
SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE it_mara.
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = w_repid
I_INTERNAL_TABNAME = 'IT_MARA'
i_structure_name = 'IT_MARA'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = w_repid
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat_wrt_off[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = w_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
is_layout = wa_layout
it_fieldcat = it_fieldcat_wrt_off
TABLES
t_outtab = it_mara
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Form TOP-OF-PAGE *
ALV Report Header *
FORM top-of-page.
*ALV Header declarations
DATA: t_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader,
t_line LIKE wa_header-info,
ld_lines TYPE i,
ld_linesc(10) TYPE c.
Title
wa_header-typ = 'H'.
wa_header-info = 'CHANDU REPORT'.
APPEND wa_header TO t_header.
CLEAR wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
APPEND wa_header TO t_header.
CLEAR: wa_header.
Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
ENDFORM. "top-of-page
if it is helpfull plzz reward
dont forget to reward if ti is usefull
for any further quiries contact me on [email protected] -
XML Publisher - Page Wise Total
We are facing problem in incorporating ‘Page Wise Total’ in Invoice Report - Invoices print at format CAP_ETA for Germany. It an XML Report and its output appear in PDF format. As per the new requirement sent by L1 team, we are required to make changes in RTF, to show ‘Page Wise Total’.
We have worked on this enhancement but unable to display ‘Page Wise Total’. We are able to display Sum Total of all the records appeared in three different blocks of records for that particular page at the end of the footer of Page, but not yet able to SUM UP total of these three Sum Total of three different blocks on that particular page.
For e.g. First page of my XML Report display three different Block of data as shown below with Subtotal of 38,600.00, 4,453.47 for 1st and 2nd Block respectively, but 3rd block records appeared partially on the first page and remaining appeared on the next page. So My Report should display ‘Page Wise Total’ or ‘Amount Forward’ as 52853.47, which sholud be carried forward to next page as ‘Amount Forward’ - 52853.47. The next page/second page will dispaly the remaing line records of the 3rd block and Subtotal( Please see attachment New_Layout_Invoice_TUM_English.doc)
Name Description Unit Quantity Price Amount in Euro
Rösner Fees Day 17.00 1,400.00 23,800.00
Schreiber, Clemens Fees Day 2.00 1,400.00 2,800.00
Slegers, Arnd Fees Day 4.00 1,400.00 5,500.00
Weiler, Andreas Fees Day 4.00 1,400.00 6,400.00
Subtotal: 27.00 38,600.00
Römer, Michael Expenses 2,253.79
Schreiber, Clemens Expenses 157.69
Slegers, Arnd Expenses 519.78
Weiler, Andreas Expenses 1,522.21
Subtotal: 4,453.47
Rösner, Michael Travel expenses 2,400.00
Schreiber, Clemens Travel expenses 2,000.00
Siegers, Arndt Travel expenses 1,800.00
Weiler, Andreas Travel expenses 2,000.00
Marek, Gruchala Travel expenses 1,600.00
Amount forward 52853.47
As mentioned above we are able to show independently three different Page Wise Total of each of these blocks by using syntax:
<?add-page-total:block1amount;’L_AMOUNT’?>, this syntax is used to sum up all the line records appeared in a block for a particular page and
<?show-page-total: block1amount;’#####.##0,000’;’ ###.##0,000)’?> is used to display the Sum Total calculated by above syntax.
But we are not able to further sum up all these Page Wise Total of different blocks.
Please find attached copy of RTF file from Production (V18_CAR253E1), copy of RTF (V18_CAR253E1_TEST Where we are testing these new changes) and .out XML output file.
I need help on this issue
Thanks & Regards,
Praveen S Negi
[email protected]
91-09930799325Hi Praveen,
You got the solution for page total in Invoice Report in XML publisher report.
Can you pls help regarding the same, i want to display total amount in the invoice report.
Thanks in advance,
Sunny -
Page wise total for multiple pages in xml template
Hi all,
I need to display page wise total for multiple pages in xml layout.I have tried with add-page-total and show-page-total tags but it is not working in my case.Anyone please provide me a solution to this. Thanks in Advance..It is urgent issue..
Thanks
SwapnaThis issue has been resolved.
We had a call to the method "makeOutputFlat(true)" before the call to "FormProcessor.process()" that was corrupting the PDF template file.Once we took that off , the PDF is now printing multiple pages. -
JSF datatable pagination - showing page wise total.
Hi All,
i am ok with normal pagiation. but i have a requirement to show total count of a column page wise in the footer and also total count of th column at the datatable bottom.i can able to get total count but how can we show page wise total count in the footer of datatable. please help me in this
Regards,
A.So you want something likedouble subTotalPrice = 0.0d;
for (int i = dataTable.getFirst(); i < dataTable.getFirst() + dataTable.getRows() && i < dataList.size(); i++) {
DataItem dataItem = dataList.get(i);
double dataItemPrice = dataItem.getPrice();
subTotalPrice += dataItemPrice;
return subTotalPrice;? -
PPR Report ,How to display Label with TOTAl
Hi,
How Can i display PPR Report ,How to display Label with TOTAl like
[http://apex.oracle.com/pls/apex/f?p=267:30:]
Thanks
Edited by: 805629 on Jan 6, 2011 3:34 AMHi,
For PPR Report:
Select "Yes" in "Enable Partial Page Refresh" item of "Layout and Pagination" region in Report Attributes of that report.
For display Label with TOTAL:
Use "Break Formatting" region in Report Attributes of that report.
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
How to display page numbers in report
hi all,
i would like to know how to display page numbers in this format " 1 of 5" in the report.
Any help would be much appreciated.
thanks
seemaHi,
Check this too...
Page No. in ALV output
If you query is solved, kindly close the thread.
Regards,
Anjali
Message was edited by: Anjali Devi Vishwanathan -
How to print page no/total pges in report programing?
how to print page no/total pges in report programing?
Hi
This is an example:
In TOP-OF-PAGE you can write:
WRITE: SY-PAGNO, '/', '-----'.
When the program has finished to print all data, run a routine like this:
Declare a variable
DATA: L_PAGE_COUNT(5) TYPE C,
V_LINE TYPE I. "The line where page number is written
* In my example I suppose the page number is always
* written in the first row of the page.
V_LINE = 1.
* Copy this code to the end of program
* Page count will be printed on each page here
WRITE sy-pagno TO l_page_count LEFT-JUSTIFIED.
DO sy-pagno TIMES.
READ LINE V_LINE OF PAGE sy-index.
REPLACE '-----' WITH l_page_count INTO sy-lisel.
MODIFY CURRENT LINE.
ADD 1 TO sy-index.
ENDDO.
Max -
Dear All
i develop a tabular report in oracle reports 6i with grand total at last page,,
after that i want total of every page show at the end of every page , and at the end of report show grand total of the report as it shown
how can i break the total of every page wise ,, i change from the "Reset at" Page , but it show only last page with last page total , not every page total on every page
please help as soon as possibleHi,
I think you have to create one moe summary column for this purpose provide the source of same column of Grand Total in place of reset at report end choose reset at page .
And place this summary column at page layout, will solve your problem.
Shishu Paul -
How to display page no for different master pages in one adobe form application
Hi All,
we have requirement where we need to display page nos in different master pages in one single adobe form.
For the First form the page nos should be displayed pgno of total pages and for 2nd form the page no shuld be displayed as pgno of total pg.
so please help me with any script or suggestions for displaying the page no accordingly in different master pages. Your suggestions are greatly appreciated.
Thanks
Raja.Hi Lingaraj,
We have 2 different Master pages and 2 Body pages. For the seccond Master page the page no are comming correct like 1 of 3 ,2 of 3 and 3 of 3 but for First master page the page no are comming 0 of 3 in all of the page its not displaying the current page no in 1st master page.
Screen shots are attached for first master page and Hierarchy Node.Pls see the highlighted section in 2nd image.
Pls see and suggest me accordingly. Hope this helps are let me know anything u require. -
How to find item wise totals and header wise total using hierarchical ALV
Hi Friends,
I came across an issue of finding item wise total using hierarchical ALV. I am getting header wise total by setting the field catalog. May you help me in finding Item wise total.
Regards
Nikhil.hi,
you must use "w_fieldcat-do_sum = 'X'" and change your layout like :
w_sort-fieldname = 'FIELD'.
w_sort-tabname = 'TABNEME'.
w_sort-up = 'X'.
w_sort-subtot = 'X'.
APPEND w_sort TO i_sort.
CLEAR w_sort.
you can use detailed code from http://wiki.sdn.sap.com/wiki/display/Snippets/Subtotalsinhirarchial+report.
regards,
orhan
Edited by: goktasor on Jun 1, 2010 11:03 AM (need points : ) ) -
How to display page-no in alv list
Hi All,
I am trying to display pag number using events 'top-of-page'.
when i write sy-pagno in top-of-page form its printing only 1, if i press page down i need to change the page number. it should display current pag number. How to achieve this. thanks.
regards
vishalwe can print the pageno .I was also trying for the same finally succeded
It can be done in the following manner
DATA SORTING AND SUBTOTAL
DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD1'.
GS_SORT-SPOS = 1.
GS_SORT-UP = 'X'.
GS_SORT-SUBTOT = 'X'.
<b>gs_sort-group = '* '. "<<<new page</b>
APPEND GS_SORT TO GT_SORT.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD2'.
GS_SORT-SPOS = 2.
GS_SORT-UP = 'X'.
gs_sort-group = ' '. "<<<new page
*GS_SORT-SUBTOT = 'X'.
APPEND GS_SORT TO GT_SORT.
ABAP List Viewer
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME = 'ITAB1'
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = GT_SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = GT_EVENTS[]
IT_EVENT_EXIT =
IS_PRINT = GS_PRINT
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = ITAB1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2. -
How To make group wise total in Bex report
Hi!!! Guru's
i m doing reporting on SD module, so client wann see the summerised report
on delivarys, senario is the one sale order having the multiple delivery, so the
i have to show the total result for all deliverys agianst the purticular sales order
in one row.i know we can do that at the excel level but hot to do it at the query
design level.highly appreciate u r help on this.
wil asign pts for sure,,,
thanks in adv
MohanHi!!! Trippel K
thanks for reply...
my Q's is how to make the group wise total means, i m going to genaret the
report on delivery delays on cube 0SD_C04 (Delivery Service), in that the the date
is comming from the 2LIS_12_VCITM delivery item data, the schedule line data
from 2LIS_12_VCSCL, when i m getting according to date wise it showing all data from item level n schedule line, the senario is i have to use date from item level n
all delivery from schedule line, so any inputs regarding this, plz let me, wil appecite
u inputs
thanks in adv
Mohan -
How to display Page numbers in XMLreport(on PDF)
hi all,
we have a requirement where we need to display page numbers(e.g.page 1 of 10),on an XML report.
can anybody suggest me the solution.Hi,
Check this too...
Page No. in ALV output
If you query is solved, kindly close the thread.
Regards,
Anjali
Message was edited by: Anjali Devi Vishwanathan
Maybe you are looking for
-
SIM card full please delete SMS messages
I keep getting the message "SIM card full please delete SMS messages". I've gone into options under TEXT messages and there is no option to check or uncheck "save on SIM card. I've had this issue since I bought the 9810. I did not have the same issue
-
How do I position to panels in a single frame?
Hi, Can someone tell me how i can position two panels in a single frame using the BorderLayout class. I have included my code below. When it is run it shows two JPanels positioned at the top and the bottom, a text area to the right, a panel in the ce
-
Hi all, I have low experience with XI but I have created a scenario XML file to XML file (reference wiki.sdn.sap.com) where sender e receiver files are located into XI folders . The steps defined are : product; software component; technical system (t
-
Service Accounts in Sharepoint 2013
Ok in SharePoint 2013, we have an intranet set up. Ok so on the central administration page, under Security, and configure service accounts, I selected Farm Account for the drop down menu at the top. We have 3 managed accounts for the intranet, which
-
I lost some text messages and I want to get them back. I tried an iTunes backup, but I ended up losing even more messages? Can they be recovered?