Rounding values for display

Hi all hope you can help.
I have a numeric DB column say 566785.8975. The value of the information in the column cant be changed. The application performs two functions data input for the owners and view for the customers.
Idealy I want to only display to two decimal points for the customers
I have tried using the the ROUND command with no success using source as a PL/SQL expression or function and a value of ROUND(GROSS,2) where GROSS is the column name
any ideas?
Thanks

Hi Bjorn - the problem with the TO_CHARing (having suggested it in the first place - sorry) is if you want to use automated row processing to update the page.
However, you could have an item (your gross_read_only) which is not linked to a DB column, and then all your automated fetches and updates would work fine.
You can set the value of this item using a SELECT statement within the item source, or a computation when the page is rendered.
In either case, SELECT just the read_only item (TO_CHAR it as described), and I see no reason why it shouldn't work.
In other words - for the item source:
SELECT to_char( GROSS, '999G999G999G999G990D00') GROSS_READ_ONLY
FROM TABLE
where ID = :P1_ID_ITEM
or in a PL/SQL item computation:
declare
l_value VARCHAR2(4000);
begin
select to_char(GROSS, 'FML999G999G999G999G990D00') into l_value
FROM TABLE
where ID = :P1_ID_ITEM;
return l_value;
(or :P1_READ_ONLY_ITEM := l_value in a page computation)
end;
Does this help?
John.

