How to show the total in group footer in group header?

Hello,
I am having difficulties while showing the total of a group footer in the group header. The total in the group footer is correct, but when i am placing the formula in the header it is giving me 0.
I am having 2 formulas to get the total which i placed in the footer:
1.
whileprintingrecords;
numbervar sumpctx := sumpctx + {@Sum OB};
2.
whileprintingrecords;
global numbervar sumpctx;
numbervar DispSales;
DispSales := sumpctx;
sumpctx := 0;
DispSales;
now, I want to add the 2 formula in the header, but it is giving me 0 value, But in the group footer it is showing the correct value.
I tried to do:
Sum ({@Sum OB}) and it is giving that the field can not be summarized.
The group Name is @Entity which is grouped by.
@Entity :
if {Customer.NAME}="NONE" THEN
" OB"
ELSE {Customer.NAME}
Thanks in advance for yopur help.
Regards

Hi,
What i was trying to say there is a hierarchy in report design and records are processed in that way.
Report header/footer - only once
Page header/footer -once in a page
detail -n no of times ,n-no of rows of data
First report header will be processed,then page header n detail,after that report and page footer.
If u insert a group,then the order will be-
report header,page header,group header,detail,group footer,detail,report and page footer.
When u r in group header,all the records are not processed,that results the sum as zero.
But when u create a formula,it calculates the sum first and then u put it there.
I hope this time it will be helpful for u.
Regards,
Misra P.

