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

Similar Messages

  • 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

  • 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
    Swapna

    This 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.

  • 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-09930799325

    Hi 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

  • 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;?

  • Page wise total

    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 possible

    Hi,
    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

  • Regarding smartform page wise total.

    hi
    guru's
    i  am having doubt on smartform
    i want to   caluclate  sum of qunatities in pagewise
    Regards
    Anand

    Hello Anand ,
           Really good Question.
    As per my knowledge and understanding it is possible only a only when , when the you know the no of row you can print in Main window  like......
         In my Main Window I can print 5 Row . Then in the Footer you can Code like this. That's i don't thing big issue. But majar thing on the basic of your data in internal table (you can say how many row can be printed in first and so on page).
    I haven't done this yet , quite sure it will help you.
    Regards
    Swati namdeo

  • Line Totalling and page totalling in smartforms?

    Hi,
    Any ideas about displaying line totals and page/grand totals in smartform. Answers would be appreciated.
    thanks

    Hi..,
    in TABLE you will have one tab called CALCULATIONS..
    in that select the type as TOTAL and give the field name for which u want to find out the total. and give the resultant field into which u want the total to be stored !! and select AFTER LOOP in the next list box...
    in the footer you just write this field name. u will get the cumulative total for each .. i mean for second page the total of ( the first page and second page) will get printed !!
    if u want the total for each page then u need to write a program line for the table.. to clear the total field for each page !!
    reward if it helps u,
    sai ramesh

  • Formatting Page Running Total - Need Urgent Help !!!

    Hi All,
    We need to format the page running total in European style and US style based on functional currency.
    Our current output is
    +1,200.00+
    Required output
    +1.200,00+
    <?xdoxslt:pat_format_number(12345, ‘##,##0.00’, $_XDOLOCALE)?>
    if $_XDOLOCALE = 'de-DE'
    Returns a number formatted with the specified pattern.
    For example:
    <?xdoxslt:pat_format_number(12345, ‘##,##0.00’, $_XDOLOCALE)?>
    returns
    12,345.00
    But the number 12345 above here is hardcoded but we need the number to be dynamic and it is the page running total.
    We are deriving the page running total in the following way:-
    <xdofo:inline-total
    display-condition="exceptlast" name="InvAmt"><xdofo:show-carry-forward name="InvAmt" format="99G999G999D00"/>
    </xdofo:inline-total
    Any Clues !!!
    Thanks...

    Got the solution and this is very important one !!!
    <xdofo:inline-total display-condition="exceptlast" name="InvAmt"><xdofo:show-carry-forward name="InvAmt" format="99G999G999D00" number-separators=",."/></xdofo:inline-total>
    <xdofo:inline-total display-condition="exceptfirst" name="InvAmt"><xdofo:show-brought-forward name="InvAmt" format="99G999G999D00" number-separators=",."/></xdofo:inline-total>

  • Displaying bulky ResultSet page wise, in jsp!

    Hello Guyes,
    I am back to the most asked problem again! I have a massive resultset of 5,000 records and I want to display it page wise in my jsp with giving 'Next' and' Back' buttons. I can open the resultset on each page as it will kill my application and server!
    Pls help and give a simple solution in which I can do it!
    It is very urgent!
    Thanks,
    - Rahul

    USE a Scrollable ResultSet object and put it in the session. Keep a variable that identifies where in the resultset ur pointer is at any point of time.
    Scrollable ResultSets are a feature only available with JDBC 2.0 onwards... so make sure u have THAT first.
    Create a Statement like this...
    Statement st =
    con.createStatement(ResultSet.SCROLLABLE);
    Then run the query n store it in the resultset
    ResultSet rs = st.executeQuery(sql);
    Then move ur pointer to any record u want with methods present in the ResultSet interface:
    relative(int rows) that takes you 'rows' rows ahead.
    absolute(int row) that takes your pointer to the 'row'th ROW.
    Make sure u use 'refreshRow()' so u have the latest content at any point of time. This refreshes the contents in that row. there is also something called refresh() BUT THAT would minimise performace.
    Store this resultset object in the session and call it in each page u want starting with the record number u want to. !!
    Hope this helps... aXe!

  • Pagewise total in smartform

    hi all,
             i want to know how to do pagewise total in smartform ?
    all those data i am having in an itab...
    plz help.
    With Regards,
    S.Barane

    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)
    <b>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...</b>
    then in theTABLE>footer>inset a line display the variable(total u r using).here
    <b>after the the printing the total..->create a program lines> cleat the v_tot.</b>.. 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.
    Message was edited by:
            Naresh Reddy

  • Totals in smartform

    Hi,
    I have developed a smartform with 3 pages. Page 1 calls Page 2 as next page and page 2 calls itself (page 2) as next page, recursively. Page 3 has terms and conditions.
    Now the problem is that I want to have the total of the Purchase Order on the last page (page before terms and conditions). How do I accomplish this?
    Thanks and Regards,
    Mick

    Thanks Max.
    We are printing Purchase Orders in the smartform.
    I have inserted the variable for the totals in the footer of a table in the main window. But before the footer I have a program node, in which i have written logic that if the the GUID of the cuurrent line item is equal to the GUID of the last line item in the internal table, then I am setting a flag. I have put this flag in the condition of the text element of the footer.
    Now what is happening is that whenever the last line item of the PO is split over 2 pages, the totals are printed both on the 2nd last page and the last page. Also if I put a page break, I still have the same problem ie if the last line item of the PO is displayed on a new page as due to the page break, the total is displayed both on the 2nd last page and the last page. We want the totals only on the last page.
    Thanks,
    Mick

  • 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

  • Page level total in a mulipage matrix report

    hi!
    I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
    Regards
    simer
    The Oracle Reports Team
    http://otn.oracle.com/

    Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
    forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
    Thanks & Regards
    Eamon

  • Multiple page format for single smartforms

    We have a requirement to get the output in different page formates for a smartform.
    How to achieve this???

    suppose you r using a program to print the smartform.
    Just check this program.
    REPORT z_sf_demo1 .
    PARAMETERS p_bukrs LIKE ekko-bukrs.
    DATA: fm_name TYPE tdsfname.
    DATA: ssfctrlop LIKE ssfctrlop.
    Function to get the function name to run SMART FORM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'ZJAYRA_DETAIL'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 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.
    To pass parameters for CONTROL_PARAMETERS
    ssfctrlop-no_open = ' '.
    ssfctrlop-no_close = 'X'.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = ssfctrlop
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    bukrs = p_bukrs
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To pass parameters for CONTROL_PARAMETERS
    ssfctrlop-no_open = 'X'.
    ssfctrlop-no_close = ''.
    ssfctrlop-startpage = 'PAGE2'.
    Function to run SMART FORM from third page to last page.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = ssfctrlop
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    bukrs = p_bukrs
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ssfctrlop-no_open = 'X'.
    ssfctrlop-no_close = ''.
    ssfctrlop-startpage = 'PAGE3'.
    Function to run SMART FORM from third page to last page.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = ssfctrlop
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    bukrs = p_bukrs
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I have also sent a mail to your gmail id regarding the details of my program.
    Hope your query will be solved.
    <b>Rewards pioint for helpful answers.</b>
    Regards,
    Abhay.

Maybe you are looking for

  • No line item in Profit center

    Hello Experts, I have a question regarding the scenario "FIN_PCA --> Profit Center Update" in New GL. I have assigned this scenario to my leading ledger (0L) and also to non-leading ledger. When I did the posting to the primary cost element which is

  • Duplicates AFTER deleting the DUPLICATES~!~~~~!!!!!  SERIOUSLY?!?!?!?

    I've spent DAYS....actually a couple weeks deleting over 50G of duplicate content. Then I transferred everything over to an external HD so that I would have ONE large HD that held everything. And whaddaya know.....all the songs that I'd initially del

  • Using Structural profiles - cannot see withdrawn people

    Gurus, I've got a problem using authorization profiles: I cannot see withdrawn people and I need to be able to see them because people are re-hired constantly. The authorization profiles works fine only with active people. ¿What can I do? I have trie

  • Nokia 6280 Dead During software update

    Hi all I have a NOKIA 6280 with this firmware: 3.06 RM 78 Wiht Nokia Pc Suite I tried to update it to the last firmware 6.0.... but after the NSU says me to unplug and plug the battery the phone doesn't switch on. During updating my software, my NOKI

  • I cannot re-install IOS pages on my iPhone 5s.

    I had IOS Pages installed when I first got my new 5s, but I un-installed it and Keynote to manage space.  I recently just re-installed Keynote, but Pages in the App Store is indicating that I need to buy it.  Help.