Similar Messages

  • Rounding value for purchase order quantity

    Hi Guru ,
    i need help for logic LOT SIZE MRP.
    In particolar i need of use the parameters of rounding for create the planned order multiple of the value.
    Example for a requirement of 3800 pz whit a value rounding of 500 i  vould want that the system create a planned order of the 4000pz.
    I have  tried insert this value 500 in the field "Rounding value for purchase order quantity" in the view MRP1 but after run MRP the system create a planned order of the same quantity of the requirement.
    Thanks a lot for help
    Daniele
    PP TEAM

    Dear,
    OMI4, for lot size select Lot for lot order qty with rounding.
    Either you can use the Rounding Value or you can use a Rounding profile in MRP2 view to round of your order qty and rouding value in MRP1 view.
    Further you can check
    Check FM MD_ROUNDING_VALUE
    Regards,
    R.Brahmankar

  • Rounding value for PR Quantity

    Dear Expert,
    Can we have rounding value for order quantity in Purchase Requisition? So we do not need to calculate the PO quantity based on the rounding value we have determined in material master / get the error  message "Order quantity violates rounding rules while we creating the Purchase order.
    And What is rounding profile? can we use this to set the rounding value for PR quantity?
    Hope to see ur feedback soon.
    Thanks
    Pauline

    Hi Dick Hua,
    Thanks for your feedback.
    i understand what you are trying to explain to me , can we do some changes / customizing from your statement, so that the manually created PR can have effect on rounding value, same as when we run the MRP.
    Can you tell me What is rounding profile used for? can I used rounding profile to solve my customizing?
    Thanks
    Pauline

  • Error in parsing value for display

    Hi
    I'll try to access a website http://sinaica2.ine.gob.mx/magic/rmart but Firefox 8.X and 9.X dont show me a frame inside the middle of the new window, but any other browser also an older version of Firefox does well.
    Firebug reports me a warning "Expected end of value but found ':'. Error in parsing value for display. Declaration dropped.
    Any clue for solving this issue?
    kind regards,

    Yes, I can confirm that it works with Firefox 7 and not with later Firefox versions including the current Nightly build.
    That CSS error isn't related to that problem AFAICT.<br />
    Looks that Firefox doesn't run the JavaScript in that frame to replace it with that content frame.
    *http://sinaica2.ine.gob.mx/magic/rmart/null/_framework
    *http://sinaica2.ine.gob.mx/GJresources/gjframework.js
    *http://sinaica2.ine.gob.mx/magic/rmart/0a6ccd1903653aa55f092fa48e1ec6ce/main

  • Rounding value for abetment

    Dear Expert
    We want to map the rounding value for abetment  per unit of material , presently we have created a condition type zmrp which represent market price value and abetment is calculated on the basis of ZMRP which 65%of ZMRP . e.g
    for a  x material 17.50 ZMRP
    Abetment condition type value is 65% of ZMRP =11.375  we want here system should round up the value 11.38 and calculate the value accordingly but what system is doing presently is that it round up the condition value as whole not for indivual unit . WE want round up before multiplying  the qunaity of productsnot after.i.e unit value system should round up
    Regards

    Hi,
    Create a new Alternate calculation base value routine using VOFM.  This routine should calculate the base value for the condition type as round to commercial value for the unit price.  Assign this routine to your condition type in V/08 customization in alt. calculation base value field. This way SAP will first calculate unit rounded price and then will multiply that price to the order quantity to calculate final price as you desired. Let me know if you need a more help on the same.
    Thanks
    Kapil Sharma

  • Rounding value for direct procurement

    Hi,
    I an sourcing the same material from another plant within the same client. The materiale is some times purchased as a standard material using rounding value and going to stock. But, in some cases the material is procured as direct procurement. When purchasing for direct procurement will it then be possible not to use the rounding value but just order the exact quantity?
    thanks,
    Anders

    Hi Andres,
    I think, you do not need to take any action on this requirement.  SAP works the way you wanted, by standard.  For example, you have a setup with a vendor (may be via info record or material master itself may have rounding qty etc)...not a problem.  The parameters you use in material master will control for procurement process either triggered from planning (or production ) or manual purchases.  When you create a SO# and if it triggers a purchase requisition, it sends exact quantity required only, into the preqs.  By standard SAP config, the message about rounding rules is just warning.  I don't think you will be stuck with this message when you try to convert the 3rd party Preq to PO.  Even if there is a message, it must just warning. 
    Let me know with these inputs, if you test both types of PO#s, how it goes.
    Regards

  • Table with Values for Displaying Icons in a Report

    I have found a report that displays red, green and yellow lights to help users to quickly review the results.
    Code has statements such as WRITE: AT /1 '@5B@' AS ICON. "(GREEN LIGHT)
      WRITE: AT /1 '@5C@' AS ICON. "red light
    I would like to know where I can go in SAP to see what other ICONS can be displayed and what the code would be.
    For example - I found the writing WRITE: AT /1 '@5D@' AS ICON - and using @5D@ you get a yellow warning.
    Thanks!
    Scott

    Rob,
    Code value will not be available in table ICON.
    its available in Type group ICON
    ie SE11--> select Type Group > ICON> display
    Here is sample
    CON_2 ICON_DUMMY                     '@00@'."  PlaceholderIcon
    ICON_2 ICON_CHECKED                   '@01@'."  Checked; OK
    ICON_2 ICON_INCOMPLETE                '@02@'."  Incomplete
    ICON_2 ICON_FAILURE                   '@03@'."  Failed
    ICON_2 ICON_POSITIVE                  '@04@'."  Positive

  • BADI for Changing Deployment Rounding Value

    Hello All,
          During my Deployment run I need to consider the rounding value from the /sapapo/marm table and not from the product master. So I need a badi or user exit to change the rounding value for deployment run. Do let me know how I can achieve this.
    Thanks,
    Siva.

    Dear Tiemin,
           Thanks for your reply. But I need a BADI which needs to work when there is no Fair Share situation. It will be great if you provide me which suits for it.
    Thanks,
    Siva.

  • Passing two values in a column prompt for display and filtering

    Hi All,
    Is there a workaround to use two columns in a prompt for display and passing the input value for a prompt value in dashboard prompt? For eg we want to display the description in the prompt but pass the id to the filter value or presentation variable, just like we have in bi publisher,LOV automatically grab the two value for display and actual value to pass to the query.Therefore, user will click the description and corresponding id will be saved in presentation variable from the prompt .
    Thanks,
    Sushil
    Edited by: 872073 on Apr 5, 2013 11:06 AM

    Check this
    http://www.rittmanmead.com/2010/08/oracle-bi-ee-11g-handling-double-columns-iddescription-interoperability/

  • Report Region rounding numbers for no apparent reason

    I have a report region. It is a function returning query. The results are consistently displaying rounded values for the dollar amounts. The format for the number mask is FML999G999G999G999G990D00 . The query is shown below. I am at a loss for why this is happening. Any help is greatly appreciated...
    Adam
    DECLARE
    str_Query VARCHAR2(2000);
    BEGIN
    str_Query := 'SELECT xatr.Refund_ID, '||
    'xatr.Refund_ID, '||
    'xatr.Invoice_Header_ID, '||
    'xatr.Line_Description, '||
    'xatr.Refund_Amount, '||
    'xatr.Interest_Amount, '||
    'xatr.Refund_Total, '||
    'xatr.Date_Paid, '||
    'xatr.Check_No '||
    'FROM XXMC_AP.XXMC_AP_TAX_RECONCILIATION@'||:P0_INSTANCE||' xatr, '||
    'XXMC_AP.XXMC_AP_TAXREF_INTERIM@'||:P0_INSTANCE||' xati '||
    'WHERE xatr.Refund_ID = xati.Refund_ID '||
    'AND ( xati.Process_Step = ''Loading'' '||
    'OR xati.Process_Step = ''Reconciling'')';
    RETURN str_Query;
    END;

    I was working with two different tables. The first table contained all the data. The second table contained a subset that was populated by a stored procedure. The second table, which was where the rounding was coming from, had the number fields setup with a precision of 15. This forced the number to an integer and the apparent rounding. I removed the precision and it worked fine.

  • Strange Value in DISPLAY variable

    Hello all,
    in order to access remote Linux machines, I am running X11 on my iMac. For some reason this does not work anymore when connecting (ssh) from a "regular" bash (application Terminal) but it still works when I am accessing from the xterm-bash which was started with X11.
    The error message indicates that the X-Server is not reachable.
    Comparing the environment of the to bash', showed the culprit:
    working: DISPLAY=/tmp/launch-Gu9ioY/:0
    not working: DISPLAY=my_hostname:0.0
    As far as I remember this was no issue with Tiger. Does anybody know what "/tmp/launch-Gu9ioY/:0" means? I have never seen this as a value for DISPLAY.
    What does X11 sets here for DISPLAY?
    Thx for your info on that!

    X11 is completely rewritten in Leopard. The Leopard X11 sets DISPLAY for you and you should not override that. Edit anything left over from Tiger, such as .bash_profile, that is resetting DISPLAY. In other words, DISPLAY=/tmp/launch-Gu9ioY/:0 is correct; DISPLAY=my_hostname:0.0 is wrong.
    Also note that Leopard's X11 will launch automatically when needed. You don't need to pre-launch it. For example, if you type "ssh -X" at the Terminal, X11 will launch.

  • Can't find roundness setting for rounded rectangle (CS5)

    I know I'm missing something obvious, but I can't seem to find the control to set the roundness value for a rounded rectangle.
    Per help, there should be a roundness control in the properties window, but I've been looking for 15 min. and can't seem to find it.
    tia,

    Thanks Linda. I was clicking on the yellow dots but somehow avoided sliding them...
    And I missed Auto Shape Properties, as opposed to the Auto Shapes window.
    A Fireworks 4 user is like a rube in the big city for the 1st. time...
    -williamc

  • Displaying blank value for the Rounding Value field in MM03 transaction

    Hello All,
    We are using BDC to create a material master record.Some users are not loading the rouding value in the MRP1 screen. The rounding value is stored in the MARC table which has the data type as QUAN. Thus when there is no value being passed it implicitly converts the blank value to 0.00. The users do not want the rounding value to be displayed as 0 when they view the material record using mm03. Kindly let me know if there is any way to display the rounding value as blank if no value is present.
    Thanks in Advance.
    Regards,
    Avinash Sai N S

    Hai siddharth,
    I have enabled the BADi HRPBSIN_ADDITIONAL_CHECKS to do validations for loans. Can u pls explain is there any FM or wat can be used to set default value for the field in portal.
    Pls give some suggestions,
    thnaks,
    Nalla B.

  • Uploading values for an image field in a web app. Nothing displays in layout.

    I've uploaded the values (using the import) for a field defined as an image in a web app. When I try to display the field, nothing shows up. The value correctly shows up when I look at Web App items after the upload / import. I've uploaded the same value in a text field, just to learn what was happening, and the text field displays the image just fine when added to the layout.
    I would like to use the image field type, as it's easier to correctly create the link when the web app is updated in the future.
    Here is what works in the layout: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_image thumb}" /></a>
    Note that {tag_image thumb} is a text field with the link stored in it. The value for each Web App Item which populates this field is a link to the image. (i.e. /Awards/139.jpg)
    Here is what I want to work: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_thumbnail image_value}" /></a>  , where {tag_thumbnail image_value} refers to a field defined as an image in the web app. It has the exact same value as {tag_image thumb}. I just copied the field values in the Excel spreadsheet (saved as .csv) when I uploaded it.
    It looks like the image field works fine only when I manually create it in the web app. If this is the case, using the upload capability disables any ability to use the image field type.
    Is there a workaround for this? Am I missing something?
    The page I'm working on is http://www.e-a-a.com/awards  When you view the source, you can see that the small thumbnail images are displaying just fine. (I'm using the text field). Whenever I substitute the image field name {tag_thumbnail image}, {tag_thumbnail image_nolink}, or {tag_thumbnail image_value}, the src value is always null.
    How do I fix?

    Hi there,
    To do it properly you need to resize the image. Prefably before you put it into BC. While you can for scale the image in CSS you do not want to do this. Why? Because the images are still very big and likely not optimised as they should be for the web.
    This means the page with these images will take a very long time to load for people, and people wont be to happy about that viewing your site.
    You need to use software such as photoshop if you have it or iphoto on a mac for example to edit, crop and size images before you upload them. If you do not have anything you can use free web based tools such as this one:
    http://pixlr.com/editor/
    You can also do this within BC itself in the file manager. If you click the image you can see options to resize it. The downside of that is that is done by pure math. It does not know what is in the photo and the results can make the image look squished etc.

  • How to create a display value and a return value for an item

    Hi! I have an item on a form. I want the default value for my item to be :":APP_USER", but the return value, to be the id of my user. I tried to create a PL/SQL Expression for the default item, but it doesn't work. What do I miss?
    It should be something like this, but it's not.
    begin
    select first_name || ',' ||last_name as "Employee",
    id_employee -- display value,return value
    from employees
    where id_employee = :APP_USER;
    end;
    Does anyone know?
    Thanks!
    Vitaly

    Hi VItaly,
    Display value and return value concept applies very well in case of a Combo box if i am correct, I don't know what type of item is your's.
    But any way, you can have a workaround like,
    Create a hidden item such that it's default value should be ID of the user which can be get from db by using :APP_USER.
    Use the this item for your references.
    I think this will meet your requirement.
    Thanks
    Kumaraswamy.

Maybe you are looking for