Display comma for numeric values

Hi,
I want to display comma for numeric values.I know we can use strlen and concatenate, but any one can give me an example.
Ex: 1,234  and 12,234 , 1,22,500  ( iam expecting)
Thanks,
Veeru

it depends on ur data...
if it is currency then u can use
WRITE.... CURRENCY...
if it is qty then u can use
WRITE....UNIT....
or u simply pass it to a packed field and it will take the default decimal settings of the user profile...
Reward points if helpful

Similar Messages

  • Report results displays only (*), no numeric values.

    Dear all,
    The report result only displays asterick (*), no numeric values. But the field in the result thus has numbers which can be seen in display at the top in the excel sheet. why?
    Do i need to make any changes in Query properties or something else??
    Please advise.

    Hi,
    You should be trying to work to different units of measure or different currency. If you do any calculation with two values which has different unit then the result will be so.
    use NODIM() of the keyfigure and do the calculation. create a formula and add NODIM to keyfigure, then you should be able to see values but you will not get the unit along with value.
    Else you should go for conversion of units to single one and then you can get both values and units.
    Hope this helps
    Regards
    Akhan

  • Searching for numeric values in a text field / SQL Server

    Hi all,
    here's a problem that I've been trying to solve for several days: I try to select rows from an MS SQL Server via JDBC that contain a certain numeric value at a certain position in a long varchar field.
    I'm using queries like
    select * from table where substring(field_1, 37, 7) like '1011234';Those queries always return an empty ResultSet. If I use the same queries in WinSQL, I get correct results (several rows).
    The application code is working in principle; if I search for a text instead of a numeric value, for example select * from table where substring(field_1, 4, 5) like 'Paper'; , I get a complete ResultSet.
    I've tried many variations (= instead of like, search in the entire field (without substring but with like '%1011234%'), with or without ', and more), but that didn't change anything.
    It's also most probably not caused by the JDBC driver; I have tried JTDS first, and then the MS driver (newest versions) - no difference.
    One idea was that the sort order is not correct, tried some COLLATE settings, but that didn't help so far. In this context I'd like to know how to determine the collation sequence of a certain column.
    Another thing I tried was using CAST, for example SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST('1011234' as bigint); or SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST(1011234 as bigint);, but that didn't help either.
    Some facts:
    Server: Microsoft SQL Server, version 09.00.2047
    Driver in WinSQL: SQLSRV32.DLL, version 03.85.1117
    JDBC-Driver:
    - JTDS, version 1.2
    - Microsoft SQL Server 2005 JDBC Driver, Version 1.2
    JVM: jre1.5.0_11
    I didn't find anything on Google, or in this forum, or other forums. I really hope someone here can help me. Thanks in advance!
    Best regards,
    Uica

    Your note suggests to me that this is a coding problem, not a JDBC or SQL problem unless you are hitting a bug in the SQL Server JDBC driver. Others may have ideas from what you have written, but I think it would be helpful to see the actual code that you are executing that does not bring back the results that you are expecting (don't forgot to use code tags to format your code correctly).
    It might also be helpful to execute a query (from within your Java code) to ensure that you are connecting to the right database, accessing the correct table and that your substring is using the correct offset. The query would look something like this (and then of course display the list of results):
    SELECT substring(field_1, 37, 7) from table

  • Wildcard search for numeric values using select ?

    Hi,
    I want do wildcard search for numeric fields of the table.
    For charcter/string i have used - select * from XX_TABLE where param1 like 'SS%'. But this query doesnt work when para1 is numeric. Please let me know first whether this is possible ? if yes how to achieve it ?
    Thanks in advance,
    Shrinivas

    Hi Jack,
    The numeric field is of  8 digits, so when i give search critera as '66', it should return values 66000000, 660000, 6600 etc. so i was not able to give between some range. I also tried storing all these values in internal table and the segregate the values it contains '66*'. This worked well but requires lot of coding effort.Please suggest if you guys have any better method ?
    Thanks,
    Shrinivas

  • Limit for numeric values ?

    Hello, I'm using a trial version of FormsCentral (Acrobat Pro XI) and when trying to define the range of values in a text box with number format option I do not see any, nor to set the number of decimal places (only I see options to set as Mandatory and display the help text) ... How can I configure these options ?

    GSinMN wrote:
    Hello Doug,
      Good catch.  I've been dealing with "odd sized" numbers through most of the development for this application.  Generally I convert everything to U64 (in Labview), do and processing or manipulation I need, then convert back as needed.  As far as how things are stored in TestStand, most variables are imported and stored as character strings, then converted as needed.  For this particular post, I was just wondering if there was a way to do some of that conversion directly in TestStand.  Doesn't sound like it would work. 
    GSinMN 
    What I was referring to with the 5 byte issue was when using the default (double-precision foating point) representation of a number in TestStand. When using that representation, integers are treated as 32-bit.
    There are also 64-bit integer representations in TestStand. If you change a TestStand number's representation to "Unsigned 64-bit Integer", then you can use bitwise arithmetic on the 8 byte integer values (using the ui64 suffix for constants such as 0x00000000000000FFui64), however, the numeric limit step types do not currently support 64-bit integers, so you would not be able to use those.
    -Doug

  • Display columns for Null Values in Crosstab

    Hi All,
    I have developed a crosstab in CR based on SAP BW Query. Report requirement demands to display all columns even though data is not present for those columns. However this report doesn't show the columns when there is no data. Can you please help to resolve this issue !!!
    Regards,
    Samir

    Samir,
    As Abhilash stated, the crosstab rows/columns are like groups.
    If you do not have a value to create a column, it will not show in the crosstab. Do you have a table that lists all the values you wish to show in the columns? Is it used in the report? Perhaps you can use it to create the columns by using a left outer link from the table with all the values to data table you are reporting on, and use it for your columns
    If the columns are dates, and you do not have data for a particular date, that can be done.
    [This post has a solution for a SQL server|How to dynamically create a table to join with;.
    [Here is another solution|Generating Calendar Months for the year;.
    There are other posts regarding this issue. I can not think of one at the moment for building a table for values other than a date but I am pretty sure I have seen one.
    Debi

  • How to display Description for Selected Value instead of ID

    Hi i have a problem i want to display a description on a combo box list of values instead of the ID when i want to use ir for a formlayout or af:query for estethic
    because i have found this links:
    http://vikasadflovdevelop-adf-lov.blogspot.com/2012/06/v-behaviorurldefaultvmlo.html?showComment=1389196282800
    https://blogs.oracle.com/adf/entry/combo_lov_how_to_display
    The Incident Archive: ADF: LOV Description instead of code
    but none of them really works or i dont how to do it anyone can helpme please
    i'm new on ADF and jdeveloper

    Hey user,
    If i'm understanding it right, you want to show the values instead of the id, which is very usefull. If that is the case, try this website:
    ADF Tutorial: How to implement dependent list of values | Oralublog - Oralution's Blog
    That looks like yours but it explains a little better. Probably you forgot to go to the UIhints part...
    Hope that helps,
    Frederico.

  • Regular expression for numeric values

    Hi:
    Due to limitations within our environment, I have to use text fields to enter in numeric data only.  The client would need to be prompted upon entering a letter that this field excepts only numeric characters.
    I am using the code below on the change event for the field and it works fine except that the client can not enter decimals or commas.  Does anyone know how to escape the period and commas with this expression?
    if (xfa.event.change.match(/[0-9\-]/) == null)
        xfa.event.change = "";
        xfa.host.messageBox("Only numbers are permitted for this field.");

    Hi,
    This script in the change event will give the warning. I am just thinking if script could also delete the offending character:
    var vPattern = /[a-z]/;
    var result = vPattern.test(xfa.event.newText);
    if (result == true)
        xfa.host.messageBox("Only numbers are permitted for this field.");
    Good luck,
    Niall

  • Range check for numeric values in varchar2 type column

    SQL oracle 10g windows XP
    I have a table which has column of type varchar2 e.g
    create table osa_gms_mailbox(reg_address varchar2(60),bin_address varchar2(60));
    let us insert some sample rows:
    insert into osa_gms_mailbox values ('8000','8000');
    insert into osa_gms_mailbox values ('9000','9000');
    insert into osa_gms_mailbox values ('[email protected]','[email protected]');
    If i try to run the query :
    select reg_address from (
    select reg_address from osa_gms_mailbox
    MINUS
    select reg_address from osa_gms_mailbox where
    regexp_like(reg_address,'^[a-z]+|[A-Z]+$')) temp
    where to_number(temp.reg_address) between 1000 and 10000;
    or
    select reg_address from (
    select reg_address from osa_gms_mailbox
    MINUS
    select reg_address from osa_gms_mailbox where
    regexp_like(reg_address,'^[a-z]+|[A-Z]+$'))
    where to_number(reg_address) between 1000 and 10000;
    it gives ORA-01722: invalid number .
    how can i get the numeric comparision done for varchar2 field and exclude the rows which have atleast one alphabet (a-z,A-Z)
    Thanks

    Hi
    Please check this sample , it may useful to you
    /*Creating a Table*/
    Create Table CHECKVARCHAR( CheckValue Varchar2(20) );
    /* Inserting values in to the column with numbers and Strings */
    Insert into CHECKVARCHAR Values ( 1000 );
    Insert into CHECKVARCHAR values ( 2000 );
    Insert into CHCEKVARCHAR values ( 10000 );
    Insert into CHECKVARCHAR values ( 'Abc' );
    Insert into CHECKVARCHAR values ( 'zyx' );
    /*Here is the Query to avoid Invalid Number */
    Select * from
    ( Select CheckValue
    from Checkvarchar
    where Ascii( Substr( CheckValue,1,1 ) ) not between 65 and 122 )
    where CheckValue between 1000 and 10000;

  • ALV WebDynpro Hierarchy -Setting non-numeric values in the header level row

    Hi Experts,
    When setting up an ALV table as a table hierarchy the standard ALV settings only seem to allow for numeric values to be displayed in the higher hierarchy levels. Is there a way to also set the values for some non-numeric columns into these higher-level rows - programmatically or through the ALV Settings?
    Example: I have delivery item level data in my context and the delivery number as a hierarchy column. Some columns in my context however actually come from the delivery header e.g. delivery block, delivery priority, ship-to etc and I would like to display these in the collapsed header rows of the delivery number.
    It seems obvious to me that this should be doable otherwise if you are looking at at a list of hundreds of deliveries and all you see besides the delivery number is numeric data such as sums & totals, it's kind of hard to know which delivery you might want to expand the sub-level for.
    Please help,
    Peter

    Hi,
    Even we have faced the same issue.
    In ALV hierarchy, we cannot display data at header items/levels. this is a constraint in ALV. You can achieve the same usign TABLE UI element.

  • Format mask for Numeric and Data data

    1)Is there any way to suppress timestamp for 12:00:00 value from a date column with TO_CHAR? except that value we should display time value for date column, like this
                 01/12/2009 01:15:01  , 01/12/2009 12:00:00
                 this should be like
                 01/12/2009 01:15:01 , 01/12/2009
                 2) Can I display "0." decimal infornt of numeric value? I used to_char('0.1','9999990.99') , but its displays leading spaces How can I toggle fm for numeric values ?
    Thanks,
    Hesh.
    Edited by: Hesh on Jun 23, 2009 12:27 AM

    A slight change to Michael's query (corrected a small typo)
    SQL> WITH test_tab
      2         AS (SELECT   SYSDATE date_col FROM DUAL
      3             UNION ALL
      4             SELECT   TO_DATE ('26/06/2009 12:00:00', 'DD/MM/YYYY hh24:MI:SS')
      5               FROM   DUAL)
      6               -- end test data
      7  SELECT   date_col,
      8           TO_CHAR (
      9              date_col,
    10              CASE
    11                 WHEN TO_CHAR (date_col, 'hh24:mi:ss') = '12.00.00'  -- typo error '.' instead of ':'
    12                 THEN
    13                    'dd.mm.rrrr'
    14                 ELSE
    15                    'dd.mm.rrrr hh24:mi:ss'
    16              END
    17           )
    18              dt
    19    FROM   test_tab
    20    /
    DATE_COL             DT
    23-JUN-2009 13:29:42 23.06.2009 13:29:42
    26-JUN-2009 12:00:00 26.06.2009 12:00:00
    2 rows selected.
    -- corrected query --
    SQL>   WITH test_tab
      2         AS (SELECT   SYSDATE date_col FROM DUAL
      3             UNION ALL
      4             SELECT   TO_DATE ('26/06/2009 12:00:00', 'DD/MM/YYYY hh24:MI:SS')
      5               FROM   DUAL)
      6               -- end test data
      7  SELECT   date_col,
      8           TO_CHAR (
      9              date_col,
    10              CASE
    11                 WHEN TO_CHAR (date_col, 'hh24:mi:ss') = '12:00:00'
    12                 THEN
    13                    'dd.mm.rrrr'
    14                 ELSE
    15                    'dd.mm.rrrr hh24:mi:ss'
    16              END
    17           )
    18              dt
    19    FROM   test_tab
    20  /
    DATE_COL             DT
    23-JUN-2009 13:29:44 23.06.2009 13:29:44
    26-JUN-2009 12:00:00 26.06.2009
    2 rows selected.
    SQL>Regards,
    Jo

  • Converting char to numeric value

    I have table with social security no. but application does not
    have any validation for data so i get all different kinds of
    data like...
    123-24-0988
    123458900
    n/a
    N
    f234-90-8877
    12 345 6789
    Now i want to remove all '-' and alpha char from value and just
    want to remain only nuemric characters so i can use it as where
    parameter.
    Is their any function that i can use for this or any other logic
    that i can use for this?
    Thanks

    As demonstrated in a previous discussion regarding checking for
    numeric values, translate does not produce the proper results
    when you translate it to a null value. However, you can achieve
    the desired results, by translating to spaces, then replacing
    the spaces:
    UPDATE table_name
    SET ssn = REPLACE (TRANSLATE (LOWER
    (ssn), 'abcdefghijklmnopqrstuvwxyz- ', ' '), ' ', '');

  • Popup Key LOV, NULL and "Invalid numeric value undefined for column"

    Hello.
    I've created an item based on database column of NUMBER type and set the following properties:
    Display As = Popup Key LOV (Displays description, returns key value)
    List of values definition=select 'display_value' d, 1 r from dual
    Null display value=%
    Null return value=
    Display Null=Yes
    When I select "%" in the LOV and try to apply changes to database I get error:
    ORA-20001: Error in DML: p_rowid=1781, p_alt_rowid=N1, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value undefined for column N2
    Error Unable to process row of table TTT.
    If I set Display As = Select List, all works fine. But I need Popup Key LOV.
    Could anybody help me?
    I use Application Express 2.2.1.00.04

    Hi all,
    I did my homework and solved this issue. First I would like to thank Patrick Wolf for the invaluable help he gives out on thread Re: Null value handling in LOVs The code presented here is just a minor edit to his code, but an essential one when dealing with Popup Key LOV items.
    Here's what I did:
    1. Create an Application Process.
    Name: RemoveNulls
    Sequence: 0
    Point: On Submit: After Page Submission - Before Computations and Validations
    Process Text:
    BEGIN
        FOR rItem IN
          ( SELECT ITEM_NAME
              FROM APEX_APPLICATION_PAGE_ITEMS
             WHERE APPLICATION_ID   = TO_NUMBER(:APP_ID)
               AND PAGE_ID          IN (TO_NUMBER(:APP_PAGE_ID), 0)
               AND LOV_DISPLAY_NULL = 'Yes'
               AND LOV_DEFINITION   IS NOT NULL
               AND LOV_NULL_VALUE   IS NULL
        LOOP
            IF (V(rItem.ITEM_NAME) = '%null' || '%' OR V(rItem.ITEM_NAME) = 'undefined')
            THEN
                Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
            END IF;
        END LOOP;
    END;Error Message: #SQLERRM#Condition: None
    2. You should be able to submit a Popup Key LOV with a NULL value now.
    Once again, THANKS, Patrick! You rock! I'm seriously thinking of trying ApexLib now :)
    Georger

  • Checkbox and ORA-20507: Invalid numeric value #:# for column

    Hi All,
    I'm facing problems Checkboxes in a form.
    I created a form and report on a table. one of the fields on the form is a checkbox and when ever I want to create a new record or update with more than one value for the checkkbox I obtain the following error:
    ORA-20507: Invalid numeric value #:# for column COLUMN_NAME Where by #:# is numbers
    I think the error occurs at the processes of get_pk and process_row_of_......
    how should I change the processes to accommodate the checkbox values.
    Kind regards
    Mel

    Hi Roel,
    Colunm = number
    LOV Definition
    select product display, prod_num return from product_category_vw
    where prod_num not in (select p.prod_num from product_user_tb p, user_tb u
    where p.user_num = u.user_number
    and u.user_name = :APP_USER)
    ORDER BY 1column = number
    LOV Definition
    select school d, sch_id r from school_tbRegards
    Mel

  • Convert numeric value to display as text based on record in another table? ASP/VB

    I have an orders table:
    orderID (PK)
    pickupname
    pickupaddress
    pickupregion (numeric)
    pickuppostcode
    deliveryname
    deliveryaddress
    deliveryregion (numeric)
    deliverypostcode
    I also have a regions table:
    regionID
    regionname
    On my ASP page, I would like to display the pickup and
    delivery addresses as
    follows, but also need this to be within a repeat region as I
    am displaying
    a number of orders on the page (I have wrapped what I want in
    the repeat
    region in dashes, below):
    ---------Repeat Region Start-----------
    Pickup Address:
    Name
    Address
    Region (pickupregion)
    Postcode
    Delivery Address:
    Name
    Address
    Region (deliveryregion)
    Postcode
    --------Repeat Region End------------
    As it displays at the moment, I get this (using sample data):
    ---------Repeat Region Start-----------
    Pickup Address:
    Joe Bloggs
    High Street
    12
    HT12 5TY
    Delivery Address:
    Jane Bloggs
    The Mall
    33
    DT6 5TG
    --------Repeat Region End------------
    Is there any way to convert these numeric values to the
    actual region name
    but to keep it within one recordset so that I can use the
    repeat region? I
    tried creating a recordset for regions (SELECT regionID,
    regionname FROM
    tblRegions WHERE regionID = pickupregion OR regionID =
    deliveryregion), but,
    because I'm not repeating this region, it just displays the
    same regional
    name for every order, albeit the first record returned does
    contain the
    correct values! :o)
    I was thinking about some kind of inner join, but it's having
    two numeric
    region fields in the orders table that is causing me
    headaches! PS. I need
    to keep the two addresses within one orders table - I had
    thought of that!
    Got me a bit stumped, I have to say. Any help would be
    greatly appreciated.
    Thanks.
    Regards
    Nath.

    I've tried this one already.
    I tried to leave it blank, & nbsp ; , text,... but the problem is that our lov is build by a function and it always returns a query, so the LOV is never null.
    I figured something out: made a process after header that has some cursors to get the values from the database and changed the item to a simple display as text-field. There were only 4 that were wrong, so it wasn't to much work.

Maybe you are looking for

  • Syntax error while precompiling query

    Hi, Using dbxml 2.3.8. I get this error when calling the manager's prepare() in PHP : Error: Variable :state does not exist [err:XPST0008], <query>:76:98 The (simplified) xquery looks like: " ... (doc("...")/*[1],$state)" I want $state to be a variab

  • CPU will not boot up

    CPU will not boot up. When the power button is pressed, either from a cold boot, power off or from a reset, the hard drive begins to operate, then you hear 4 beaps a pause of about 5 seconds and then the fan races.

  • Next previous button

    hi there, I'm looking for it for few days and just couldn't find what i'm looking for. i need to use the same button on click to play the next animation (label) and i have a back button which need to play the previous animation. sounds pretty easy, b

  • PL SQL execution in SQL developer

    I have a very simple table: CREATE TABLE Student ( login CHAR(5) PRIMARY KEY, fname VARCHAR(30) NOT NULL, lname VARCHAR(30) NOT NULL, email VARCHAR(40), isRich INT check(isRich IN (0, 1)) I have created stored procedure:9 create or replace PROCEDURE

  • Hello, persistant crashing, can anyone help me out?

    Hello! I am a new user, on the go, and my new MacBook Pro unfortunatly persistantly crashes when performing tasks such as software updating, downloading and uploading. I am new to OS X and am feeling a little lost. I assume, if I were to try performi