Decimal Separator in SELECT Clause

Hi
I have the following decimal format parameters:
SQL> select value
2 from v$nls_parameters
3 where parameter = 'NLS_NUMERIC_CHARACTERS';
VALUE
If I show a number with decimal I get a comma as the decimal separator
SQL> select 10/100 from dual;
10/100
,1
But if I use a decimal separator in the SELECT clause I get:
SQL> select 100 * 1,1 from dual;
100*1 1
100 1
It doesn't work. But using a period as the decimal separator works:
SQL> select 1.1 * 100 from dual;
1.1*100
110
Maybe this is something I've never had to deal with before but I thought that the numeric format applied to the sql results and also the numbers that you used in the sql clauses.
Regards,
Néstor Boscán

Hi,Néstor,
user594312 wrote:
... I thought that the numeric format applied to the sql results and also the numbers that you used in the sql clauses.No; it applies to results, and it can affect implicit conversions, but it doesn't apply to SQL code.
The period (or dot, '.') is always the decimal separator in numeric literals. There is no way to change that.
Think how confusing it would be if it did apply to SQL code! For example:
WHERE   num_col  IN (1,2)Are we comparing num_col to 1 value or 2 values? Whichever it is, what if we wanted to do the opposite?
If you really wanted to use comma as the decimal separator, you could have to use strings, not numbers, and that could be a lot less efficient.
For example:
SELECT  100 * TO_NUMBER ('1,1')    -- This assumes your NLS settings are correct
FROM    dual;Of course, efficiency won't be an issue when you're selecting 1 row from dual.

