Problem in saving a calculated item....

hi gentlemen...I'm trying to save a display text item value which is calculated from the following formula:
(NVL(:disc,0)/100) * (NVL(:qty,0)*NVL(:tp,0))
(Actually this field is converting the discount in percentage to discount is dollars).but forms is not saving its value in database, Text_item database property is already set to "Yes" then why is it not storing the value in database? if the value of a formula-column really doesn't store in database??? can somebody help me?????

One solution is to derive the value of calculated item into a non displayed based one from the property : Copy value From

Similar Messages

  • Avoiding miscalculation of calculated item in query mode

    Hi:
    Imagine an invoice data entry system. 2 Blocks... the master (orders) and the detail (order_products). In the master you have the customer info and all that usual data... the details are the lines of products that this customer bought (quantity, price, etc) .
    Now imagine that I have calculated items that do the sum of the values from the lines and that are saved in the totals of the master block. And these calculations work very well...
    UPS... no they don't!
    Now imagine an order with 5 lines of products. Now imagine that you open that order and you go to the detail block and query that block and execute the query and the query only returs one or two lines for instance. The calculated items will change it value for the sum of the prices of these only 2 lines... but the order has 3 more products... and imagine that you click save... now the order totals are miscalculated...
    My question... HOW Can I avoid this? It's crucial!!!
    Best Regards
    Joao Oliveira

    Hi gerd :
    May a pre-commit-trigger selects the values from the database including the updated rows in the form?
    These computations are very very difficult. The values of the master table depends on the detail tables and the opposite is also true. By implementing triggers it will not work cause at the time the trigger fires in the master table the values from the detail table are not yet updated. This is a tricky issue...
    If I could avoid querying clauses in the detail block and avoid for instance the Clear_Record key... it would solve part of my problems.
    BR
    Joao

  • Discoverer Migration issue - Calculation item changes

    Hi All,
    In the development environment, I made some changes to the Calculation item in the existing Discoverer Workbook. It works in fine in DEV. But when I try to migrate (overwriting the existing workbook) it to ST environment (by opening it in Discoverer Desktop, and saving it to the Database) , it throws the below error
    'Inconsistent or invalid data types used in arithmetic operation.'
    Attempt to open workbook failed'
    I have also tried by exporting/importing thru Admin, but while opening in the Desktop it again throws the same error.
    When I am undo the changes(one by one) what I did to the calculation item, it is still throwing the same error, even when I come to a point that the formula for the calculation item is same as before.
    But when I am trying to save back the last working copy of the workbook into ST environment, it works fine.
    It looks like the environment issue/tool issue(Discoverer Desktop).
    We are in Discoverer 10g. Please let me know if any of you faced this problem and any suggestions to overcome this issue.
    Thanks,
    Gowri.

    Hi Gowri,
    Have you compared the item format between DEV & ST? Are they the same?
    Without seeing your actual calculation, I can only guess that you may try adding "TO_NUMBER" in front of the field that is causing issues.
    That has helped me in the past.
    Thanks,
    Janet

  • Problem with status-button in item view of ME21/22/23N

    Hello ABAP,
    i have to check for some conditions when a PO is saved, and due to those checks either save it or well, not.
    This is working fine so far.
    when you click check, or save, conditions get checked and window with errors pops up.
    I´m using the normal error message procession used in SAPLMEGUI which i have to fill with thos three makros.
    I just have one problem, my status button in item line doesnt get updated. i tried with a lot of metafields by now but it seems trial and error is not the way to go here.
    any tips?

    requirement resolved.
    solution follows:
    DATA: lt_ytab             TYPE TABLE OF ysdch_vbap_idnlf,
          lt_data             TYPE TABLE OF ymmch_check_idnlf_out, "added ID (TYPE INT4) Field to structure
          lt_out              TYPE TABLE OF char80.
    DATA: ls_ytab             TYPE ysdch_vbap_idnlf,
          ls_mska             TYPE mska,
          ls_data             TYPE ymmch_check_idnlf_out,
          ls_out              TYPE char80,
          lv_row_end          TYPE i VALUE 10.
    CONSTANTS:  lc_col_start        TYPE i VALUE 10,
                lc_col_end          TYPE i VALUE 40,
                lc_row_start        TYPE i VALUE 10,
                lc_title            TYPE char80 VALUE
                'Fehler, noch Bestand zu Liquidations/Annulationsaufträgen vorhanden'.
    *~~~Get header data
    ls_head = im_header->get_data( ).
    *~~~Get item data
    lt_items = im_header->get_items( ).
    LOOP AT lt_items INTO lr_item.
      ls_item = lr_item-item->get_data( ).  "EKPO
      "select liquidations/annulations orders for supplier material nr.
      SELECT *
      FROM   ysdch_vbap_idnlf
      INTO   TABLE lt_ytab
      WHERE  /fis/idnlf = ls_item-idnlf.
      LOOP AT lt_ytab INTO ls_ytab.
        "now lets see which of those orders has order stock
        SELECT SINGLE kalab kaspe
        FROM   mska
        INTO   CORRESPONDING FIELDS OF ls_mska
        WHERE  vbeln = ls_ytab-vbeln
        AND    posnr = ls_ytab-posnr.
        IF ls_mska-kalab GT 0 OR ls_mska-kaspe GT 0.
          ls_data-vbeln       = ls_ytab-vbeln.
          ls_data-posnr       = ls_ytab-posnr.
          ls_data-/fis/idnlf  = ls_item-idnlf.
          ls_data-kalab       = ls_mska-kalab.
          ls_data-kaspe       = ls_mska-kaspe.
          ls_data-meins       = ls_item-meins.
          ls_data-ebelp       = ls_item-ebelp.
          ls_data-id          = ls_item-id. "saved ID for later processing
          APPEND ls_data TO lt_data.
        ELSE.
          CONTINUE.
        ENDIF.
      ENDLOOP.
    ENDLOOP. " lt_item
    IF NOT lt_data IS INITIAL.
      "we got annulation/liquidation orders with order stock for this material
      "so popup a error message
      LOOP AT lt_data INTO ls_data.
        IF NOT ls_data-vbeln IS INITIAL AND NOT ls_data-posnr IS INITIAL.
          mmpur_business_obj_id ls_data-id. "using other makro now and making use of ID
          "using mmpur_business_obj_id instead of mmpur_business_obj_it
        ENDIF.
        mmpur_metafield mmmfd_item_number.
        mmpur_message  'W' 'YMMCH' '110' ls_data-vbeln ls_data-posnr ls_data-ebelp ' '.
      ENDLOOP.
      ch_failed = 'X'.
    ENDIF.
    Edited by: Florian Kemmer on Sep 7, 2010 3:22 PM

  • Forms Builder 6i: Calculated Item-value into DB

    Hi all,
    I am a Newbie in Forms and have got a problem:
    Through a Forms App I want to fill a table in my database. The Form and the table both exist already. One of the Items in my Form is a calculated item, that is calculated with a formula of the values of two other items.
    My question is how is it possible to get the calculated value into my table. The only hint I've got is to use WHEN-VALIDATE-ITEM, but I don't know anything about the rest to do...Will somebody help me?
    Thanx in advance
    Heike

    make the calculated item based on the database column you want it to insert the value into.
    If this is not possible have a hidden item based on that column and copy the value from the calculated item into this hidden Item. (you can probably use mirror item for this).

  • Data format in pivot table calculated item

    Hi All,
    I've got a pivot table with a dimension on rows and a dimension on columns and a measure. I have a "new calculated item" based on the dimension on the columns which does the following: ( ($2-$1) / ($1) ) *100
    I want this calculated item shown as a percentage like 1,2% but the measure must stay a whole number like 1234 (no decimal places or percentage symbols) any suggestions on how to achieve this?
    Thanks in advance!
    Gilles

    Hi Kishore,
    It is not helpful, I mean, it doesn't solve my problem. But nice post!
    What I have is the following:
    --------C1------C2-----C3
    R1|--123--|--345--|--678--|
    R2|--124--|--346--|--679--|
    R3|--125--|--347--|--670--|
    What I want is the following:
    --------C1------C2-----C3---------calculated item
    R1|--123--|--345--|--678--|--(($2-$1) / ($1) ) *100)
    R2|--124--|--346--|--679--|
    R3|--125--|--347--|--670--|
    the column results must remain in the same format, but the calculated item must be in the format %9.99 (to see the percentage change)
    any other suggestions?

  • How to rename calculated item?

    Hi
    I defined a calculated item in Disco Admin and used it once in a workbook in Disco Plus.
    Later I changed the name of the calculated item. Unfortunately the change doesn't take effect in new(!) workbooks. It is still the old name.
    This doesn't happen to calculated items which I renamed before having used them.
    How can I get rid of the old name without changing it every time I set up a new workbook? It must be saved somewhere.
    Thanks
    Franziska

    Hi,
    Try changing the heading property on the calculated item in the EUL.
    Rod West

  • Calculated item doesn't show values

    Hi!
    I have created a report in which I'm showing number of vacancies for two different months (depending uopn the values of months selected in the parameter). I have created a calculated item in Desktop that is supposed to give me difference between the values for both months. In other words, this calculated column is supposed to show me if there is any increase or decrease in the number of vacancies.
    The datatype for values for both months is 'number'in the database and I've set it as 'default' in my report...and my report displays them correctly. However, when it comes to the calculated column, no values get displayed. I tried to experiment with the datatype for this column...like set it to 'none', 'default', number etc. But, no success! I tried to experiment with the datatype of the other two columns (values for months) as well...like setting them as 'number', however, this too brings no success!
    I don't think that this has anything to do with the joins as the other sheets in the same workbook display correct data with totals too.
    Can someone help me on this?
    Thanks and regards,
    Aparna
    Message was edited by:
    Aparna

    Hi !
    Let me post my calculations here: I'm giving them here in logical order.
    1) Total = No Female Required SUM+No Male Required SUM+No Mixed Required SUM
    Here 'No Female Required SUM' and the other two are from a table in the database. Puppethead, answer to your question: these three columns are from the same table and thus, form part of the same folder and BA. Their datatype in the db table is specified as 'Number'.
    And this calculation is supposed to give me total of vacancies whether for female candidates or male or for those where no sex is specified.
    Please note that problem persists even if I select 'details' instead of 'sum' as aggregation for all the three columns.
    Please note that I do not directly display this calculation in my report.
    2) Month 1 Vacancies = CASE WHEN ( "Month" = :From month ) THEN Total END
    This is where I reference the Total that I create before. Here I'm also using 'Month' which is created based on a date using Hierarchy functionality in Administrator. From month is a parameter. Thus, the Total that I display should be for the month that the user selects as a parameter value.
    This column 'Month 1 Vacancies' displays correct values.
    3) Month 2 Vacancies = CASE WHEN ( "Month" = :To month ) THEN Total END
    Same logic as calculation no. 2. Please note that this column too displays values correctly. To month is a parameter.
    4) Change = "Month 2 Vacancies"-"Month 1 Vacancies"
    What I would like to see here is the difference (whether positive or negative) between the vacancies for two months. This column is displaying nothing. And that's where the problem lies.
    Please note that all the four calculations are being created in the Desktop while creating the report.
    Could you please advise me?
    Thanks and regards,
    Aparna

  • MAC Mail not saving all sent items

    Hi,
    I'm using OS X 10.6.7 and using MAC Mail over an IMAP connection.
    For some reason this particular MAC Mail is not saving / recording all sent emails. The recipient is receiving them all so they've definitely been sent, but they're not appearing in the sent items / sent folders.
    I have tried exactly the same IMAP account on another OS X 10.6.7 mac and ALL emails appear in the sent items.
    It seems there is a fault / bug with the MAC Mail. Is there any hotfixes out there or any steps to try to ensure evry sent email is logged / saved in the sent folders?
    Thanks
    Chris

    Chris,
    I have nearly the exact problem. The only thing I have noticed is it only seems to happen with the first email I have sent out. I can have the mail program open for awhile and do other things but when I write a new email and send it, it doesn't show up in Sent. It also happens if my first email is a Reply. I have to write to the person I sent the email to and ask them to forward it back to me so I have a copy!
    All subsequent emails are saved in my Sent folder.
    I cannot yet consistently repeat the problem. Saving the mail in the Sent folder works 95% of the time.
    I think because it is the first email I send out it catches me off guard. I usually open the mail program and start typing a new email, send it and then go about doing other things, then later I realize it's gone. I even check the online mail at me.com and it's never there either.
    This all started maybe 2-3 months ago.
    Phillip
    Macbook Pro7,1
    10.6.7

  • Calculated Items and Action Links (OBIEE 11g)

    Hi,
    On OBIEE 11g here...
    I have an anaylsis which shows a pivot table with only 6 columns of calculated items, with all of the standard columns hidden. The split of the pivot has been achieved using a variable created using the bin function.
    I have set an action link on the measure shown in the pivot table to navigate to another analysis and, while clicking on one of the measures in a pivot column runs the specified report, it is not run using the the necessary parameters required to match the dataset shown in that particular column.
    Is it possible to drill to a separate report and pass through the required filters from a measure showing in a calculated item, as it would be on a measure showing in a standard pivot table column?
    Thanks,
    Ang

    You need to have 'Is Prompted' for that specific measure. I would suggest to use action links on other columns instead of metrics.
    Pls mark as correct/helpful if helps

  • Problem with saving a pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21).

    Need advice on a saving file issue. I'm having problem with saving a .pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21). This is new as this error message just recently started to pop-up.

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • Problem while saving date field in custom table

    Hi,
    Iam facing the following problem while saving a date field in custome table
    i have a date field zdate in which the value is 02082010.
    now when i try to insert this value in the custom table it is getting updated as 20/10/0208 , but it should be 08/02/2010
    How can i correct it..
    Regards
    Kumar

    just before saving u might have to use a string reverse FM and then save it..
    CALL FUNCTION 'STRING_REVERSE'
      EXPORTING
        STRING          = p_string
        LANG            = sy-langu
    IMPORTING
       RSTRING          = r_string
    EXCEPTIONS
       TOO_SMALL        = 1
       OTHERS           = 2

  • Error in net price calculation, item 000010 (Please correct)

    Hi
    Can you tell me error and correction for the same ? It occurs during creation of Std.PO. whom RM1000 prcing procedure is assigned.
    Error in net price calculation, item 000010 (Please correct)
         Message no. 06213
    Diagnosis
         Possible causes:
         o   The net price is negative.
             Check the prices and conditions entered.
         o   An error has occurred during currency translation.
             Check whether the foreign currency is defined in the system.
         o   The unit of measure of an item is not allowed.
             Check the units of measure entered.
         o   An internal error has occurred during the price determination
             process.
             A mandatory condition type is not defined in the system. Please
    In the analysis under item details condition tab I got message 301 as Acess 0002 12 is missing.
    Acess seq. 0002 is assigned to condition type PB00.

    I know this thread is very old but I had the same issue and found the solution.
    Enter the SubTotal in the pricing scheme for condition P101 (in my Case 9 - Copy values to KOMP-BRTWR (gross value)).
    Than it works for my case.
    Hope this helps.

  • I have a problem regarding sales order line item with confimed quanity

    Hi Experts,
    I have a problem regarding sales order line item with confimed quanity with '0'  with delivery block but confirming the sales order quantity once the order is released from credit check.
    The situation arises as per the below scenarios.
    Scenario - 1 -  When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
    Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx  and the order is set with credit check.  Once the order is relased from the credit check.  The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
    Scenario -2-  Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
    Maintain the stock for the line item 2 ( 5 Pcs).
    Once the order is released from the credit check.  Then  for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
    This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
    Can you please help me how to solve this issue.
    Looking forward for your reply.
    Thanks and Regards,

    Hi,
    I agree with your point.  In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check.  Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5,  But it should set to Zero quantity.  Quatity should not be get confirmed it should be Zero Quantity. 
    Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok.  But we dont want to remove the - Confirmation Block tick mark
    Please any one can help me if you have any solution to solve this problem.
    Thanks and Regards.

  • Problem when saving form in web dynpro abap application in se80

    Hi,
    I am trying to develop an adobe application. When I save the form which i have designed.
    I get the "error" unable to convert data and the transaction is terminated.
    I dont have any idea why.
    Help
    Thanks,
    Harish

    Hi
    Are you getting the problem  while saving the Adobe form  or while saving the webdynpro application.
    Could you please elaborate your problem.
    Regards
    Naresh

Maybe you are looking for

  • Purchased ringtones,can't figure out how to install them

    can anyone give me step by step instructions on how i install these things?? i was able get as far as the message options & tapped save attachment & that as far i i got,can't figure out the rest.

  • One vendor master with different recon posting while accounting of the bill

    I have one vendor master, where we can able to give only one recon. account.  But the vendor supplies various materials like rm, pm and capital material.  I want to change the recon account while accounting the invoice.

  • How to view the schema of a table?

    Hi, I have a table and would like to use the schema as a base to create other similar tables, however I couldn't find much information on how to retrieve the schema of a table in windows azure database. Could anyone shed some light?  Thank you!

  • Reset Password Daily for icloud on pc

    I have no problems on my iphone.  Almost daily with my pc I am told I need to reset my password when signing into my icloud mail.  I have no problems when I go to manage my apple id.  But when I try to sign into icloud I get: "Your apple id has been

  • My tools feature in firefox does not have private browsing

    My motherboard was recently changed.previous to that my desktop had the private browsing feature in firefox.but after the change, the tools feature does not have private browsing settings. it only has "clear private data" setting.now how do i create