Similar Messages

  • I just downloaded itunes 11.. and now i cant find out how to display duplicates and also it doesnt show the total amount of songs in my library...anybody know..???

    I just downloaded itunes 11 and now i cant find the display duplicates..and it doesnt show the total amount of songs in my library..anybody know..??

    Two Windows scripts to make playlists of Duplicates and Exact Duplicates. Use shift-delete to remove selected tracks from the library as well as the playlist.
    There is also my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping. See this thread for background.
    tt2

  • With a contract number, how to know the total PO release value against it?

    Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract.  In other word, we would like to know the total release value of all the POs with the same contract number.  To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
    We will give you reward points!
    Thanks!

    hi Mohammad,
    By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess.  Could you let us know which one is the PO release value for this contract?
    Contract   Type Vendor     Name                                 PGp Agmt. date
      Item  Material           Short text                               Mat. group
      D I A Plnt SLoc                 Targ.qty. Un       Net price  Curr.   per Un
    4800000112 WK   2000012012 GULF INTERSTATE FIELD SERVICES       QBH 06/20/2006
    Agreement start06/20/2006 Agreement end 12/31/2007
    Tgt. val.        1,000,000.00  USD   Open          1,000,000.00 USD   100.00 %
      00001                    Inspection Svcs, Construction            R3VNI
      L   U                                  0  UL            0.00  USD       1 EA
      00002                    Chief Inspector                          R3VNI
      L   U                                  0  DAY         390.00  USD       1 DAY

  • Showing the total in the alv

    Hi,
    I have an ALV that I have displayed in a view , the ALV contains few columns , I want to show the total of the fields. Please suggest how to do it.

    hi
    have a look at following [article|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4063c42a-2549-2c10-fab6-a8c99d98b9b5]
    might help you.
    regards
    manas dua

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

  • How to show grand total at bottom in Pivot view?

    Hi All,
    How to show the report Grand total at bottom in pivot table?Plz help.
    Regards,
    Vaishnavi

    Hi ,
    Thanks for the reply but My report structure is like below:
    AAA,BBB,CCC,DDD,EEE,FFF,GGG,HHH & III my report columns.I have arranged those columns in measure & i have to calculate the variance against each column like below structure.As per the report here I have lto calculate variance for 4 columns like AAA,BBB,CCC,DDD & after that total of each..then again variance for EEE,FFF & their total.After that i have to show grand total of all from AAAA to FFF likewise for rest of fields.
    Measures           variance
    AAA(db column)          1
    BBB(db column)          2
    CCC(db column)     3      
    DDD(db column
    Total     6
    EEE(db column)     4      
    FFF(db column) 5
    Total     9
    Grand Total(AAA TO FFF)     15
    GGG(db column)     6     
    Total     6
    Grand Total(AAA TO GGG) 21
    III(db column)          
    Grand Total(AAA TO III)     
    How to do that?
    Regards,
    Sonal
    Edited by: Sonal on Jan 11, 2012 9:06 AM
    Edited by: Sonal on Jan 11, 2012 9:15 AM
    Edited by: Sonal on Jan 11, 2012 9:17 AM

  • Summary filed to show the total amount

    Hi ,
    Version : Jdeveloper 11.1.1.5
    Table : Revenue ( Columns - RevId ,InAmount, OutAmount)
    Based on the Table i Created Entity Object and Based On Entity I Created View Object (RevenueVOW)
    I Created one method --> RevenueVOW to show Create Mode and 4 new Records to show
    how i will create summary field to show the total amount on InAmount
    ( In forms and reports we will create formula column)
    Thanks
    shk

    HI,
    Did you try with groovy expression
    Check
    Sum of field in af:table

  • How to show the volume in a Meter?

    Hello,
    I m newbie in programming in java sound,
    And i would like to know how to show the volume from a recording in real time in a meter? I allready have the meter but now i don´t know how to pass the volume and show in the meter.
    Somebody can help me?
    Thanks

    844429 wrote:
    ..And i would like to know how to show the volume from a recording in real time.. It can never be truly 'real time' since the calculations require a 'chunk' of sound samples to produce a value. The shorter the chunk, the more arbitrary the value, but the more 'real time' it seems.
    ..in a meter? I allready have the meter.. (chuckle) That is the easy part.
    ..but now i don´t know how to pass the volume and show in the meter.In what units? dB, RMS, tuna? I did an RMS calculation for the left/right channels of a more complex audio trace. RMS is relatively easy to calculate. E.G.
    /** Computes the RMS volume of a group of signal sizes ranging from -1 to 1. */
    public double volumeRMS(double[] raw) {
        double sum = 0d;
        if (raw.length==0) {
            return sum;
        } else {
            for (int ii=0; ii<raw.length; ii++) {
                sum += raw[ii];
        double average = sum/raw.length;
        double[] meanSquare = new double[raw.length];
        double sumMeanSquare = 0d;
        for (int ii=0; ii<raw.length; ii++) {
            sumMeanSquare += Math.pow(raw[ii]-average,2d);
            meanSquare[ii] = sumMeanSquare;
        double averageMeanSquare = sumMeanSquare/raw.length;
        double rootMeanSquare = Math.pow(averageMeanSquare,0.5d);
        return rootMeanSquare;
    }Of course, you will need to get directly into the sound data streams then convert the signal to PCM, split the channels and scale the values to a range of -1 to 1 to use that exact method shown. ;)

  • How To Get The Total Delivered Quantity of a Sales Order

    Hello All,
    I have a requirement of getting the total delivery quantity of the sales order .I have checked it in LIps table but I am getting partially delivered quantity for a schedule line item.Can any one tell me how to get the total delivered quantity.
    Regards,
    Pavani.

    Hi
    Check the Table:
    VBEP  - Sales Document: Schedule Line Data.
    Inside the table check the Quantity Fields.
    Regards,
    Sreeram

  • How to delete the total entries in ztable

    Hi ,
    How to delete the total entries in ztable...
    code pls.
    regards,

    Hi Venkat,
    pls see below records,
    Plant  Material                       Alternate material
    3770  00000000000126875          2020202
    3770  000000000005999335        2020202
    3770  117196                           2020202
    3780  00000000000126875           2020202
    3784  00000000000126875         2020202
    3784  000000000002809336       2020202
    3784  000000000005999335        2 020202
    3789  00000000000126875            2020202
    if  i write below syntax ,
    delete from ztable where matkl = '2020202'.
    all records contains  matkl = '2020202' will be deleted ??
    pls. reply.

  • How to show the quantity in decimal in MIGO

    Dear expert,
    How to show the quantity in decimal in MIGO?? for example in material BOM the quantity is 12.480 but the quantity in MIGO is 13. it's automatically rounded.
    what should I do to show the decimal point in MIGO?
    Thanks
    Pauline

    Hi,
        Please check in su3 -
    defaults (Tab) -
    Decimal Notation.
        Change the decimal notation and logoff and login to apply the changes.
        I think it may help you.
    Regards
    Sreedhar Reddy

  • How to get the total number of pages printed in a report?

    Hi All,
    I have a requirement where I need to print a frame of fields only in the last page. Unfortunately I cannot use the 'Print Object On' property as it doesnt work in my case. So, I am planning to write a format trigger on the frame to return TRUE if the page is the last physical page. Now, I need to know how to get the total number of physical pages that will get printed in the report so that I can use this to manipulate the frame. I was planning to use the 'Total Physical Pages' built-in, but it seems like I can just use it to print in a field and I can't use this field's value anywhere in the plsql code (formula column function/format trigger) in the report. Is there anyway to get the total number of pages printed in the report which can be used in the report plsql code?
    Thanks,
    Srini.

    i found the solution, thanks

  • How to get the total pages in ALV report?

    Hi guys,
    Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.

    automatic display total page.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    r

  • How to know the total page number of the standard report

    How to know the total page number of the standard report?
    If I insert a graph, a table, or text into the end of the standard report, how to know how much space is left for the current page?

    Hello Net,
    Unfortunately, we do not have any VIs in LabVIEW that can figure out the number of pages of a standard report. However, with the use of ActiveX calls you can achieve this task. Here are a couple of discussion forums which discuss this:
    Excel Page Numbering with ActiveX:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=194479&requireLogin=False
    Number Pages in Word Report:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=162972&requireLogin=False
    There is also great documentation on using ActiveX on msdn. You can search this document for page number objects. Here is a link to this:
     http://msdn2.microsoft.com/en-us/library/aa223048(​office.11).aspx
    Please refer to these links. If you still have questions please feel free to let us know so we can assist you.
    Thank you
    Best Regards,
    Dominic L.

  • How to show the checked-out symbol in list of files in a folder

    Hi,
    When the folder is selected it is showing all the files in that folder. But, the user would not know which file had been checked out. In general it should show the lock symbol (As similar to Documentum, webtop) when a file had been checked out by some other user.
    How to show the lock/key column in list of files. Any other way to find a file had been checked out or not instead of going into the content information.
    Also, how do we add additional columns like author etc... to the list of files screen in UCM?
    Please help

    You should double check, but I don't believe that the check-out info is in the resultset. Because that information isn't available, the state of each row in the search results table cannot be defined. So, the first hurdle would be to add that info to the dataset.
    The second hurdle would be to alter the UI to leverage that info (e.g., the key icon when checked out).
    If you're looking to alter the folder views, then look to the COLLECTION_DISPLAY service & related template. Other views (e.g., search results) have different templates and backing services.
    -ryan

Maybe you are looking for

  • "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio

    Hello XI guru, I am configuring RFC to File scneario where i am using BAPI as Source. When i run this BAPI in se37 it gives me short dump stating "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException: Please help. Also I want t

  • Multiple DB files clean migration (follow up to my decommission question)

    So I have requested help standing up a new environment and phasing out an old one since it was "all messed up" after spending some time digging into it it looks like best practice was followed (which I don't know how I missed this after reading throu

  • OLE2 Excel File Save as password protected

    Hi All, I would like to save an Excel File as Password protected. This File is created by OLE2. How can I do this? This is the Coding, how I save the File--> CALL METHOD OF ls_wbook 'SaveAs' EXPORTING #1  = p_file. Thanks for the Answers... Bye Besi

  • UNABLE TO IMPORT THE IDOC IN XI

    hi We have extended IDOC INVOIC.INVOIC02.ZINVOICO2EX with a custom segment. But when we try importing the same in XI it gives the following error: + Error: IDoc type INVOIC02 contains errors (unable to read segments) We are unable to understand the r

  • How to obtain JRE programmatically? eg via http or ftp

    hi, as part of our product build process we need to obtain java run-times for win, sol and linux, and of many versions and minor releases. At the moment we do this by hand installing the JRE and rezipping and various other forms of munging (all withi