Similar Messages

  • Select changing decimal separator type

    I'm consulting a database which use comma "," as a decimal separator for numbers. I would like to make a select which takes those numbers using point "." as a decimal separator.
    for example I have a value 1,34 in the database, I would the make a select which returns this value as 1.34

    Or:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1224836384599#tom38829286554804
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams129.htm#REFRN10126
    http://www.oracle.com/pls/db102/search?remark=quick_search&word=nls_numeric_characters&tab_id=&format=ranked

  • ODI-HFM issue with decimal separator

    Hi all,
    We are extracting data from an HFM application A and loading into an HFM application B.
    Example:
    Data extracted from applicaiton A = 21.742.139,55
    Data loaded to application B (verified from Explore Data and Smart View) = 2.174.213.955,00
    Is data loading with ODI-HFM taking the regional settings?
    Any suggestions?
    If we extract data with HFM Client (logged on with the same user configured in HFM Data server) from application A and load it into application B, data is correct in application B.
    Current configuration is:
    - User preferences for HFM Application A
         * Decimal separator = ","
         * Thousands separator = "."
    - User preferences for HFM Application B
         * Decimal separator = ","
         * Thousands separator = "."
    - Regional settings of the server where the agent is running (English US)
         * Decimal separator = "."
         * Thousands separator = ","
    This setting is the same for all HFM application servers
    - ODI Datastore HFMDatastore
         * Decimal separator set to "," (this setting was changed to see if solved the issue)
    - ODI Datastore for staging table
         * Decimal separator set to "," (this setting was changed to see if solved the issue)
    - Language Settings for DB (American English)
    Thanks in advance!

    Hi Pls Use This
        For Decimal Separator other than . we need to Code to Convert , See This Code Below and Do the Code
    Private Function ReturnQty(ByVal Qty As String) As String
    Dim strQty As String
    Dim strSQL As String
    Dim strSeprtr As String
    Dim objRS As SAPbobsCOM.Recordset
    strSQL = "SELECT ThousSep FROM OADM"
    Set objRS = oSBC.oDICompany.GetBusinessObject(BoRecordset)
    objRS.DoQuery (strSQL)
    If Not objRS.EOF Then
            strSeprtr = objRS.Fields.Item("ThousSep").Value
    End If
    If strSeprtr = "," Then
    ReturnQty = Qty
    ElseIf strSeprtr = "'" And Len(Qty) <= 6 Then
    Qty = Replace(Qty, ",", ".")
    'Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    Qty = Qty
    ElseIf strSeprtr = "'" Then
    Qty = Replace(Qty, "'", "")
    'Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    Qty = Qty
    ElseIf strSeprtr = "." And Len(Qty) <= 6 Then
    Qty = Replace(Qty, ".", ",")
    Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    ElseIf strSeprtr = "." Then
    Qty = Replace(Qty, ".", "")
    Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    End If
    End Function
    Mohamed Zubair

  • Dyanmic SELECT clause

    Hi,
    I need to have a dynamic selsction of fields in a select query.
    I am using the same trick used in the where clause for te SELECT clause as follows:
      concatenate 'RBUKRS' 'RACCT' 'RZZRCNTR' v_field
               into v_sel separated by space
    .   select (v_sel)
          from zgroupt
          into table i_zgroupt
        where racct eq s_hkont..
    But this doesnt work.
    I have a requirement to fetch certain fields based on some conditions. How do i achieve it ?
    Regards,
    Stock

    Hi,
    Here is the dynamic where clause example code
    PARAMETERS: carr_id TYPE spfli-carrid,
                conn_id TYPE spfli-connid.
    DATA:       where_clause TYPE  STRING,
                and(4),
                wa_spfli TYPE spfli.
    IF carr_id IS NOT INITIAL.
      CONCATENATE 'CARRID = ''' carr_id '''' INTO where_clause.
      and = ' AND'.
    ENDIF.
    IF conn_id IS NOT INITIAL.
      CONCATENATE where_clause and ' CONNID = ''' conn_id ''''
        INTO where_clause.
    ENDIF.
    SELECT * FROM spfli INTO wa_spfli WHERE (where_clause).
      WRITE: / wa_spfli-carrid, wa_spfli-connid, wa_spfli-cityfrom,
               wa_spfli-cityto, wa_spfli-deptime.
    ENDSELECT.
    Regards
    Sudheer

  • Project in dutch language, but use a point as decimal separator (not comma)

    I am working with Haley v9.4.1.71.
    I am preparing a demo for coming wednesday in which I want Haleys to work together with Siebel. I have now ran in to a problem for which I can’t find the solution. I have made the rules in the Dutch language wich all works fine. As it seems it also uses the dutch format for numbers, this means that the decimal separator is a comma instead of a point. Siebel however, requires the decimal separator to be a (point).
    Data delivered from Haleys to Siebel is in the current situation therefore converted incorrectly.
    My question is:
    How can I keep the dutch language, but use the point as a decimal separator (instead of the comma).
    Thing I have tried already:
    - Configure the file hi-servlet.properties with the Haley Interactive Configuration Tool
    The ‘Application Output Numeric Format’ is #,###,###,##0.###############
    This looks correct, but still in the User Interface the comma is used as the decimal separator.
    - Set the Windows Regional and Language Options (Tab Regional Options) to English(United States) and customized the Decimal symbol to a point.
    - I have also looked in the Folder C:\Program Files\Haley\Office Rules 2008\Language\Dutch but couldn’t find specific settings for the comma separator
    I hope you can help me solve this issue.
    Sake Kampen

    Thank you for the reply.
    The problem to upgrading to v10 is that we make use of a OPA <-> Siebel integration developed by the local Dutch Oracle pre-sales team. And I don't know if we can replicate what Oracle has done for us if we upgrade.
    But the problem I'm having doesnt lie with the connection but with OPA itself, in OPA the decimal separator is a comma where I want it to be a point. This problem only exists when I create a Dutch project, when I create an English project (on the same windows environment with the same regional settings) the decimal separator is a point.
    I have advanced a little bit, but I’m not quite there yet.
    Haleys seems to use the Regional settings of Windows.
    The regional settings of my Windows-installation was English, so I temporarily went to Dutch to see what the settings were there. Ofcourse the numberformatting was in the dutch way with a comma as the decimal separator. So I changed this to a point and clicked ‘Apply’. Then I changed the language back to English and clicked ‘Apply’.
    In Haleys the same error persisted.
    So I went back to the regional settings of windows, and there I went back to dutch (English was still selected) and saw to my surprise that the ‘corrected’ decimal separator for dutch was set back to its default.
    So I changed it again to a point and now kept the dutch regional setting, and tested Haleys again. The behaviour of Haleys then changed. But surprisingly the decimal signs are now deleted.
    e.g.:
    a value derived from a table in excel is transformed as follows
    in Excel: 28.5 ==> in Haleys: 285
    Provided by user in Haleys: 543.1234 ==> shown in Haleys summary screen 5.431.234
    I can provide decimal numbers and they seem to be accepted, but if I show them in the summary screen (using the%%) I see that every number is rounded to a whole one in the way described above.
    Are you certain this is a known issue that has been adressed in Haleys 10?

  • Big issue with decimal separator

    regional settings of machine where client & server reside are for european country (decimal separator is ",")
    sap b1 decimal separator is set also for ",".
    exception occurs when I set in code, for a edittexts' datasource of type SUM a decimal value using ",". If I set the value using "." it works. how the $%#$% is this possible?

    Hi Pls Use This
        For Decimal Separator other than . we need to Code to Convert , See This Code Below and Do the Code
    Private Function ReturnQty(ByVal Qty As String) As String
    Dim strQty As String
    Dim strSQL As String
    Dim strSeprtr As String
    Dim objRS As SAPbobsCOM.Recordset
    strSQL = "SELECT ThousSep FROM OADM"
    Set objRS = oSBC.oDICompany.GetBusinessObject(BoRecordset)
    objRS.DoQuery (strSQL)
    If Not objRS.EOF Then
            strSeprtr = objRS.Fields.Item("ThousSep").Value
    End If
    If strSeprtr = "," Then
    ReturnQty = Qty
    ElseIf strSeprtr = "'" And Len(Qty) <= 6 Then
    Qty = Replace(Qty, ",", ".")
    'Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    Qty = Qty
    ElseIf strSeprtr = "'" Then
    Qty = Replace(Qty, "'", "")
    'Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    Qty = Qty
    ElseIf strSeprtr = "." And Len(Qty) <= 6 Then
    Qty = Replace(Qty, ".", ",")
    Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    ElseIf strSeprtr = "." Then
    Qty = Replace(Qty, ".", "")
    Qty = Replace(Qty, ",", ".")
    ReturnQty = Qty
    End If
    End Function
    Mohamed Zubair

  • Zero before decimal separator

    Hi,
    I swear I've been looking the forum before asking my question:
    since a while I'm looking for a way, thru an alter session or thru sql*plus, to set a zero before the decimal separator when my values are between -1 and 1 ...
    example:
    select val from myTable;
    val
    5.2
    8.2
    .5
    -5
    -.3
    -1
    and I would have:
    5.2
    8.2
    0.5
    -5
    -0.3
    -1
    Thanks for your help.
    Stephane Dekeyzer.

    Thank you all.
    I've also discovered format 'fm90.9999'
    fm removes the not usefull trailing zero.
    Stephane.

  • Change of decimal separator

    Is it possible to change the decimal separator for importing data?
    I have data with , as separator can I change the default Point to comma?
    Thanks for your interest
    Thomas Pfeiffer
    Message Edited by Thomasrp on 02-16-2006 10:10 AM
    Solved!
    Go to Solution.

    I really don't understand your problem, because normally DIAdem can import both types of decimal separators... If you use the ASCII Import the important is that you use the proper configuration for your file type… and if this file uses the comma as a decimal separator, the delimiter character between data will not be a comma… DIAdem should import the data with no problem, but on DIAdem you will see always the "." (dot)
    If your problem is that on the DIAdem View you want to see the "," comma you can do the following:
    - Right mouse click, and select "Table Settings"
    - Change the numeric format, for example "dd,ddd" then you will see only 3 decimal places and the decimal separator will be the comma.
    Hope this helps you,
    Marc.

  • How change decimal separator from . to ,

    Hi
    I need change the decimal separator from . to ,
    and apply ZZZ.ZZ9,99
    thanks

    There are a number of ways in which you can change these characters. They can be changed for all jobs by updating the jfmerge.ini, or for a single job by using command line options.
    You can update the jfmerge.ini either in an editor, or by using Central Control.
    In an editor you will update the entries for CurrencyComma (, by default) and CurrencyDot (. by default).
    In Central Control go to the 'Configuration' menu item, then select 'Configure Central and Agents', then select 'Print Agent' and Edit. Then select the 'Currency' button. You can now modify any of the currency options.
    On the command line you can enter -acucc=. for the thousand separator, and -acucd=, for the decimal separator.
    For more info on these options see the -acu Option Arguments in the Print Agent documentation.

  • ORA-00913: too many values - how to change decimal separator?

    I want to use SQL Developer's database export and need advice how to tweak the decimal separator from , to . in the sql-inserts created.
    Preferrably in SQL Developer, because this error can be easily happen and is hard to catch during import.+
    See below how to reproduce this:
    h3. 1.) ddl (ugly)
    set SERVEROUTPUT on
    CREATE TABLE AADECIMEXPORT
    "DECIMALNUMBER" NUMBER
    , "HUBBABUBBA" varchar2(20 byte)
    CREATE TABLE succeeded.
    h3. 2.) inserts by hand
    insert into AADECIMEXPORT(DECIMALNUMBER,HUBBABUBBA) values(10,'smells integer');
    insert into AADECIMEXPORT(DECIMALNUMBER,HUBBABUBBA) values(3.141592654,'smells rounded pi');
    1 rows inserted
    1 rows inserted
    ¨
    h3. 3.) select * from AADECIMEXPORT
    DECIMALNUMBER HUBBABUBBA
    10 SMELLS INTEGER
    3,141592654 smells rounded pi
    h3. 4.) then use sqldevelopers Tools-"database export" to export this table
    -- File created - tiistai-marraskuu-23-2010
    -- DDL for Table AADECIMEXPORT
    CREATE TABLE "AADECIMEXPORT"
    (     "DECIMALNUMBER" NUMBER,
         "HUBBABUBBA" VARCHAR2(20)
    -- DATA FOR TABLE AADECIMEXPORT
    -- FILTER = none used
    REM INSERTING into AADECIMEXPORT
    Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (10,'smells integer');
    Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (3,141592654,'smells rounded pi');
    -- END DATA FOR TABLE AADECIMEXPORT
    h3. 5.) Test the insert
    Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (3,141592654,'smells rounded pi');
    Error starting at line 49 in command:
    Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (3,141592654,'smells rounded pi')
    Error at Command Line:49 Column:12
    Error report:
    SQL Error: ORA-00913: too many values
    00913. 00000 - "too many values"
    *CAUSE:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    About
    Oracle SQL Developer 2.1.1.64
    Version 2.1.1.64
    Build MAIN-64.45
    Copyright © 2005,2009 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.2.36.55.30
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.64.45
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.6.0_14
    Oracle IDE     2.1.1.64.45
    Versioning Support     2.1.1.64.45

  • Trinidad-config.xml, number-grouping-separator and decimal-separator

    Hi,
    According to my application locale, numbers are formatted as 1.234,56
    Now I want numbers to be formatted the US flavour: 1,234.56
    Here is my trinidad-config.xml file contents:
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <skin-family>mySkin</skin-family>
    <number-grouping-separator>,</number-grouping-separator>
    <decimal-separator>.</decimal-separator>
    </trinidad-config>
    The file above is declared in the web.xml file (although I'm not pretty sure this is really necessary):
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/trinidad-config.xml</param-value>
    </context-param>
    And an example of a numerical input text:
    <af:inputText value="#{row.bindings.Salary.inputValue}" label="#{bindings.EmployeesView3.hints.Salary.label}"
    required="#{bindings.EmployeesView3.hints.Salary.mandatory}" columns="#{bindings.EmployeesView3.hints.Salary.displayWidth}"
    maximumLength="#{bindings.EmployeesView3.hints.Salary.precision}" shortDesc="#{bindings.EmployeesView3.hints.Salary.tooltip}"
    id="it5">
    <f:validator binding="#{row.bindings.Salary.validator}"/>
    <af:convertNumber pattern="#{bindings.EmployeesView3.hints.Salary.format}" />
    </af:inputText>
    Where the pattern is set at Entity Object level: Employees EO > Salary attribute > UI Hints > Format: #,##0.00
    But it doesn't work. I don't know what I'm missing... Please, help!
    JDev 11.1.1.3.0

    Hello. With my application locale, numbers are formatted as 1234,56
    But i need 1 234.56 format.
    To achieve this, I use trinidad-config.xml, that contains few options:
    <?xml version="1.0" encoding="windows-1251"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <skin-family>mySkin</skin-family>
    <number-grouping-separator> </number-grouping-separator>
    <decimal-separator>.</decimal-separator>
    </trinidad-config>
    On my page i use af:outputText with af:convertNumber as shown below:
    <af:outputText value="1234567,890" id="ot2">
    <af:convertNumber currencySymbol="USD" minFractionDigits="2"
    groupingUsed="true" type="currency"
    maxFractionDigits="2"/>
    </af:outputText>
    Output: *1 234 567,89 USD*
    Why decimal separator hasn't changed?
    Byt the way. With convertNumber type "percent" output will be *1 234 567.89%*

  • Need to know the column names in my dynamic select clause

    Dear All,
    Please go through the following code. While executing the following code i am getting an error saying that dbms_sql.describe_columns overflow, col_name_len=35. Use describe_columns2.
    Please guide me how to proceed further. Or please help me, how can i get the column names when i issue a dynamic select clause.
    DECLARE
    CUR INTEGER;
    COL_CNT INTEGER ;
    A INTEGER;
    SEL_CLAUSE VARCHAR2(2000);
    DESC_T DBMS_SQL.DESC_TAB;
    REC DBMS_SQL.DESC_REC;
    b number;
    BEGIN
    SEL_CLAUSE := 'SELECT 1,2,DECODE(1,1,''ONE'',2,''TWO'',3,''THREE'') FROM DUAL';
    --'SELECT ROWID,PARA_SUB_CODE,DECODE('||''''||'ENG'||''''||','||''''||'ENG'||''''||',PARA_NAME,PARA_BL_NAME),NULL,NULL FROM PCOM_APP_PARAMETER';
    --'SELECT 1,2,DECODE(1,1,''ONE'',2,''TWO'') FROM DUAL';
    DBMS_OUTPUT.PUT_LINE( SEL_CLAUSE );
    CUR := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(CUR,SEL_CLAUSE,DBMS_SQL.NATIVE);
    DBMS_SQL.DESCRIBE_COLUMNS(CUR,COL_CNT,DESC_T);
    B := desc_t.first;
    FOR J IN 1..COL_CNT
    LOOP
    DBMS_OUTPUT.PUT_LINE('J := '||J || ' COL CNT ' || COL_CNT);
    END LOOP;
    BEGIN
    A := DBMS_SQL.EXECUTE(CUR);
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    END;
    Regards,
    Balaji

    Is there any way can i have it directly??It does not work with static SQL either. Dynamic SQL is no different.
    SQL> select 1 x from dual where x = 1 ;
    select 1 x from dual where x = 1
    ERROR at line 1:
    ORA-00904: "X": invalid identifier
    SQL>As suggested already, you will need to use alias if you want your select expression to be referred in the where clause.
    SQL> BEGIN
      2      FOR rec IN (SELECT *
      3                  FROM   (SELECT 1,
      4                                 2,
      5                                 DECODE(1, 1, 'ONE', 2, 'TWO', 3, 'THREE') "DECODE(1, 1, 'ONE', 2, 'TWO', "
      6                          FROM   DUAL)
      7                  WHERE  "DECODE(1, 1, 'ONE', 2, 'TWO', " = 'ONE')
      8      LOOP
      9          NULL;
    10      END LOOP;
    11  END;
    12  /
    PL/SQL procedure successfully completed.
    SQL>Message was edited by:
    Kamal Kishore

  • &param lexical variable in SELECT clause

    Is there a way to get Oracle*Reports to accept a lexical variable in the SELECT clause? The example is:
    SELECT
    table.column1,
    table.column2,
    &PARAM as column3
    FROM
    table
    I am already using lexical variables in the WHERE clause, but getting one to work in the SELECT clause has thus far failed.
    The SQL is accepted if :PARAM is used in place of &PARAM, but I am unable to actually vary the selected column this way.
    The bind variable PARAM has the following code behind it in a BeforeReport trigger:
    IF :ANOTHER_PARAM := 'ALL' THEN
    :PARAM = 'ALL'
    ELSE
    :PARAM = 'table.column3'
    When using :PARAM in the SELECT clause, the literals 'table.column3' are returned, not the contents of table.column3.

    Sorry for the wasted bandwidth. I found a solution. Here it is:
    SELECT
    table.column1,
    table.column2,
    CASE :P_USER
    WHEN 'ALL' THEN 'ALL'
    ELSE table.column3
    END as column3

  • Merge can't accept a variable in the select clause?

    oracle 10.2
    I have a stored procedure.
    I have a variable, vseq, which I set a sequence variable. With all other sql statements I can do
    insert into table a
    select vseq
    from dual;
    Apparently a merge can't handle variables in the select clause. I get an error. I can get it to work when I hard code a value.
    this is ridiculous...

    merge can't handle variables in the select clauseCare to prove?
    sql> DECLARE
      2   v_first_name varchar2(20) := 'BOSS';
      3  BEGIN
      4  MERGE INTO sun_employees se
      5  USING (SELECT * FROM employees WHERE department_id = 20) e
      6  ON (e.employee_id = se.employee_id)
      7  WHEN MATCHED THEN
      8    UPDATE SET salary = e.salary
      9  WHEN NOT MATCHED THEN
    10  INSERT(employee_id, first_name, last_name, department_id)
    11  VALUES (e.employee_id, v_first_name, e.last_name, e.department_id);
    12  END;
    13  /
    PL/SQL procedure successfully completed.
    sql> select first_name from sun_employees;
    FIRST_NAME
    BOSS
    BOSS

  • Using @Prompt in the SELECT clause (?)

    Post Author: faltinowski
    CA Forum: Semantic Layer and Data Connectivity
    Product:  Business Objects
    Version:  6.5 SP3 
    Patches Applied:  MHF11 and CHF48
    Operating System(s):  Windows
    Database(s):  Oracle
    Error Messages:  "Parse failed: Exception: DBD, ORA-00903 invalid table name  State N/A"
    Hi!  I'm bewildered -- we have an object that parses but when I try to reproduce this object, it does not.
    We have a universe that's been in production for several years using an object developed by another designer who's no longer with the company.  This object is a dimension, datatype is character, and there's no LOV associated.  The SELECT statement in this object is
    decode(@Prompt('Select Snapshot Month','A','Object Definitions\CY Month Snapshot',MONO,CONSTRAINED),'00-Previous Month',to_number(to_char(add_months(sysdate,-1),'MM')),'01-Current Month',to_number(to_char(add_months(sysdate,0),'MM')),'01-January','1','02-February','2','03-March','3','04-April','4','05-May','5','06-June','6','07-July','7','08-August','8','09-September','9','10-October','10','11-November','11','12-December','12')
    This object parses. The client uses the object in the select clause to capture the "month of interest" for the report.  So the report may be for the entire year's data which is graphed to show trends, but there's a table below the graph which is filtered to show just the month of interest.  Typically they use the value "00-Previous Month" so they can schedule the report and it will always show the last month's data.
    Problem
    The original object parses.
    If I copy the object within the same universe, it parses.
    If I copy the code into a new object in the same universe, it doesn't parse
    If I copy the code into a new object in a different universe, it doesn't parse
    If I copy the object to a different universe, then edit the LOV reference, it doesn't parse
    If I create any new object having @Prompt in the SELECT statement, it doesn't parse.
    If another designer tries - they get the same thing.
    What am I missing?  Obviously someone was able to create this successfully.
    On the brighter side
    The object I created in a new universe (which doesn't parse in the universe) seems to work fine in the report.

    Seems that, the prompt syntax is correct.
    But the condition is not correct.
    You are taking the prompt value and not doing anything. That could be one issue for this error.
    I believe that, you just want to capture the prompt value use it in report level and do not want to apply as a filter.
    So, use the condition as follows.
    @Prompt('Select Grouping','A',{'A','B','C'},mono,constrained) = @Prompt('Select Grouping','A',{'A','B','C'},mono,constrained)
    Hope this helps!

Maybe you are looking for

  • Impersonate a user

    I'v written a add-on that till recently worked perfectly but due to the users messing around to much in the SAP forms (particularly invoice but others as well), we had to look for a way to restrict there actions. Since SAP only provides a 'do not ope

  • Safari Closed due to Flash

    Here is the info given in regards to the problem. Please help. Thank you Process: Safari [8680] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 5.0 (6533.16) Build Info: WebBrowser-75331600~5 Code Type: X86

  • Updates for Acrobat 9 Pro

    Recently had major crash.  Had to uninstall / reinstall Acrobat 9 Pro.  Where can I find updates from 9.0 to 9.5 or most recent?

  • 2011 MBP Overheating with just Safari?

    I'm really confused... my macbook pro didn't do this before, but for the past week it's been getting super hot when I'm just using safari. And last night the fans had to kick in even though I only had safari and twitter open.... Is there something wr

  • Cannot pass property to Flex app

    Hello: I have the following line in some ActionScript which displays "undefined" when run.  The code is run when the creationComplete function is called. Alert.show(Application.application.parameters.level); I have the following in my launch page.  T