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

Similar Messages

  • How to display pagewise total in Oracle reports?

    Hi,
    I want to display pagewise total in all pages as well as report total at the last page of the report.
    I have tried Reset at : Page, Print on : All pages
    But nothing is working.
    Please suggest what else I need to set to achieve the requirement
    Thanks in Advance
    Sudeep

    Create a user parameter for line count and another to hold the value of total at end of page,
    create formula column in your query group, where the column to be summarised exists,
    See how many lines of records/transaction can be printed on your page, count them in a formula column and when the printable record been retrived assign the total to
    the user parameter you have created.
    set the property 'PRINT OBJECT ON' to 'ALL BUT LAST PAGE'
    put you summary item just below this field and set the property 'PRINT OBJECT ON' to 'LAST PAGE', the final total will be displayed on last page.

  • 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

  • Hi frinds ,how to calculate the  totals in smartforms

    1)how to calculate the  totals in smartforms .

    Hi,
        To calculate totals and sub totals in sap scripts you can use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    regards..

  • Can i use Functions in Header/Footer ( want to have pagewise totals) - Urgent

    hi there,
    I want to show pagewise totals. is it possible to use functions (sum,count etc.) in the Header / footer of a workbook ? Otherwise, pls. suggest a workaround is possible.
    I am using Discoverer Ver. 4.1.37.00.0 Desktop edition.
    Thanx,
    Rajesh.

    EDIT: I notice I am giving instructions for Numbers 3.0 but the OP may have Number '09.  Same ideas apply but the instructions are not quite the same.
    Depends on which axis.  I do not know your expertise level so I may explain some things you already know.
    To change the Y axis scale, select the chart and go to the axis tab in the format sidebar. Click on Y Axis. Put in your minimum and maximum values for the "scale". Then choose the numer of "steps" for the Y axis.
    For the X Axis:
    Most charts are "category" charts.  That is, on the chart the X Axis data is evenly spaced. The X Axis data could be numbers it could be text, it doesn't matter, it is evenly spaced across the bottom.  For these charts, there is no changing the X axis scale; the question itself doesn't make any sense. The X axis data is typically put into a header column/row (as you have noticed).
    There is one chart type, the Scatter Chart, that has a scalable X axis. It makes a true X-Y chart. The scaling for the X axis is done the same way as the Y axis.  Note that for a scatter chart, the X axis data cannot be in a header row/column.

  • 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

  • Prob with  Totals in Smartforms

    Hi,
    I am having a problem with Totals in my smartform.
    I am Printing SUBTOTALS , GRANDTOTALS and CARRYFORWARD of amounts in my smartform.
    My Problem comes with Carryforward total ( Balance forwarded to next page ).
    Its getting added to a first record in next page and the balace is getting displayed in present page.
    for example if the total in this page is 1000
                        and the next page record amount is 100
                   I am getting the CARRYFORWRD balance as 1100 instead of 1000.
    I am calculating the subtotals and grandtotal in the Main area of the table and printing the Balance carry forward / grandtotal in the Footer area of the total
    I cant use calculation tab because the currency may vary.
    How to get the correct CARRYFORWARD balance
    regards
    Prasanth

    Hi
    For carry_forward:
    In the global data:
    carry_forward type I default value : 0
    In the program lines:
    carry_forward = TOTAL_SAL - TOTAL_SAL_PAGE.
    Create the txt node for the carry forward.
    Condition : not on first page.
    For page_total.
    Create the text node:
    page total : drag and drop the field.
    In the program lines.
    carry_forward = 0.
    total_sal_page = 0.
    For grand_total.
    Create the text node:
    grand_total : drag and drop the field.
    Condition tab : only after end of the main window.
    Regards,
    Sravanthi

  • Reg: Subtotal and final total in smartform?

    Hi Experts,
    I'm working on a smartform where i need to display the line items from lips table.
    This is my final internal table.
    TYPES : BEGIN OF it_final,
              matnr    TYPE lips-matnr,       "Article
              vbeln    TYPE likp-vbeln,       "Delivery Number
              arktx    TYPE lips-arktx,       "Article Description
              vrkme    TYPE lips-vrkme,       "Unit of Measure
              lfimg    TYPE lips-lfimg,       "Delivery Quantity
              kunag    TYPE kunag,            " Sold To
              name     TYPE name1,            " Name
              charg    TYPE lips-charg,       "Batch Number
              vfdat    TYPE lips-vfdat,       "Expiry Date
              lgort    TYPE lips-lgort,       "Storage Location
              matkl    TYPE lips-matkl,       "Merchandise Category
              wgbez    TYPE t023t-wgbez,      "Merchandise Category Desc
              lgpbe    TYPE lips-lgpbe,       "BIN Number
              pikmg(20) TYPE c,               "Picking Quantity
              route    TYPE likp-route,       "Route
           END OF it_final,
    For one material number, there will be many line items, I need to have a subtotal for a particular material and at the end i need afinal total for all the material number.
    I have sorted my internal table as sort it_final ascending by matnr vbeln.
    Then this internal table is moved to smartform.
    In smartform i'm using table to display the complete data. Here i need to segregate into subtotal and total.
    Please help me to display the data in below format.
    For Ex:
    MATNR                    DESC                          QTY                  VBELN
    1000001                  tea                               12                     3500000012
    1000001                  tea                               02                     3500000013
                                              subtotal             14
    1000006                  salt                              01                      3500000013
                                              subtotal             01
    1000008                  sugar                          02                       3500000015
    1000008                  sugar                          02                       3500000012
    1000008                  sugar                          02                       3500000013
    1000008                  sugar                          02                       3500000016
                                              subtotal             08
    Total                                                            23
    Thanks in advance.
    Guys, The data is not getting displayed in Preview properly. Please edit and read it or copy in the notepad and read it.
    Regards,
    Abdur Rafique
    Edited by: abdur rafique on Aug 8, 2009 3:38 PM

    HI,
    for the total it is easy.
    Just calculate the total in a variable just before the table in the smartforms.
    Display the total variable in the FOOTER section of the table.
    To display the subtotal you will have to do i bit of workaround.
    In the table create 2 LINE TYPES.
    The 1st line type will have the four columns to display MATNR DESC QTY VBELN.
    The 2nd line type will be of single column which will be used to display the subtotal.
    In the main section of the table create 2 rows of the above line types.
    In the 1st row display the MATNR DESC QTY VBELN as normal.
    In the 2nd row display the subtotal.
    This should be done as follows:-
    Add one more column in your internal table as follows:-
    MATNR DESC QTY VBELN SUBTOTAL.
    Now you have to do some coding to create your internal table as follows:-
    MATNR DESC  QTY VBELN SUBTOTAL.
    1           test     10    100001
    1           test     10    100002
    1           test     20    100003 40
    2           test2   10    100006 10
    3           test3   50    100009 
    3           test3   60    100010 110
    This internal table should be created before displaying the table in the smartforms.
    Then this internal table should be used in the smartforms.
    The subtotal column should be shown in the 2nd row of the main area of the TABLES.
    Also add a condition to it that it should be shown only when the column SUBTOTAL of the table contains any value.
    So in this way you will be able to achieve your required output.
    i hope you understand my idea.
    regards,
    Ankur Parab

  • Create Grand total in smartform

    Hi,
    I am using the calculation tab in table folder of my smartform. But i am not getting the result ,all blank. Plz help me to solve this issue.
    Thanks in advance.

    Hi Snehashis,
    It will be difficult to visualize your situation .
    But see the following pictures, where Grand Total was computed.
    Individual totals
    For Grand Total calculation, Program lines was created as under, where you want this Grand Total.
    Then
    Obviously SUM1 is flown from another field.  (Calculation filed)
    SUM1, GTOT will be Global Variables. and S_TPREV will be from interface. (s_tprev can be in the form wa_ekpo-ebeln )
    This post just gives you some idea of calculating Grand Totals, to get some clues to apply to your case.
    Jogeswara Rao K

  • 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

  • Subt totals in smartform

    Hi
    How to make subtotals in SMARTFORMS?
    Regards
    Shashi

    Hi
    One can insert static and dynamic tables. These include the line feeds in the individual table cells, triggering events for table headings and subtotals and sorting data before output.
    Sub window-->Position text on one or more pages
    Main window-->Display text in relation to other nodes in the main window, it may cover several pages
    Template -->Displays texts for table cells of a static table
    Table-->Display table contents
    Header and footer-->Display column headings and grand totals in tables
    Event node-->Display subtotals in a table
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    Regards
    Pavan

  • 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

  • Pagewise total in Standard PO Script layout

    Hi All,
    In standard PO - MEDRUCK layout is giving total at the end of all the page.
    But the requirement is to display the total at all the pages like page-wise total.
    example :
    First page  : 10
                       20
                       30
    Total            60
    Second page  20
                         40
                         10
    Total             130
    Like cumulative total should be display as total.
    Help me in this regards
    Deekshitha.

    hi
    good
    try this
    LOOP AT itab.
    "Write item
    CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            element                  = 'ITEM'
            window                   = 'MAIN'
        AT END OF field.
          SUM.
    "Display Subtotal
    "Write item
    CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            element                  = 'SUBTOTAL'
            window                   = 'MAIN'
        END AT.
    ENDLOOP.
    In you sapscript Main Window...
    /E ITEM
    /: &itab-field1&,,&itab-field2
    /E SUBTOTAL
    /: &itab-totalfield
    /: NEW-PAGE
    thanks
    mrutyun^

  • Sub total in smart forms

    how to calculate sub total in smartforms
    give step by step
    mak

    Check out the below related thread .... Hope it helps
    total and subtotal in smartform
    HI    SUBTOTAL IN SMARTFORM
    Hi can any one help subtotal in SMARTFORM with sample steps&code
    Regards,
    Santosh

  • I want pagewise Summary field in Crystal XI.

    Post Author: GBA
    CA Forum: Formula
    I m using Crystal Report XI n i want 2 show pagewise summary field it means that the data is almost on ten pages and i want 2 get total of each page in page footer or group footer. But the condition is this only those employes total which is display on 1st page and then another total in 2nd page respectively not GrandTotal.
    Also just pagewise Total. do not total page 1,2,3,4..... 10. bcause just pagewise total. i think u got it my question.
    have u any suggestion or formula . . . . please post it.
    THNX in Advance.
    Regards,
    GBA.

    Post Author: GBA
    CA Forum: Formula
    thnx 4 rply Jagan.
    i apply that kind of formula but the result is correct in 1st page and after the 1st page when u see the 2nd page it shows total (1st + 2nd page) and onwards. it means 1st page total n then 2nd page then 3rd page etc. . . . its almost going sumthing wrong. i cannt recognise wats happening so can u help me. i'll give da formula abt dis wat's i applied. given below. and please verify this is it right? and then if u think there's a bit wrong plz tell me the correct solution i'll be greatful 2 U.
    Create 3 fomulae as belows ;Formula 1 :- RunningTotalName--WhilePrintingRecords;CurrencyVar Amount;Amount := Amount +  {Customer.Last Year's Sales}Place the above formula on the details section . and suppress this formula if u dont want to display .Formula2 :-  DisplayWhilePrintingRecords;CurrencyVar AmountPlace this formula on PageFooter Sectionformula3 :- AmountToReset--
    WhilePrintingRecords;CurrencyVar Amount := 0;place this formula on PageHeader section and suppress the same.Refresh the report , u will get page summary

Maybe you are looking for