Adding of values problem in the report

Hi All,
I have a reporting requirement like below.
Object 1                Object 2                 Ob1 + Ob2
$ 1,534,080                $ 294,697                $ 294,698,302
$ 2,750,761                $ 0                       $ 2,751
$ 715,028                $ 38,611                $ 38,612,200
$ 95,337                $ 0                       $ 95
$ 107,712                $ 0                       $ 108
$ 5,202,918                $ 333,308                $ 333,313,456          Totals
But the total of the totals should be  * 5,536,204 * but instead of this I have $ 333,313,456
I tried for the option before aggregation in the calculated Key figure.
How can I solve this problem?

Hello
Actually if you will see the total of OBJ1 and OBJ2 row wise, that is also wrong. So first check out the formula you have written to calculate the addition of obj1 and obj2. When it will be correct, result row will definitely show correct value.
$ 1,534,080           +     $ 294,697  = $ 294,698,302 (is wrong).
Here, I think you are dividing Obj1 values by 1000. If you will see this row
$ 95,337           +     $ 0              =                      $ 95
Here obj1 is value is divided by 1000 then only result is coming as $95.
So check out the calculation.

Similar Messages

  • Adding a push button on the report toolbar

    adding a save button on the report toolbar, so that after clicking the button, the data fetched on the report will be stored in the application server.

    Hi
    to automate this process ,best way is to create a Z rport and there u can submit this sap standard report and get its output into an Internal table and then u can write this internal table to application server via following demo code -
    this is code for both (download /upload),u can not use CG3y and CG3z as u want to do it as a background job ..
    *& Report ZGILL_AS *
    REPORT ZGILL_AS message-id rp .
    tables: pa0001,pa0002.
    select-options s_pernr for pa0001-pernr no intervals MODIF ID XYZ.
    parameters: p_dwnld AS CHECKBOX ,
    p_upld AS CHECKBOX DEFAULT 'X'.
    parameters: P_DSNI(75) TYPE C MODIF ID ABG DEFAULT
    '/usr/local/sapdata/amit.dat' LOWER CASE.
    data: begin of itab occurs 0,
    pernr(8),
    sp1(1) value ',',
    werks(4),
    sp2(1) value ',',
    persg(1),
    sp3(1) value ',',
    persk(2),
    end of itab.
    data: s_eof(3).
    start-of-selection.
    if p_upld = 'X'.
    OPEN DATASET P_DSNI FOR OUTPUT IN LEGACY TEXT MODE.
    PERFORM FETCH_DATA.
    STOP.
    elseif p_dwnld = 'X'.
    OPEN DATASET P_DSNI FOR INPUT IN LEGACY TEXT MODE.
    IF SY-SUBRC NE 0.
    MESSAGE E016 WITH
    'Error opening seq. file, RC:' SY-SUBRC.
    EXIT.
    ENDIF.
    CLEAR S_EOF.
    DO.
    PERFORM FETCH_file.
    IF S_EOF EQ 'YES'. stop. ENDIF.
    ENDDO.
    endif.
    END-OF-SELECTION.
    if itab[] is not initial.
    perform print_file1 tables itab.
    else.
    write:/ 'No records exists'.
    endif.
    *& Form FETCH_DATA
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_DATA .
    SELECT * FROM PA0001 WHERE PERNR IN S_PERNR.
    MOVE-CORRESPONDING PA0001 TO ITAB.
    TRANSFER ITAB TO P_DSNI.
    APPEND ITAB.
    ENDSELECT.
    CLOSE DATASET P_DSNI.
    ENDFORM. " FETCH_DATA
    *& Form FETCH_file
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_file .
    READ DATASET P_DSNI INTO itab.
    append itab.
    clear itab.
    IF SY-SUBRC NE 0.
    S_EOF = 'YES'. EXIT.
    ENDIF.
    ENDFORM. " FETCH_file
    *& Form print_file1
    text
    -->P_ITAB text
    FORM print_file1 tables P_ITAB structure itab .
    write:/2 'EmpNo',
    14 'Personnel Area',
    34 'Emp Group',
    47 'Emp SubGroup'.
    skip 1.
    loop at p_itab.
    write:2 p_itab-pernr,
    14 p_itab-werks,
    34 p_itab-persg,
    47 p_itab-persk.
    skip 1.
    endloop.
    ENDFORM. " print_file1
    <b>Reward if usefull</b>

  • Added new key figure in the report

    Experts,
    I have added new key figure in the report .If i display this key figure value in the report it is populating correct value with ERROR(example 22.5 ERROR).The report is on the multiprovider .i have check the value for this in multiprovider it is populating correctly .There is no calculation in the report for this .While extracting in to report i am getting this. Help me to resolve this issue.
    Thanks
    Murali

    Hi,
    I have already created a formula like NODIM(Key field).that only i am using .
    and mapping I did in this way. I went to multiprovider and I have selected this key figure and right click and select (assign) then I have click on create proposal for all infoobjects option.
    Please suggest any thing need to do.
    I am sorry .I did not understand the lonterm solution suggested by you .what is UOM .Please tell me how to map.can you pls tell me clearly please
    Thanks
    Murali

  • Adding a stored Procedure to the Report

    Hi,
    I am developing a report using crystal plugin in eclipse.I have problems in adding a stored procedure to the report .I write the following command in SQL SCRAPBOOK dbo.StoredProcedure @Param1="param1",@Param2="param2",@Param3="None" and run it. It runs successfully ,but when i try to add it to report nothing is being added to it.
    I am using a Sybase database and driver(com.sybase.jdbc3.jdbc.SybXADataSource)
    Any suggestions regarding this would be of great help.
    Thanks in advance
    Siva
    Edited by: Siva_velicheti on Jun 1, 2010 12:10 PM

    Hmm, not sure about stored procedures, but you can get SQL queries to work like below....
    @method to get ResultSet from SQL query with user, pwd, and dbConnectionInfo
    @param query, scrollType, user, password, dbName, db
    @throws SQLException 
    @throws ClassNotFoundException
             private static ResultSet getResultSetQueryDBInfo(String query, int scrollType, String user, String password, String dbName, String db)
             throws SQLException, ClassNotFoundException
                  String DBUSERNAME =  user;
                  final String DBPASSWORD = password;
                  final String CONNECTION_URL = "jdbc:oracle:thin:@" + dbName + ":1521:" + db;
                  Connection connection = DriverManager.getConnection(CONNECTION_URL, DBUSERNAME, DBPASSWORD);
                  DatabaseMetaData meta = connection.getMetaData();
                  System.out.println("getResultSetQueryDBInfo - Connected to URL : " + meta.getURL());
                  System.out.printf("getResultSetQueryDBInfo - as user: %s\n", meta.getUserName() );
                  Statement statement = connection.createStatement(scrollType, ResultSet.CONCUR_READ_ONLY);
                  System.out.println("getResultSetQueryDBInfo method - executing query: \n");
                  return statement.executeQuery(query);

  • Column Headings in the report and adding an extra field to the report

    Hi All.
    I had an issue like i need to put column headings for a report and I want to add an extra field to the report.
    The problem here is that the report was actually cloned from a Query.At the time of cloning,they forgot to add the column headings.
    Now we need to add the column headings for the same.How can we proceed for this and where we need to add our code?
    How to add an extra field  to the existing report?
    Any pointers will be very much helpful.
    Regards,
    SSR.

    Hi,
    you can get this done in 2 ways:
    1 - Change the query to add another column and the re-generate the report
    2 - If changing query is not possible, you can change the report it self for adding extra field. If you look at the code, it will be more like normal ABAP code. you can easily modify it (If you are ABAPer) for your additional requirements.
    thnx,
    ags.
    Edited by: Agasti Kale on Jun 12, 2008 6:26 PM

  • '&' character creating a problem in the reports query

    Hi
    I am facing a problem with the '&' character in the reports
    The top level reports return data .One field in the top level report contain certain values that have '&' character in it.
    When we navigate to the second report,it says "No Data" .
    On checking the query at the backend,it displays data as soon as we comment this particular "WHERE" clause containing the '&' character
    EG:WHERE Name ="a&b"
    the query takes the &' character in "Name" column as an input fileld and hence it fails.
    I checked some blogs on this.But all explains on using SET define off/Or use CONCATENATE to iinsert this kind of data
    But how do we make the server understand to read this &' character also as a normal text instead of taking it as an input parameter?
    Is there anything that can be done at the OBIEE RPD level?
    Thanks in advance

    Hi,
    Refer the SAP Note – 137601
    Or,
    You have to upgrade the Kernel. Check the old patch number in ur system, upload the latest patches & down load from Market Place. Consult your Basis Consultant
    Regards,
    Biju K
    Edited by: Bijay Kumar Barik on Mar 27, 2008 8:25 AM

  • How to display multiple prompt values selected, in the report

    Hi,
    I have a LOV : SELECT DISTINCT CO.V_MOVEMENT.ORIGIN_BRANCH_CODE FROM CO.V_MOVEMENT ORDER BY 1
    and a parameter associated with it which is multiple selection enabled. The parameter name is P_BRANCH.
    When I am displaying P_BRANCH at the top of my report (RTF), it's showing only one value whereas I need to display all the selected value as Comma Separated.
    Please help.
    Thanks & Regards,
    Antara

    The other option to fetch all the selected values to the report (RTF) is to create a dataset for the field and in the template create a repeating group for each value.
    Eg:
    1) The SQL is : ( In SQL Server, where :P_S_ORIGIN_BRANCH_CODE is Prompt )
    SELECT DISTINCT
    :P_S_ORIGIN_BRANCH_CODE as P_BRANCH
    2) XML is :
    <DATA_DS>
    <G_1>
    <P_BRANCH>RTM</P_BRANCH>
    </G_1>
    <G_1>
    <P_BRANCH>ABC</P_BRANCH>
    </G_1>
    </DATA_DS>
    3) In report we can display the values as below:
    RTM,
    ABC
    But The Required Output in RTF is : (Values seperated by ",")
    RTM, ABC
    Your help would be highly appreciated.
    Thanks & Regards,
    Antara
    Edited by: user450412 on Oct 10, 2011 4:11 PM

  • Implicit Fact column creating problem to the reports.

    Hi Friends,
    I have two reports from same subject area from two different facts F1 & F2.
    I have created one implicit column, as it is unable to judge from which fact it needs to build the query. So, it is genarting query from fact F1.
    I have created one logical column in the fact and marked it as Implict column in presnenation layer.( as we the process)
    But the problem is, for both the reports it is using same implicit column and it is generating the query with only one fact F1.
    It is excluding the other fact F2.
    One report it shoud use Fact1 and other report it should use Fact2.
    PLease hep me in regarding this,
    Thanks & Regards,
    Kalyan J V

    Kallu wrote:
    Hi Friends,
    I have two reports from same subject area from two different facts F1 & F2.
    I have created one implicit column, as it is unable to judge from which fact it needs to build the query. So, it is genarting query from fact F1.
    I have created one logical column in the fact and marked it as Implict column in presnenation layer.( as we the process)
    But the problem is, for both the reports it is using same implicit column and it is generating the query with only one fact F1.
    It is excluding the other fact F2.
    One report it shoud use Fact1 and other report it should use Fact2.
    PLease hep me in regarding this,
    Thanks & Regards,
    Kalyan J VFrom my understanding, implicit fact column's are set a subject area level and not dimension/fact level. So the fact table you have set for implicit fact will be used in both the reports. Why dont you just drag the second fact into the report and hide it, if you are not trying to use the fact 1 that is setup as implicit fact?

  • Re: Date related problem in the report parameter

    Hi Friends,
    I am done a report and i registered the the report in the and for this report i had given two parameters 'Date_from' and 'Date_to' for this two dates i had taken value set as 'Date' which is None type value set and contians 9 Characters.
    My probelm if i give values for this parameters
    Date_from value is 21-JAN-08
    Date_to value is 11-Mar-08
    it is showing the error like this
    'please choose a low value that is lower than the high value'
    it is considering the 21 and 11 numbers first it is not considering the
    months.
    please reply any one to this asap.
    Thanks In Advance!!
    Thanks
    Anushka Valluru

    Hi Chiru,
    Thanks for your reply and i also tried with this but
    i am getting error becuase in my query in the where
    clause i used like below
    WHERE (TO_DATE (ldate, 'DD-MON-YY') BETWEEN
    NVL (TO_DATE (:p_date_begin,'DD-MON-YY'), TO_DATE
    (ldate, 'DD-MON-YY') )
    AND
    NVL (TO_DATE (:p_date_end,'DD-MON-YY' ),TO_DATE
    (ldate, 'DD-MON-YY')) )
    so it is not taking the dates, in standard date, it
    is taking total time also and the date format is also
    different.so what i have to do?
    please reply for this asap
    Thanks
    AnushkaAnu,
    Can you post your entire query? How did you define your exectuable?
    The standard date has the date and the timestamp. You need to substr and get the date part.
    Example:
    1) use the FND_STANDARD_DATE value set.
    2) use the following select statement in the default value of your date parm
    select to_char(trunc(sysdate),'DD-MON-RRRR')from dual
    3) Where ever you are capturing each of the dates in your query (like your begin/end dates), use the following:
    to_date(substr(I_date,1,10),'RRRR-MM-DD') --replace "I_date" with your date
    --replace date mask with your date mask
    Hope this helps...
    Thanks,
    Chiru

  • Problem Modifying the reports

    Hi friends,
    I changed the name of my Business Model in Admin tool.
    Now whenever I'm trying to modify my previous reports, I'm not able to access the columns there and it gives me the following message on the left.
    "Either you do not have permission to use the subject area "ABC" within Answers, or the subject area does not exist."
    Please help

    This is a problem that I believed Oracle fixed with 10.1.3.4.
    In previous versions, you will need to replace the columns. (An alias is created so if there is no change to the design, the reports would run fine. But when you try to make modifications to the design is when the problem occurs.)

  • Adding a hidden column in the report

    i have to add a column to the existing form,the newly added column should not visible at the run time .whenever i am inserting the data into the form automaticallly the newly added column should update with the flag as 'N'.
    Note:i will not enter any data manually in the newly added column.it's automatically get the flag in backend

    i have 3 tables whenever i am updating the data into the first table automatically corresponding columns in to the other 2 tables should get updated.
    if i want put a condition like c1='y' c2='y' then it should update the data in all tables at a time.and
    if c1='y',c2='n',c3= some date at this time it should update according to the date.
    what should i do?
    can i use pre update or post update triggers if so how can i use them

  • Problems with the report export in PDF format

    Hi All,
    I am new to this forum.
    I'm developing a web application that uses Java Reporting Component (JRC) to display crystal reports.
    I have three problem:
    1) I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
    with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
    2) I want to print multiple reports one after the other to reduce the time (possibly joining two or more reports into a single PDF)
    3) I want to insert, in the jsp page filters, the number of pages to print from the same report (without
    opening it with Adobe Reader (Microsoft Word))
    Can anyone help me? or can give a simple java code to do the same.
    Thanks in advance.

    Hi, this works for me in 4.6B:
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
            BIN_FILESIZE            =
               filename                = i_pfad
               filetype                = 'BIN'
       IMPORTING
            FILELENGTH              =
          TABLES
                data_tab                = i_att_cont
          EXCEPTIONS
               file_write_error        = 1
               no_batch                = 2
               gui_refuse_filetransfer = 3
               invalid_type            = 4
               OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE i000(zv) WITH 'Problem mit PDF Darstellung'.
      ENDIF.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = spoolnr.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                document           = ' '
                commandline        = i_pfad
                program            = 'AcroRd32.exe'
           EXCEPTIONS
                frontend_error     = 1
                no_batch           = 2
                prog_not_found     = 3
                illegal_option     = 4
                gui_refuse_execute = 5
                OTHERS             = 6.
      IF sy-subrc <> 0.
        MESSAGE i000(zv) WITH 'Acrobat Reader nicht gefunden!'.
      ENDIF.

  • Filter problem in the report

    Experts,
    We have a problem with Filter on Costcenter taking very very long time . When we click on Filter button  on Cost center after executing a BW report, then a new window opens and nothing happens after that with a blank white screen in the filter window.  We have tried so many options to improve performance but only one thing worked out as a work around.
    I have deleted enteried in the master data table using TC SE14 and then reloaded master data. Then filter on this working now with in 1 min. But we have process chains running every day loading Master data .Once these process chains finish again when we filter on Cost center on the next day, now the problem still exists , takes long time to for filter window to open up. Is there any way to delete master data entries delete automatically. Any advice appreciated .
    Thanks

    Hi Kiran,
    Is that u are doing the master data full upload?
    Try to do delta loads.
    If it is the client specific. Create a process chain to delete the same master data contents. and schedule the process chain to run daily night or just before the master data loads happen, so that it will not affect the runtime. Else have to delete the same manually.
    Hope this helps u.
    regards,
    Kishore.

  • The report does not accept the value for apps.fnd_profile.value('USER_ID')

    Hi,
    I followed the below note and added a report to my SSHR menu.
    How To Add A Report To A 11i Self Service Menu [ID 334847.1]
    In my report , I have a condition in the query
    and a.created_by =apps.fnd_profile.value('USER_ID')
    When the report is submitted as a request , it works fine., however the same report when called from the self service page does not accept any value for apps.fnd_profile.value('USER_ID') .
    Is there a workaround to handle this problem.
    regards

    hi,
    I had already tried the option apps.fnd_global.USER_ID too.
    However it does not accept the value for apps.fnd_global.USER_ID.
    We want to call the reports in SSHR using oaf and at the same time the records that are pending for approval created by the employee should only be visible.
    regards
    Maya

  • Not able to view the values on the report viewed using Query Report Viewer

    Hi all,
    There seems to be some unknown problem with the Report Template I have prepared and uploaded on PIA XML Publisher. When I run it with some ID set, it doesn't seem to show the values from the Data I give. For example if I have a field called ChartField in my report Template, It doesn't seem to get populated when I do SetID.
    Why is it so?

    Hi all,
      select bdmng from resb into corresponding fields of table it_stpo2
                for all entries in it_stpo
                 where matnr = it_stpo-idnrk
                 and xloek ne 'X'.
      loop at it_stpo2.
        move-corresponding it_stpo2 to it_stpo.
        append it_stpo.
      endloop.
    In the above code, m able to fetch the records in the table it_stpo2. but the data is not gettin populated in the final internal table it_stpo. Both the internal tables it_stpo & it_stpo2 are same.
    The data is gettin moved from it_stpo2 to it_stpo but only upto the header level. its not gettin appended in the table it_stpo even after using append stmt.
    Plz help me to resolve this issue. its urgent.
    Rgds,
    Purva

Maybe you are looking for