Report Preview Mismatching with Database Value .

Dear Friends ,
I am designing very simple report with 7 columns . To check with report i just hard coded parameter value in command .  when i am executing same query in back end every thing is fine and i am getting correct result , but when i run from report ,value is mismatching . attached screen shot for your reference ,
please suggest . i am using oracle 11g and crystal report version 13.

Hi Sriram,
Have you tried using the same query (with hard coded values) in a Command Object in CR?
Do you see same values as the database?
Also, which value has been hard-coded in place of the prompt?
-Abhilash

Similar Messages

  • Task Total Slack Calculated values mismatching with the values in reporting database

    Hi,
    We require 'Task Total Slack' as one of the items in a report for Project Server 2010. We're developing the reports using SSRS wherein the SQL Queries are fired on the reporting database of Project Server 2010.
    We've come across a situation wherein the total slack values from reporting database for tasks are mismatching with the values that are seen in either PWA or Project Professional for total slack field. We also could not find a consistent factor by which
    the slack is multiplied for reflecting in the database in case the Slack in days was being converted into Hours in reporting databse.
    Is there a definite way that these values are being represented in reporting database which is quite different from the way these values are seen in Project Professional? Please help resolving this issue.

    Hi Abhijit PS,
    Can you give an example of the mismatch? Also you could tell us if this is happening for all tasks and all projects. Your concern may be seen from 2 different points of view:
    Either this is indeed a bug with a slack of 2 days for example in Project Pro and 4 days in your report from the reporting DB. In this case, you should check if the projects have been published correctly and if the Reporting DB is correctly sync'ed with
    the draft DB.
    Or it could be the normal behavior and it is just a matter of finding why. For example, the durations are stored in the DB in minutes, meaning that a 1day duration might be stored as 480 if you have 8 working hours in a day (8*60).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Standard Report for PO with Condition Value

    HI MM experts,
    I have checked all the existing standard reports ME2*, cud not find the report which gives the
    condition value means
    Eg; PO made on Pencils - Qty 10 NOs. @ Rs. 1/- (incl tax)
    condition value for the above is Rs.10, in std sap all reports are showing with net price only
    PO no. 45XXXXXXX dt 11.11.2011 - Pencil - qty-10 - Net price Rs.1
    Please let us know is there any Standard report which gives the condition value ie., Rs.10 along with or without Net price.

    Thank you! It is not meeting my requirement.
    I am looking for sap standard report to see the PO value or condition value which is nothing but
    Qty X net price. I do not want to touch the tables.
    for analysis purpose, i want to have the total PO value in any MM Standard Report.
    Today i am visiting every PO and looking at header data for PO value. or at item level Condition value.

  • Report for Asset with only values (No Zero values)

    Hi All
    There is requirement where in the user wants to genenerate report for assets with  values .There should not be Zero balance assets  included in the output. In short only with values in the asset master the report needs to be generated. Can one have any idea on this .
    regards
    Navin
    Edited by: Naveen Rao on Jan 22, 2009 10:04 AM

    Hi
    Can you  please specify the report name.
    regards
    Navin

  • Populating selectItems with database values

    I'm looking for an example of how to populate a combo box using the selectItems tag with database records. I'd like to be able to populate the item value and item label. I am able to build an array to populate this way, but can not find a good database example. Could someone point me in the right direction?
    Thanks

    public class SQLView {
    private SQLView() { } //Prevents instantiation
    public class Field {
    public static final String id = "id";
    public static final String name = "name";
    public class ProductCategory {
    public static final String select =
    "select id, name from ProductCategory order by name";
    DataAccess.java
    public DataAccess(String confEnvName, String dataSourceName) throws Exception {
    try {
    InitialContext ic = new InitialContext();
    Context envCtx = (Context) ic.lookup(confEnvName);
    DataSource ds = (DataSource)envCtx.lookup(dataSourceName);
    name = confEnvName + '/' + dataSourceName;
    con = ds.getConnection();
    } catch (Exception ex) {
    throw new Exception("Couldn't open connection to database: " +
    dataSourceName + ' ' + ex.getMessage());
    public ResultSet getResultSet(String statement) throws SQLException {
    PreparedStatement st = con.prepareStatement(statement);
    ResultSet rs = st.executeQuery();
    return rs;
    public List resultSetToSelectItems(String statement) throws SQLException {
    List list = new ArrayList();
    ResultSet rs = getResultSet(statement);
    try {
    while (rs.next()) {
    list.add(new SelectItem(new Integer(rs.getInt(SQLView.Field.id)),
    rs.getString(SQLView.Field.name)));
    finally {
    rs.close();
    return list;
    Catalog.java
    public synchronized List getCategoryList() throws SQLException {
    if (categoryList == null) {
    categoryList = dataAccess.resultSetToSelectItems(SQLView.ProductCategory.select);
    if (!categoryList.isEmpty()) {
    categoryId = (Integer)((SelectItem)(categoryList.get(0))).getValue();
    else {
    categoryId = new Integer(0);
    return categoryList;

  • BO XI 3.1 DeskI report Calculation mismatch in record values

    Hi ,
    I have an Calculation issue in one report after migrated from BO 5.1.6 to BO XI 3.1.
    After refreshing two reports parallelly, BO XI 3.1 report 1st 3 records of two columns are not at all there in BO 5.1.6 report.
    in XI 3.1 i am getting 3 more records compare 5.1.6.
    And out of that one column recod values is not matching with 5.1.6, but these record values Sum of total is matching.
    (Ex: Here is the report output im getting with mismatches
    BO XI 3.1         BO 5.1.6
    Age Value
    0        5             
    3        5
    4        5
    5        5
    6        5
    temp   5
    Total   5
    BO 5.1.6
    Age Value
    6         1
    temp   4
    Total   5
    I have checked for the filters,hided columns, formulas. Both are looking same.
    Cany anyone suggest me for a solution.
    Thanks in advance,
    Krishna

    Im trying to copy the output im getting again, format is getting changed after i submit
    BO XI 3.1               BO 5.1.6     
    Age     Value          Age      Value
    0     5          6     1
    3     5          temp     4
    4     5               
    5     5               
    6     5               
    temp      5               
    Total   5          Total   5

  • Populating apex item checkbox in report row based on database value

    Hi All
    I am looking for help setting an apex item checkbox to 'checked' depending on a record exisiting in a database and I would appreciate a little guidance.
    At the moment I have a report which looks a bit like this
    SELECT licence_user_identifier,
    description,
    licence_name,
    apex_item.checkbox(22,licence_id)
    FROM TABLE(SOL_LICENCE.F_RETRIEVE_ORG_LICENCES ( 121 ));
    4 columns and the last column is a checkbox called 'assign' and is used to assign the selected licence to a user(who is already displayed on the page in another table). There is save button which when clicked saves a record to the database if the checkbox is selected.
    However when the page is displayed the checkbox should be prepopulated/checked if there is a record in the database saying that the licence is assigned to the current user. I have created a page process to try and collect this information and populate the checkboxes on load - before header. However I am having difficulty referencing the apex_application item the corresponds to each row because when I use the FOR i IN 1 .. apex_application.g_f22.COUNT LOOP it only selects the item if it is checked. Can anyone point me in the right direction?
    here is the process I have to populate the checkboxes, it is not getting to my flow.debug as there are no selected checkboxes:-(
    DECLARE
    v_count     NUMBER;
    CURSOR getlicences (p_co_id so05.co_id%TYPE)
         IS
    SELECT     licence_id
    FROM     so05_cust_org_licences
    WHERE     co_id = p_co_id;
    BEGIN
         IF :p9_co_id IS NOT NULL
         THEN
              FOR each_rec IN getlicences (:p9_co_id)
              LOOP
                   --check if a record exists
                   SELECT     COUNT ( * )
                   INTO     v_count
                   FROM     so05_cust_org_licences
                   WHERE     co_id = :p9_co_id AND licence_id = each_rec.licence_id;
    --if the record exists populate the checkbox
                   IF v_count > 0
                   THEN
                        FOR i IN 1 .. apex_application.g_f22.COUNT
                        LOOP
    wwv_flow.debug ('bbbbbbbbbbccccccccccandwearein' || v_count);
                             IF apex_application.g_f22 (i) = each_rec.licence_id
                             THEN
                                  apex_application.g_f22 (i) := 1;
                             END IF;
                        END LOOP;
                   END IF;
              END LOOP;
         END IF;
    END;
    Thanks in advance
    Lynn

    Hi,
    Sorry my mistake. You can use the above link only to solve this problem, for this you have to use a hidden column to which you will assign 'Y' or 'N' as mentioned in that post.
    using that hidden column value you can fire your query accordingly.
    let's say your hidden column is f01 and checkbox column is f02 and the id column is f03, you can do like this
    create a process before your update process like this
    BEGIN
        -- Reset the hidden ADMIN_USER flag for all visible records to N
        -- Note: g_f01 maps to the hidden ADMIN_USER column
        FOR ii IN 1 .. APEX_Application.g_f01.COUNT
        LOOP
            APEX_Application.g_f01(ii) := 'N';
        END LOOP;
        -- Set the hidden ADMIN_USER flag for those records where the
        -- checkbox has been set by the user to Y
        -- Note: g_f02 is the checkbox column ADMIN_USER_CHECKBOX
        FOR ii IN 1 .. APEX_Application.g_f02.COUNT
        LOOP
            APEX_Application.g_f01(APEX_Application.g_f02(ii)) := 'Y';
        END LOOP;
    END;then write a new process positioning after above process
    if apex_application.g_f01 = 'Y' then
      your update query using id column (f03)
    else
      your delete query using that id column (f03)
    end if;hope this helps you.
    Thanks
    Tauceef

  • Report Template href with column value

    I have created a Report template and want to have a field that is a href with link to other page passing column value. I'm having trouble passing the column value. If I hard code the value the href code works. If I try to pass #1# or the column name with # surrounding the link doesn't work. Any ideas would be appreciated.
    This works:
    <td><img src="/i/edit.gif" border="0" alt="Edit Icon">
    </td>
    This doesn't:
    <td><img src="/i/edit.gif" border="0" alt="Edit Icon">
    </td>
    Thanks
    Mary Jo Al-Shihabi

    Hi Sergio, thanks I finally got it working using a call to javascript:popupURL.
    <td><align="center">#PORT_APP_ID#</td>
    Thanks
    Mary Jo

  • Report preview fails with very generic error

    I am working on a project that includes an SSRS project within a Visual Studio 2012 solution. The SSRS project was created in VS2008 and then brought into the VS2012 solution later. The other developer is able to preview reports just fine, but I can't.
    I believe I have installed all the necessary supporting software (Sql Server Data Tools, etc.)
    I am able to create and view reports in the designer, and I can even query data through the dataset. However, when I try to preview the report, I get a very unhelpful error:
    "An error occurred during local report processing. An error has occurred during report processing."
    All of the other forum messages I have found that have run into this error also have some further explanation of the error. I just get this, which leaves me with two questions:
    1) Has anyone seen this and managed to resolve it? If so, how?
    2) Is there somewhere else I can look, a log or something, to tell me what the error actually is?
    Thanks in advance,
    Geoffrey Callaghan

    Hi Geoffrey,
    If I understand correctly, you have meet this issue when you try to preview the report in SQL Server Data Tools.
    Based on the error message, it may be the report design incorrect caused this issue. As you mentioned, in general, it will have other information after the error message. Please make sure if there are any other information. We can create a simple report
    to check if also meet the same issue to judge if we have installed software correctly. If possible, please try to recreate the report to troubleshooting the issue.
    If the issue still persist, could you please post the dataset with data and .rdl file to us by the following E-mail address? It is benefit for us to do further analysis.
    E-mail:  [email protected]
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Run Reporting services 2005 with databases housed on SQL Server 2012?

    Hi, I have a RS 2005 install in which the ReportServer and ReportServerTempDB databases reside on a different SQL Server 2005 server. I am planning to upgrade DB server to 2012 and would like to keep SSRS as 2005.As a second phase I will upgrade SSRS2005
    to SSRS 2008. So I would be running something like this:
    Server A: SQL 2005 Reporting Services
    Server B: SQL 2012 database engine - housing ReportServer and ReportServerTempDB
    Is this configuration supported? 

    Hello,
    According to the
    BOL, Report Server service checks the database version at startup. If the report server is connected to a database that is an earlier version, the report server will update the database during startup.If you have a newer report server database, you
    cannot use it with an earlier version of a report server instances.
    In that case, the earlier versions of SQL Server Database Engine that can be used to host the SSRS report server databases. For example, In SQL Server 2005 Reporting Services, we can use either SQL Server 2000 or SQL Server 2005 to host the databases, for
    SSRS 2012, we can use SQL Server 2012,2008 R2,2008,2005.
    Based on my test, In the Reporting Services 2005 Configure Manager, we can create a new database on a remote SQL Server 2012 database engine and the Initialization is successful.
    In this way, the databases are created from the script file which installed with the Reporting Services instance, you can find the Catalog.sql and CatalogTempDB.sql  under folder C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer.
    However, when upgrade the existing ReportServer database and ReportServerTempDB database on the SQL Server 2012 by restore from a backup, we cannot use this existing database for Reporting Services 2005 and get the following message:
    The database version (162) does not match your reporting serivces installation.And the initialization failed.
    In your case, you can host the ReportServer database and ReportServerTempDB database of SSRS 2005 on SQL Server 2012 database enginer by create a new database from Reporting Services 2005 Configure Manager. But you cannot use the existing
    database which upgrade to SQL Server 2012.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Populate OIM Lookup With Database Values

    I am trying to figure out a way to populate a lookup in OIM with values from an Oracle database. For example, I have a table containing a list of departments with their department ID. I would like to pull these values into a lookup.
    The AD connector's GroupReconTask is very similar to what I want to accomplish. I'm hoping to be able to create an adapter or task that will do something similar.
    Has anyone been successful in attempting something like this or knows of a possible way?

    You need to write a Java class extending com.thortech.xl.scheduler.tasks.SchedulerBaseTask. Use Thor.API.Operations.tcLookupOperationsIntf's methods addLookupValue/updateLookupValue to add/update the lookup values. Check out the Javadoc for more on the same.
    Here is the doc link on how to create a schduled task -> http://download.oracle.com/docs/cd/B32479_01/doc.903/b32453/oimadm.htm#sthref302

  • Forming a report query dynamically with the value of an item

    Hi Gurus,
    We wanted to create a report based on the value of an item in the page.
    For example
    There is a text box named p1_table depending on the value of this item the query of the report should change
    1) when p1_table = emp then report query should be select * from emp
    2) when p1_table = dept then report query should be select * from dept
    I tried doing this using
    select * from :p1_table and select * from v('p1_table') , it is not working.
    Kindly help me in achieving the requirement.
    Thanks & Regards,
    Vikas Krishna

    Hi Vikas,
    You have to do this as a report based on a function that returns the query as a string. You build up the string dynamically in the function.
    Regards
    Andre

  • Report layout changes with  the values in it

    I he a standard report, but i want certain report rows to show up in red when a value of the row is null.
    I know you have to use different templates, but how or where do i need to put the condition to change report row templates?
    Thanks

    Use multiple row/column templates (there are up to 4 available in a report template), controlling which is used via the Row/Column Template 1 Condition and Row/Column Template 1 Expression etc, depending on whether it is a named column (row) template or a generic column template.
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#BABFFGGJ

  • Report-to-Report Interface problem with default values

    Hi all.
    I have RTR interface where target query has default values, so when I jump to target query it doesn't return whole data because of this default filter.
    Is it possible to remove this default filter in query in case it is executed through Report-To-Report?
    I still need this default filter then I execute target query separately.

    Dear Gediminas,
    Make sure that you have same infoobjects which are having default values present in the 2 queries.
    After createing settings in RRI...select that setting.....click on ASSIGNMENT DETAILS tab...
    Assign Type as how they are in 1st query...
    Assign selection type as how they are in 1st query...
    Assign GENERIC to the rest of the fields..
    Cintinue
    Save.
    Assign points if it is helpful.
    Regards,
    R.

  • Populating Database values into a combo box in STRUTS Framework

    Hi Guys,
    I am currently working on a STRUTS Framework project and I can't get much resources related to the problems that I'm facing.
    Currently I need to populate a JSP file's Combo box with database values. What I don't know here is the syntax used to in STRUTS framework to populate the Combo box with database values. Anyone with experience related to this topic, please kindly help me out.

    Struts doesn't define anything about the datab layer. You're free to implement how you will.
    Struts instead guides you into following an MVC pattern.
    You populate a combo box with values from a bean.
    So you need to set up a bean for this page to talk to.
    That bean can be populated from the database - but at that point you're in java/jdbc code - and away from the struts layer.
    My suggestions
    1 - Define a bean to represent the information from the database.
    2 - write a method that queries the database, and copies the data into a List of those beans. This will be your Data access layer.
    3 - in your action, call that method, and then set the list of beans as a request attribute. Or maybe as a property on a form.
    4 - use that list of beans to populate your dropdown box.

Maybe you are looking for