Sum of amount field in the Query

Hello folks,
I have a amount field in the query, along with the amount field I also need to show sum of all the rows for this amount fields, can some one guide which is best way of doing it?
Thanks,
KK

Thanks for the response's...Rama, Prasad and Sandesh!
I have changed the Property of the Amount field (SAP Standard Infoobject) to Calculated Result as 'Summation' but when I tried to save the changes in Query designer I am getting following error
runtime error '91'
Object variable or with block variable not set
runtime error '4XX'
ActiveX component can't create object
And its disconnecting from BEX Server...how can I resolve this error?
Thanks,
KK
Edited by: kumar K on Aug 21, 2008 10:46 AM

Similar Messages

  • Adding up of amount fields in the xml payload

    HI ,
    I have a issue on hand in mapping .
    I am using message mapping to map the source to the target.
    The issue is I have a item data in the source message which contains the Amount field . also it has some charge nodes also under it which also has a amount field.
    what i need to do is to add all the amount fields from the charge item into the amount of the item field and then map it to the target.
    the Source struct is some what as below
    Item
      |->Amount
      |-> ChargeItem
            |-> Amount
      |-> ChargeItem
            |-> Amount
    Item(2)
      |->Amount
      |-> ChargeItem
            |-> Amount
      |-> ChargeItem
            |-> Amount
    The target required is somewhat like below
    Item
    |-> Amount (item(amount) + charge (amount))
    Item (2)
    |-> Amount (item(amount) + charge (amount))
    Hope u can get the issue
    Thanks
    Nikhil

    Hi Bhavesh,
    Thanks for the reply. but i have a question.
    this will deal with the amount of the charge item but what about the amount of the amount field in item.
    how can we take care of that too. as cannot map more than 1 field to the target.
    and more over we have to add that field too to the sum of charge item
    Thanks
    Nikhil

  • How to club the amount field for the particular customer from file

    Hi ,
    In my BDC i am getting the Amount field which is need to be put in the Header data . For 1 Customer there are more than 5 line in amount field in the Excel file.
    For the Particular Customer , I need to club all the amount ffield and put it into the Heade data for the customer.
    How to do this .
    Thanks

    got answer

  • How to view/use 0costcenter txt fields in the query

    Hi,
    How to use the fields defined in the text table (/BI0/TCOSTCENTER) of 0costcenter. I want to be able to include them as fields in the query I am configuring and I don't see them available for choose from in the Query Designer. The cube that I am using is CO-OM-CCA(cost and allocation), standard cube from the business content. Do I need to include them separately in the dimension of the cube first to be able to use them in the report? The fields that I want to use are DATETO, DATEFROM, CO_AREA and COSCENTER. I assume description is already available in the display tab of the query designer tool.
    Thanks,
    Sharon

    Hi,
    In the Query designer, select the characteristics Cost center in the Rows/ Columns tab.
    On the display properties tab there are display options available,
    1. Key - Will display cost center number only
    2. Key and Text - Will display the CC number and the associated text.
    Selecting the second option will solve your problem.
    Also check for the same in Business Explorer Tab of the info object.
    Regards,
    Shyam.

  • How to compare two amount colomns in the query ?

    Hi,
    I need to compare two amount colomns in the query and based on that i need to change the color of the colomn
    Is it possible by using exceptions.if yes please tell me how to do it.
    Regards
    Ansari

    Hi,
    you can give this a try:
    1) Create a formula keyfigure (Keyfigure A> Keyfigure B)* 1+(Keyfigure A< Keyfigure B)* 0, so here you get value as either 0 or 1,
    2) Hide this Formula Keygiure for display in the report, and create a exception on this Formula keyfigure for its value 0 or 1 with the desired colors.
    3) While defining the exception on the 3rd tab we get the option to specify the Columns for implication of this exception, their you can specify the desired 2 Keyfigures to be highlighted with the colors.
    Hope this helps ..
    Regards,
    Umesh.

  • Keyfigure value by comparing 2 date fields, in the query designer.

    Hi all,
    Could any one please intimate, how to display the key figure result with the comparison of 2 date fields.
    We are having "Completed Date" say(CDATE) and "Deadline Date"(DDATE) values in the report as time characteristics, dervied from the CRM system.
    Now we need to compare the values as:
    CDATE <= DDATE, then only consider this under "Meeting Planned Date"(Key Figure).
    Could you please intimate, how to display the key figure value, by using the code at  the query designer level.
    Thanks & Regards,
    A.V.N.Rao

    Hi Rao,
    Simple create two formula variables with replacement path from these two date fileds,then create a formula then do the comparison
    Eg:
    ZVAR_CDATE  WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ CDATE
    ZVAR_DDATE  WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ DDATE
    CREATE A FORMULA FORMULA1: IN THE FORMULA BUILDER AREA DO THE COMPARISON.
    Thanks & Regards
    Ramsthota

  • How to set "like" field of the query in statements

    Hi,
    Im trying to set the "like" field of the statement.but it is not executing as expected.Could anybody please tell me,"how to set the like field in statements.
    Here is my code.
    PreparedStatement psum=con.prepareStatement("select count(bill_amount) from master where bill_date like ? and whos_bu=?");
    String myStr=month+"/??/"+year;
    psum.setString(1,myStr);
    psum.setString(2,employeeTray[1]);
    ResultSet rs=psum.executeQuery();

    Tnx a lot vidyut .using % is working.
    Could you plz tell me why the previous one using question mark is not
    working. using quesion mark is correct as per the query syntax.and also i tried with asterisk,it is also not working.
    ps:have some duke dollars.

  • How to get max date field in the query

    Hi,
    We uploads the data into the cube every week.
    Basically we are planning to put some ticker on the query. This ticker will show the user, upto which date the data is available in the cube.
    I want the query, which will show me only the maximum date (maximum 0calday) from the infocube in the report.
    This in turn, I will use in the ticker and make use of it.
    Can anyone please help in making this query.
    Thanks
    Ramesh Ganji

    if 0CALDAY is used as a characteristic then you have to convert that as a key figure using a replacement path variable.
    Please see the below link for changing 0CALDAY as a key figure using Replacement path
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    https://websmp106.sap-ag.de/~sapdownload/011000358700001963972003E/HowToCalcWithAttr.pdf
    Now you have to create an exception "Top N Rows" based on the replacement path variable created above.
    This will solve your problem.
    Regs
    Gopi.
    Award points if it helps ...

  • Validations on table control (Sum of amount field shuold not cross actual amaount))

    Hi Experts,
                      I want to Provide Validations on Table control with Wizard (it should be like when i enter  percentange  in one column  it will caluculate the amount and show it in another column and the sum of that Amount Should not cross the Actual amount).

    hi Jim,
    In the PAI of the Screen A ...
    when sy-ucomm = 'BACK'.
    Transfer  the values in the table control to an internal table itab.
    in the PBO of Screen B.
    Move the values in itab to table control.
    Thanks,
    Kasiraman R

  • Sorting of Date field in the SQL Query useing ORDER BY

    Hi
    I am facing a problem when I am getting the results of a query from the ORacle 8i database using jdbc connection.
    The query is having a date field and I have to sort the query results using ORDER By for the Date field. The query is giving exact results in the SQL PLus interface.
    When I am getting this results in the GUI where servlets are being used an Exception is coming as not supported RefreshRow method.
    If anyone has faced this problem and have got the solutions please let me know.
    thanks
    sulfy

    That doesn't sound at all like an SQL problem.
    More like you trying to do updates on the resultset which is not allowed ...
    send a some code (not to much pls :) and we'll be
    able to help more
    cu
    Spieler

  • Material description filled automatically as the sum of two fields

    Hello to all
    We can automate the process of the creation a new material doing that the field material description(MAKT-MAKTX) can be filled by the system before saving(not by the user) as the sum of two fields in the MARA table that the users will be filled manually.
    Is it possible using a user exit, field exit,....?
    Thanks in advance.
    Regards

    Hello to all
    We can automate the process of the creation a new material doing that the field material description(MAKT-MAKTX) can be filled by the system before saving(not by the user) as the sum of two fields in the MARA table that the users will be filled manually.
    Is it possible using a user exit, field exit,....?
    Thanks in advance.
    Regards

  • Spem fields are missing In the Query

    Hi this is a FI-Sales Query , under Material Group consists Bags,Caps,wallets ete like these lot of fields but in the query i am not getting all the field. in the query designer every thing is there some fields are not coming like Tie etc,But remeber this is Production Issue.I think u r clear with the issue.
    Any Help

    Hi kumar
    I guess what u are talking about is a values in the infoobject material group are not populating into the query.
    The problem is accordig to me is that the master  data for the material Group is deleted so thats the reason u can t find material group values in the query.
    If i have not understood the problem then restate the problem again in other words.
    If this solves ur problem then kindly assingn the points.

  • Amount field change in the doc.

    Hi,
    Can we change the amount field in the document after posting?
    i want to change the group currency mount.
    any possibility.
    Swapna

    Hi
    It is not advisable to change the amount after posting.
    As it updates in different tables and shows inconsistency.
    Using the Function module : FI_DOCUMENT_CHANGE, you can change the value - but it is not advisable.
    SKS

  • Alignment required in to display the  Amount field

    Hi Friends,
    kindly help me facing problem in to display the amount using decimal places also
    nedd to display the Pretax and aftertax amount for that purpose
    written below code . 
    it is picking amount fields but the amount is printing like this
    pretax                  aftertax
    $ 34.67               $     0.00
    $ 21.64               $   120.90->
    I need to display amount fields in order like, thens, hundreds, thousands like.
    read table lt_final into ls_final with key bplan = 'PRD'.
       if ls_final-pretx = 'X'.
         pretax = ls_final-eecst.
         write pretax to lv_pre.     "#EC UOM_IN_MES
         concatenate c_dollar lv_pre into lv_dollar.
          shift lv_dollar right deleting trailing space.
    *Pretax totals
         lv_pretax = lv_pre.
         read table out_pay1 with key name = 'PRETAX'.
         check sy-subrc = 0.
         out_pay1-value = lv_dollar.
         modify out_pay1 index sy-tabix.
         clear out_pay1.
       else.
         aftertax = ls_final-eecst.
         write aftertax to lv_after. 
         concatenate c_dollar lv_after into lv_dollar1.
          shift lv_dollar1 right deleting trailing space.
    Aftertax totals.
         lv_aftertax = lv_after.
         read table out_pay1 with key name = 'AFTERTAX'.
         check sy-subrc = 0.
         out_pay1-value = lv_dollar1.
         modify out_pay1 index sy-tabix.
         clear out_pay1.
       endif.
    Thanks,
    Sai

    Hi Daya,
    I would like to print two amount values with decimals.
    like :  like Pretax      after tax
                                   $      0.00
          $   3.45             $  120.67
          $   0.00             $      0.00
    I created using right justification one paragraph format with two tabs
    60.00              ch           Right
    68.00              ch           Right
    But my program output is comming like this.
    any one please help me.
    Program output:
    Pretax               after tax
                                   $    0.00
          $   3.45           $  120.67
          $   0.00             $    0.00
    Thanks,
    Sai

  • How can I autofill the "Amount" field in my eCommerce form using the "Total" from the shopping cart?

    I've found the tags to display the shopping cart summary elsewhere on the site, so I know there's a way to display the total, but I can't figure out a way to fill in the required "Amount" field in the eCommerce form used to process payments. I'd like that "Amount" field to be filled in automatically using the total in the shopping cart. Can anyone help? Thanks!

    You can use the shopping cart summary tag with custom layout.
    Here's the sample:
    <input type="text" value="{module_shoppingcartsummary template="/ModuleTemplates/Shop/cartsummary.tpl"}">
    Inside the shopping cart summary custom layout is a tag for total amount:
    {tag_currency}{tag_totalAmount} or {tag_totalAmountWithCurrency}

Maybe you are looking for

  • Reading in one line at a time.

    How can I read one line at a time? String sData = "One large string" StringReader reader = new StringReader(sData); StringBuffer buf = new StringBuffer(); String line = ""; while ((line = reader.toString()) != null) {//This line does not read one lin

  • Error in interest rate instrument-tcode:ftr_create

    Hi, I am facing error in ftr_create. Thanks Tushar

  • Payment reference not in payment run F110

    Dear FI'ers, We post an invoice with payment reference file BSEG-KIDNO filled.When we create payment proposal through F110 the field REGUO-KIDNO is not filled. When we go into detail the file REGUE_KIDNO is filled. How to create payment proposal with

  • Photo Collections

    Hello, I would like to add photos from a folder structure like this: photos\all\event1 photos\all\event2 .... I would like to have access for the screen saver to all photos in ths folder "all", but as well for diashows for example only to the photos

  • Contact photos

    heres my problem: when i go to set a contact picture, using an iPhone 6 with iOS 8, i go to contacts> pick the contact i want to add a picture> click edit> click edit on the picture> choose photo> pick the photo> move and scale it> hit choose> and th