Problem with calculated textobject

Hi all!
I have a problem with a text object with the attributes:
Mode: sum
formular:
sumfunction: sum
sum block: block1
sum object: objet1 (numeric)
Sometimes, specially if the first record of block1 isn't saved, the sumobject shows
cryptical signs like '~--'. After commiting and requery the sum is correct.
Why does this happen???

Could it be your formatting? For example, if you specify 990 as your format, but the value has four digits, such as 1056, then you can get funny values.
Regards,
Robin Zimmermann
Forms Product Management

Similar Messages

  • OBIEE 11G - problem with calculating percentage

    Hi,
    I have a problem with calculating a percentage....
    I have a 2 measures Success and Failure
    where Success is a count(Response_key)
    Failure is a count(failure_key)
    I want Success/(Success+Failure) * 100
    I am getting this value as a 0
    Infact any column I take from the subject area and say count of that column and divide it by any integer say count(column1)/5 ,Say count of that column1 is 132 Eg: 132/5 , Its showing this value as 26.00 when I put decimal value to 2 , but it is 26.4...It is avoiding decimal values .
    So in my case success/(success+failure) in which Dr is greater than Nr . Since we get the value as 0.something . It is showing 0 value
    So , 0*100 it is showing me as 0%
    Can anyone please help me on this ??
    --Siri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes, you need to put cast in numerator alone to get the resultant output in double.
    You can mark the post as Correct since your issue is resolved now.
    Thanks

  • Problem with Calculated Key Figure and Acumulated

    Dear Masters,
    I am trying to use cumulated KF in a query. No problem with results. I just flag 'Cumulated'. However I need to use the value of each line in an operation. Let me illustrate it:
    Cumulated KF    KF1      FINALKF
    2                         2             2/2=1
    3 (2+1)                1              1/1=1
    5 (3+2)                 4             4/2=2
    6 (5+1)                 2             2/5=0.4
    As you can see above instead divide the KF1 by Cumulated value of a Line, the final result is always KF1/the value that would be the add value. The first line always is right because for the line 1 cumulated value has no accumulation value.
    Any idea?
    Regards,
    GilsonTeixeira

    Any idea?

  • Problem with calculated column, everything inc. NULLs appear

    Good morning,
    This one is tough.
    I have a dimension Category (with categories: Fruits, Vegies, Canned, etc.). And in my fact table I have field Expense. Then I decided to create calculated fields like "Fruits Expense" -
    CASE WHEN Dim."Category" = 'Fruits' THEN Fact.Expenses "."Expenses $ CY" END
    There're 2 problems:
    A) if the field Category isn't dropped in Answers there're many NULLS (all Exp values which don't belong to 'Fruits')
    B) If Category isn't there, there're even more NULLs - which don't look good at all - there're too many empty values
    Of course, it's possible to train users to use filters (is not null), etc. - but then it's really not what OBIEE is good at.
    Can someone suggest a better approach?
    I proposed in the beggining to create fields in the DB like "Expense Fruits" - but ut was deemed too complicated on ETL side.
    Thank you and have a wonderful OBIEE day
    UPD: OK, I want to rephrase it and make it easier. Except for using "is not null" filter- is there any other way to supress NULL values? I'm getting 12 empty ones and 1 i need. Is there anything I could do in order to supress showing NULL values by default. Thanks
    Message was edited by:
    wildmight
    Message was edited by:
    wildmight

    Thank you Nilanshu! Where have you been! I'm already seeing quite a few useful contributions. I'll try to go ahead and test your suggestions and I'll report what I've found.
    P.S> It works like a charm. Thank you
    Message was edited by:
    wildmight

  • Problem with calculated attribute

    I have created a calculated attribute on an Entity that derives its value from two persistent attributes.
    I am only interested in displaying the calculated attribute and not the attributes it is derived from.
    If I put the calculated attribute in a View object without the other attributes I will get an error ( (oracle.jbo.DMLException) JBO-26080: Error while selecting entity for AccountPosting) when displaying data from the View object.
    This error does not occur if I add the other attributes to the View object and it all works OK.
    Why is this? Surely the calculated attribute is only calculated at the Entity object layer, so what does the View object have to do with this?

    The Java datatype for the two Number attributes is Number
    When I switch to Integer or Long, I get an error but the stack is different.
    oracle.jbo.DMLException: JBO-26080: Error while selecting entity for SLEO
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:658)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5025)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3386)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2148)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:2079)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1774)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1032)
         at mypackage2.SLEOImpl.setDETAIL(SLEOImpl.java:113)
         at mypackage2.SLEOImpl.setAttrInvokeAccessor(SLEOImpl.java:144)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:945)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1241)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1150)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1111)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1086)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:833)
         at oracle.jbo.jbotester.JboTesterUtil.setData(JboTesterUtil.java:173)
         at oracle.jbo.jbotester.JBOFieldHelper.setDataValue(JBOFieldHelper.java:114)
         at oracle.jbo.jbotester.JBOFieldHelper.applyEdit(JBOFieldHelper.java:175)
         at oracle.jbo.jbotester.JBOFieldHelper.applyEditAndValidate(JBOFieldHelper.java:205)
         at oracle.jbo.jbotester.JBOFieldHelper$DefaultJBOFocusListener.focusLost(JBOFieldHelper.java:239)
         at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:172)
         at java.awt.Component.processFocusEvent(Component.java:5006)
         at java.awt.Component.processEvent(Component.java:4888)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:777)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:497)
         at java.awt.Component.dispatchEventImpl(Component.java:3506)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    ## Detail 0 ##
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]FOR UPDATE cannot be specified on a READ ONLY cursor.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:533)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5025)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3386)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2148)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:2079)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1774)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1032)
         at mypackage2.SLEOImpl.setDETAIL(SLEOImpl.java:113)
         at mypackage2.SLEOImpl.setAttrInvokeAccessor(SLEOImpl.java:144)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:945)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1241)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1150)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1111)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1086)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:833)
         at oracle.jbo.jbotester.JboTesterUtil.setData(JboTesterUtil.java:173)
         at oracle.jbo.jbotester.JBOFieldHelper.setDataValue(JBOFieldHelper.java:114)
         at oracle.jbo.jbotester.JBOFieldHelper.applyEdit(JBOFieldHelper.java:175)
         at oracle.jbo.jbotester.JBOFieldHelper.applyEditAndValidate(JBOFieldHelper.java:205)
         at oracle.jbo.jbotester.JBOFieldHelper$DefaultJBOFocusListener.focusLost(JBOFieldHelper.java:239)
         at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:172)
         at java.awt.Component.processFocusEvent(Component.java:5006)
         at java.awt.Component.processEvent(Component.java:4888)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:777)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:497)
         at java.awt.Component.dispatchEventImpl(Component.java:3506)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    ----- LEVEL 1: DETAIL 0 -----
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]FOR UPDATE cannot be specified on a READ ONLY cursor.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:533)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5025)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3386)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2148)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:2079)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1774)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1032)
         at mypackage2.SLEOImpl.setDETAIL(SLEOImpl.java:113)
         at mypackage2.SLEOImpl.setAttrInvokeAccessor(SLEOImpl.java:144)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:945)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1241)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1150)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1111)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1086)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:833)
         at oracle.jbo.jbotester.JboTesterUtil.setData(JboTesterUtil.java:173)
         at oracle.jbo.jbotester.JBOFieldHelper.setDataValue(JBOFieldHelper.java:114)
         at oracle.jbo.jbotester.JBOFieldHelper.applyEdit(JBOFieldHelper.java:175)
         at oracle.jbo.jbotester.JBOFieldHelper.applyEditAndValidate(JBOFieldHelper.java:205)
         at oracle.jbo.jbotester.JBOFieldHelper$DefaultJBOFocusListener.focusLost(JBOFieldHelper.java:239)
         at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:172)
         at java.awt.Component.processFocusEvent(Component.java:5006)
         at java.awt.Component.processEvent(Component.java:4888)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:777)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:497)
         at java.awt.Component.dispatchEventImpl(Component.java:3506)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Problems with calculation in table footer

    I’m working on a 'dynamic form’ with an expandable table (i.e. the user presses a button to add a new row), there are cells in each row for beginning month & ending month, plus an autocalc total field containing the formula: “ending – beginning +1” (which accurately calculates total months e.g. Jan-Dec = 12 months). There is also a ‘total months’ field in the footer which sums the row ‘total’ cells. The problem I have is that the user could add a blank row throwing off the total cell in the footer. Any suggestions to accomplish my goal of presenting accurate total in footer while ‘idiot proofing’ the form?

    A link to the your live test page would be much more productive here. 
    It's much easier for us to diagnose problems when we can see your page & images in our browsers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Problem with Calculations created in Analyzer Views

    Hi,I have to create a view looks as follows Y2001 5000 Act Bud Variance=================================================Sales 200 100 100(Act-Bud)Margin 300 400 -100(Act-Bud)Expense 500 600 100(Bud-Act)Here i am bring row names from one dimension andAct and Bud members from scenarion dimension. I created a calculation field i.e "variance" on screnario dimension.Is there any way to create this variance field as shown above. While calculating for sales and Margin rows i want to use "Act" - "Bud" and for Expense i want to use "Bud" - "Act".This is very much important from business perespective. Did anybody got this type of problem?.Do you have any suggestion?.I would appreciate any help given or any suggestions.Thanks a lot in advance..Regards..Rao

    The easiest way to solve this is to add a dynamic calc member in the Essbase outline for the variance calculation. You need to use the @var function and set Expense reporting tag for all expense accounts in the outline.-Magnus---Message Posted by meetrao   3/29/02 07:41---Hi,I have to create a view looks as follows Y2001 5000 Act Bud Variance=================================================Sales 200 100 100(Act-Bud)Margin 300 400 -100(Act-Bud)Expense 500 600 100(Bud-Act)Here i am bring row names from one dimension andAct and Bud members from scenarion dimension. I created a calculation field i.e "variance" on screnario dimension.Is there any way to create this variance field as shown above. While calculating for sales and Margin rows i want to use "Act" - "Bud" and for Expense i want to use "Bud" - "Act".This is very much important from business perespective. Did anybody got this type of problem?.Do you have any suggestion?.I would appreciate any help given or any suggestions.Thanks a lot in advance..Regards..Rao

  • Problems with Calculated Key Figure in Bex

    One of our super users have copied a query and trying to do some changes in the new query. In the Query designer, the person was directly dragging a Calculated Key Figure from the left hand side panel into columns and trying to change its properties (Currency conversion key is changed from 'Nothing Defined' to 'Monthly average rate' with variable entry.
    Then we get the error 'Abort system error in program and form SET_TCUR-02-' without even getting the variable popup window.
    Also when we check the Query properties, we observed that one variable entry (which is displayed in the target currency field in the properties) is displayed twice and came to know that this is the reason for the error.
    But why is that displaying twice there? Is there anything wrong in the way we had created the CKF? Do you have any document on how to use CKFs and RKFs?

    Check here:
    http://help.sap.com/saphelp_nw04/helpdata/EN/13/e072abaddb574284d22361f0b824bf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/6f/56853c08c7aa11e10000000a11405a/content.htm
    For Currency Translation "How to:, see here:
    http://help.sap.com/saphelp_nw04/helpdata/EN/d2/02223c5f00612be10000000a11402f/content.htm
    Thanks..
    Shambhu

  • Problem with calculating column total

    Hi All,
    I am using Oracle Jdeveloper 11g Release 2.
    I want to show the sum of salary in application. I have the following step to do this.
    *1.*
    I have written the following code in EmployeesViewImpl.java class:
    public Number getSalarySubtotal() {
    if (salarySubtotal == null) {
    salarySubtotal = new Number(0);
    RowSetIterator rsi = this.createRowSetIterator(null);
    while (rsi.hasNext()) {
    Row r = rsi.next();
    Number salaryTotal = (Number)r.getAttribute("Salary");
    if (salaryTotal != null) {
    salarySubtotal = salarySubtotal.add(salaryTotal);
    rsi.closeRowSetIterator();
    return salarySubtotal;
    *2.*
    I have also exposed this method as client interface on view object.
    *3.*
    I have also create a method binding on the page where I want on consume this method.
    *4.*
    The output text has the following expression: #{bindings.getSalarySubtotal.inputValue}.
    When I run the page, it is showing nothing.
    I don't know what is wrong with this approach.
    Any help will be highly appreciated.
    Thanks in advance
    Regards
    Bilal

    Are you trying to calculate the total salaries of employees? If that is the case you need this method at the Dept level.
    Have a look at this video:
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ImplementingTotals/ImplementingTotals.html?utm_source=dlvr.it&utm_medium=twitter

  • Problem with calcule in SD conditions

    Hello!
    I´ve been created a new formula in VOFM>Formulas>Condition values.
    In my include RV, i have this code:
    data: v_value type p decimals 6.
    Select * from konp into wa_konp....
    v_value = wa_konp-kbetr / wa_konp-kpein.
    Variables values are:
    wa_konp-kbetr = 5.13
    wa_konp-kpein = 1000
    But, after this calcule, v_value return 0.000001
    WHY??? What´s wrong in this code???
    I try to do this same code in another report and v_value return right result (0.005130).
    Please, somebody help me!!

    Hello,
    i´m trying somethings and just worst my situation.
    Look that examples:

    v_value = '5.13' / 1000.
    result: v_value = 0.000001

    v_value = '5.130000' / 1000.
    result: v_value = 0.005130

    v_value = '5.130000' / 10000000.
    result: v_value = 0.000001
    I don´t understand what happen...
    Please, somebody could explain me?
    Edited by: Rodrigo Kenji Matsunaga on Aug 31, 2009 8:55 PM

  • Problem with calculation in report.

    please let me know about below code . What can be possible errors .Because I didn't get true calculations . My purpose is to get ztab-pvprs for every material.
    CLEAR atab . REFRESH atab .
      SELECT smblnr sbudat z~matnr
             zwerks zbwart z~menge
        INTO (atab-mblnr, atab-budat, atab-matnr,
              atab-werks, atab-bwart, atab-menge)
       FROM mkpf AS s INNER JOIN mseg AS z
         ON smblnr EQ zmblnr
        AND smjahr EQ zmjahr
       WHERE s~budat IN lv_budat
         AND z~matnr = son_tab-matnr
         AND z~werks = son_tab-bwkey
         AND z~bwart IN ('101', '102')
         AND z~aufnr NE ' ' .
        IF atab-bwart = '102'.
          atab-menge = atab-menge * -1.
        ENDIF.
        APPEND atab.
        CLEAR atab .
      ENDSELECT.
      CLEAR malz_itab2 .
      REFRESH malz_itab2 .
      LOOP AT atab.
        malz_itab2-matnr = son_tab-matnr.
        malz_itab2-menge = atab-menge.
        malz_itab2-poper = atab-budat+4(2).
      uretim_miktari = uretim_miktari + atab-menge .
      append malz_itab2.
      clear malz_itab2 .
      ENDLOOP.
    loop at malz_itab2 .
          SELECT SINGLE * FROM mbew WHERE matnr = malz_itab2-matnr.
          SELECT  SINGLE *  FROM ckmlcr  WHERE kalnr = son_tab-kalnr
                                                 AND curtp = s_curtp
                                                 AND bdatj = s_bdatj
                                                AND poper = malz_itab2-poper
          x =  x + ( ckmlcr-pvprs * malz_itab2-menge ).
      if malz_itab2-menge > 0 .
            ztab-pvprs = x /  uretim_miktari.
          else .
           ztab-pvprs = 0 .
          ENDIF.
    endloop.

    Yusuf - Apologise for digressing but i looked at the select and it is not the best one. Couple of things:
    1. Should use "Into table" in the select and avoid select-endselect
    2. Loop and then select single shud be replaced by selecting mbew separately by "for all entries..." and then doind "read table...binary"
    Else you will have lot of performance issues in Production server.
    Regards,
    Shireesh

  • Problem with calculating measures in AWM

    Hi,
    We created dimensions and cubes in AWM (or in OWB) - without using materialized views. We we maintain cube using sum, min and max aggregation function eberythink is OK - we can see data in views, but when we maintain cube using other function e.g. average we see, that in view we have aggregated data using sum function, so:
    sum makes sum
    min makes min
    max makes max
    other functions makes sum
    Oracle DB 11gR2 for win 64-bit
    awm latest version 11.02 patchA
    what to do? maybe we don't understand something?

    One more time:
    Hello,
    I checked it. Unfortunately You're wrigth. I have simple CUBE AW_T5_V2 with three measures:
    cena,
    przebieg,
    rok
    and two simple dimensions:
    aw_kolor with levels
    KOLOR and
    ODCIEN (ODCIEN_ID is foreign key)
    aw_model with levels
    MARKA
    MODEL
    SILNIK (SILNIK_ID is foreign key)
    In point 1. and 2. everything is OK. (I mean in cube definition in dba_cubes:
    SOLVE
    AVG
    ALLOW OVERFLOW
    ALLOW DIVISION BY ZERO
    IGNORE NULLS OVER CPOWBADMHD.AW_KOLOR,
    AVG
    ALLOW OVERFLOW
    ALLOW DIVISION BY ZERO
    IGNORE NULLS OVER CPOWBADMHD.AW_MODEL
    and in AGG_MAP definition in OLAP Worksheet
    DEFINE AW_T5_V2_SOLVE_AGGMAP AGGMAP LOCKDFN
    AGGMAP
    RELATION this_aw!AW_KOLOR_AGGRREL(this_aw!AW_T5_V2_SOLVE_AW_KOLOR_HVSET) PRECOMPUTE(NA) OPERATOR AVERAGE args DIVIDEBYZERO YES DECIMALOVERFLOW YES NASKIP YES COUNT YES
    RELATION this_aw!AW_MODEL_AGGRREL(this_aw!AW_T5_V2_SOLVE_AW_MODEL_HVSET) PRECOMPUTE(NA) OPERATOR AVERAGE args DIVIDEBYZERO YES DECIMALOVERFLOW YES NASKIP YES COUNT YES
    AGGINDEX NO
    CACHE SESSION
    END
    But in cube_build_log I can see script in OUTPUT column:
    <SQL>
    <![CDATA[
    SELECT /*+ bypass_recursive_check cursor_sharing_exact no_expand no_rewrite */
    T14_ODCIEN_ID ALIAS_51,
    T11_SILNIK_ID ALIAS_52,
    SUM(T17_CENA) ALIAS_53,
    SUM(T17_PRZEBIEG) ALIAS_54,
    SUM(T17_ROKPROD) ALIAS_55
    FROM
    SELECT /*+ no_rewrite */
    T1."PRZEBIEG" T17_PRZEBIEG,
    T1."CENA" T17_CENA,
    T1."ROKPROD" T17_ROKPROD,
    T1."AW_KOLOR" T17_AW_KOLOR,
    T1."AW_MODEL" T17_AW_MODEL
    FROM
    CPOWBADMHD."AW_T5_TAB" T1 )
    T17,
    SELECT /*+ no_rewrite */
    T1."DIMENSION_KEY" T14_DIMENSION_KEY,
    T1."ODCIEN_ID" T14_ODCIEN_ID
    FROM
    CPOWBADMHD."AW_KOLOR_TAB" T1 )
    T14,
    SELECT /*+ no_rewrite */
    T1."DIMENSION_KEY" T11_DIMENSION_KEY,
    T1."SILNIK_ID" T11_SILNIK_ID
    FROM
    CPOWBADMHD."AW_MODEL_TAB" T1 )
    T11
    WHERE
    ((T14_DIMENSION_KEY = T17_AW_KOLOR)
    AND (T11_DIMENSION_KEY = T17_AW_MODEL) )
    GROUP BY
    (T11_SILNIK_ID, T14_ODCIEN_ID)
    ORDER BY
    T11_SILNIK_ID ASC NULLS LAST ,
    T14_ODCIEN_ID ASC NULLS LAST ]]>/>
    </SQL>
    It should be AVG, where is SUM (I've checked that, when I update agg method to min or max function is changing from sum to mix or max). I suppose SQL should sum measures and devide by number of records.
    OK, we know where is bug, what to do?

  • Problems with calculations using fillable forms  via Adobe Reader

    I have created a fillable form to use for our business. Our Tech's need to access these forms when working on job sites. I am able to access it on our Android Tablet via Adobe Reader, but all of the fields don't add/calculate   Is there a particular version of Adobe we should download to the Tablet in order for this to work?

    Our latest update, 10.4, should support basic calcilations. If you find that this doesn't work for your document, then please email the document and a brief explanation of your problem to [email protected], so we can better understand what the problem is.

  • Problem with calculated fields

    Hello,
    I have an acces table like this:
    Id_Customer Type Currency
    1 Credit 1000,00
    1 Credit 100,25
    1 Debt 500,45
    1 Debt 50,55
    What I wanna do is to displayed the following result:
    Total Credit: 1100,25
    Total Debt: 560,00
    Total: 540,25
    I am using ASP VBScript.
    Maybe is quite simple, but i can't figured it out.
    Any help will be very appreciated.
    Thanks.
    Gilson

    SELECT SUM(Currency) AS Credit
    FROM someTable
    WHERE Id_Customer=1 AND Type=Credit
    SELECT SUM(Currency) AS Debt
    FROM someTable
    WHERE Id_Customer=1 AND Type=Debt
    If you have multiple Customers in the same table, then you'll
    want to look
    at using GROUP BY
    "Gilson Roda" <[email protected]> wrote in message
    news:e5f0cu$7q5$[email protected]..
    > Hello,
    > I have an acces table like this:
    > Id_Customer Type Currency
    > 1 Credit 1000,00
    > 1 Credit 100,25
    > 1 Debt 500,45
    > 1 Debt 50,55
    >
    > What I wanna do is to displayed the following result:
    > Total Credit: 1100,25
    > Total Debt: 560,00
    > Total: 540,25
    >
    > I am using ASP VBScript.
    > Maybe is quite simple, but i can't figured it out.
    > Any help will be very appreciated.
    > Thanks.
    > Gilson
    >
    >
    >

  • I think I found a problem with the calculator application.

    I'm a south korean highschool student and I think I found a problem with calculator application. I use iPod touch 4th generation with iOS 5.0.1. I was playing with calculator app and I found out that 0.1!(factorial) is 0.951350769866873. This can't be right bacause factorial calculation can only be definrd whan n is natural number or 0(in n!). I want apple to correct this error.
    And if you are someone working with apple, please let me know the algorithm of factorial calculation(if possible). I would be grateful if I can have a chance to study the algorithm and find out what made 0.1! possible.
    so question.
    do anybody know how to send an email to apple? I tried but I couldn't find the address.

    Apple doesn't dialogue with users via email the way you want, but you can report such problems to them via
    http://www.apple.com/feedback/
    But in this particular case you should be aware that factorial can in fact be done for non-integers:
    http://en.wikipedia.org/wiki/Factorial#Extension_of_factorial_to_non-integer_val ues_of_argument

Maybe you are looking for

  • CS3 Master collection installation problem on Windows 7 64 bit

    Hi Guys Please can you advise I am encountering problems with the installation of CS3 Master Collection on Windows 7 64 bit, initially my hard drive crashed and performed a dump. Subsequent attempts to install CS 3 has resulted in failure to install

  • My iTunes program is giving me a message that says, "Runtime error" and wont open iTunes. How do I fix this?

    My iTunes program is giving me a message that says, "Runtime error" and wont open iTunes. How do I fix this?

  • Using time capsule through Belkin and Linksys routers

    I am working on a large house that has 4 wireless routers spread out. They are all attached via ethernet to a hub. There is a Linksys (which gets the internet and distributes the IPs) There are two apple extremes (one of which connects to a printer)

  • PrintWriter not working !!

    import java.io.*; public class FileDemo {      public static void main(String args[]) {           if (args.length != 1) {                System.out.println("Must enter text to write to file");                return;           try {           PrintWri

  • How to open free-synth daHornet in Logic Pro

    I have just downloaded the freesynth daHornet and would like to use in Logic Pro. I have copied the .compnent file into library/adio/plug-ins/components. I have tried to open daHornet through the 'inserts' portal of Logic, but daHornet does not regis