Report Parameter - Comma as Decimal Separator

Post Author: Jóhan E. M. J. Sivertsen
CA Forum: General
I want to use comma as decimal separator in Crystal Reports Server XI.
When designing the report in CR Professional (version 11.0.0.1994), my report both displays and understand comma as decimal separator when filtering with a parameter.
When running the same report in CR Server XI InfoView, the report correctly displays numbers with comma (,) as decimal separator, but the parameter uses dot/point (.) as decimal separator.
The report runs against Oracle 10g database.
Regional and Language Options is set to Danish (comma as decimal separator) on both my Windows XP PC (running CR Professional) and the Windows Server 2003 SP2 (running CR Server XI).
NLS_LANG is set to DANISH_DENMARK.WE8MSWIN1252 (comma as decimal separator) in the Windows registry. [HKEY_LOCAL_MACHINESOFTWAREORACLEKEY_OraClient10g_home1]"NLS_LANG"="DANISH_DENMARK.WE8MSWIN1252"
The report parameters are written directly in the query "command" in the CR database expert.
Why does the CR Server uses dot/point (.) as decimal separator in the parameter when CR Professional on my PC uses comma (,) as decimal separator in the parameter?
Is it possible to change this, so CR Server (CR InfoView) uses comma as decimal separator? If so, how? Please remember that the numbers displayed in the report itselves are written with comma as decimal separator. It is only the parameter that wants dot/point (.) as decimal separator.
ThanksJohan

Hi Sabcat,
You can temporarily rename the first channel to create header rows above the channels and temporarily rename the last channel to create channel header rows, such as unit information, then rename the channels back to their original values after the CSV export.  It's low-tech, but it works, and uses the full efficiency of the CSV data export, which runs in C++ code.  I have attached an example VBScript below which does this programmatically.  You will need to edit the DataFileSave() line to include the extra XML from the other posts to get your custom delimiter and comma options.  I don't know of any way to affect the NoValue text.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
ASCII Export with CSV Headers.zip ‏60 KB

Similar Messages

  • Oracle Reports has comma as decimal separator in XML output

    In XML, numbers should be canonical, otherwise BI Publisher errors with java.lang.NumberFormatException.
    (This regards the e-business suite, by the way.)
    We have trouble with our invoice report, a modified RAXINV, that suddenly makes XML files with comma. Which brought our invoicing process to a screeching halt. "Suddenly" means that it used to work, but now it does not work. I think someone has changed a setting somewhere, but nobody admits to doing that.
    Can anybody point out where to look? What is actually controlling the decimal separator used by Oracle Reports in the XML output?
    Thanksalotinadvance,
    Tore.

    Thanks for replying, Tim. (and thanks for a most enlightening "meet the experts" session at OOW)
    The language settings for RAXINV are controlled by an MLS language function. I have logged an SR, but the problem seemed to solve itself, so the SR was closed, and then the problem reappeared. Darn.
    However, I did some more research on Metalink and found this bug that seem to match our problem:
    Bug 5920262 - NLS_NUMERIC_CHARACTERS KEEP CHANGING DYNAMICALLY FROM SESSION TO SESSION
    I've ordered patching, so i think we'll have this fixed soon.

  • Illustrator Graphs; Add totals to a column design; Need , (comma) as decimal separator

    Hi all
    I am editing a German Annual Report.
    I live in Australia.
    My system runs OS X 10.10.2 and my Adobe Suite CC is English (or Australian, if that does make a difference in some library)
    I need to create a bunch of columns and bar graphs.
    The label next to a single column or bar is taken automatically from the data spread.
    The decimal separator in the data spread is a . (full stop, or dot)
    I need it do display a comma on the final graph. This is standard in many European languages.
    If I enter a comma in the data spread Illustrator refuses to draw a graph for this value.
    How can I do this?
    Regards
    Romano

    Thank you Jacob
    I have to play with this and see what happens if I open data with , as a separator at a later stage.
    Also I got lots of clients on the go at all times. I can not change my OS settings for this and then unwittingly create a problem on other clients files.
    I am looking at solving this for a specific client on a specific project. Also the files may be edited at the clients site (in Switzerland [Swiss German System]) at a later stage.
    I just sent them a test file and they tell me the separator is still a . when they open and edit the data.
    If it is in deed a OS issue... ...that should change the moment the edit the graph me thinks...
    Regards
    Romano

  • Why is it such a pain to use java in a country that uses commas as decimal?

    Why is it such a pain to use java in a country that uses commas as decimal separator?
    A few weeks back I've asked here about the keypad decimal key. For some reason, java doesn't map the decimal key to a comma on the Portuguese (Portugal) keyboard layout. I've got no answer and I ended up using a custom plainDocument on the JTextFields to replace all points with commas.
    Now, I've just spent the whole morning trying to store and use decimal numbers properly. For some reason, a Double/Float .valueOf method (or the corresponding parse method) simply ignores the locale in use and uses US defaults when parsing the string. I can't parse anything with commas in those methods and I should, as it is the decimal separator for the system and default locale being used by java.
    First of all, I shouldn't be expected to perform replacements on every single operation that comes with a comma and I obviously can't be expected to program my own locale checking to decide what decimal separator to use in each final system. Second, is there any way to work with numbers seamlessly, without having to know the locale of the end user?
    I'm sorry if this is all my fault for doing something completly wrong, I'm new to java and I did search around to no avail. I'm really frustrated with what seems to be a complete lack of support in java for locales other than the US one.

    Good old Cobol has the "DECIMAL-POINT IS COMMA" clause... And isn't it great? :)
    Second, is there any way to work with numbers seamlessly, without having to know the locale of the end user?Consider "123.456". In some locales, this number is one hundred twenty-three thousand, four hundred fifty-six. In other locales it is one hundred twenty-three and four hundred fifty-size thousandths. How will you be able to determine which, without a locale?That's not what I've meant. Java should know the locale and behave accordingly. I don't have to know the locale of the end user since it might vary greatly. My point is that if strings are flying around with commas and if comma is the decimal separator on the end user's machine, any method aimed at parsing a numeric value out of a string should regard commas as such. I'm constantly replacing dots with commas and vice versa which could cause trouble if a different locale is used.
    And I mean that as a rant. Given my inexperience with Java, there might be good reasons for such a behaviour as baftos argued. What I'm really interested is in finding the proper way to deal with this issue.
    Have you tried the NumberFormat.parse? I will now.
    Edited by: Smigh on Apr 9, 2008 9:21 AM

  • Using comma (,) as a decimal separator

    I know this isn't the right place to ask, but I cant get excel to use comma as a decimal separator.
    All is set up right in system preferences and I still cant get it to work in excel.
    So Im asking if any one know how to make the comma to be used for the decimal numbers and dot for thousands.
    Or if any one can explain this to me, or better do it for me.
    http://www.macosxhints.com/article.php?story=20050926170928881
    Many thanks

    Hi, Sven.
    You might want to search or post on the Excel group you can find on the Microsoft Mac Support - Newsgroups page. These are Google Groups with active participation from MS product users, including a variety of expert users.
    I don't mean to send you somewhere else, but I've found numerous answers there for folks with questions related to MS products. Accordingly, it has often proved to be the first, best place to look for answers to questions such as you are asking.
    When you post your question there, be sure to state the version of Excel you are using.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Crystal reports decimal separator issue

    Post Author: Ramco
    CA Forum: General
    In crystal reports XI and crystal reports XI R2 decimal separator is not changing according to regional setting. In report designer we have formated the field display style to "System Default Number format" and changed the regional settings to German(123.345.678,90).Still it is displaying the English(United States) format (123,345,678.90).Note: It is working fine in standalone applications.Problem is only with the web based appications.

    Post Author: royaouad
    CA Forum: General
    hi Ramco
    i have the same problem as u have. did u find any solution. if yes could u please tell me?

  • 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?

  • 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.

  • How to change the local decimal separator on windows xp OS ?

    Hi all,
    I would like to known how to change programmatically with LV8.5 the local decimal separator ? I want to force this parameter to the point separator, so to be sure that it's not the comma (if it's the comma when installing the executable, the ascii files are not read properly).
    Thanks.
    Wilfried.

    GerdW wrote:
    Hi Wilfried,
    you can use the format code "%.;" to get points as decimal separator in each string formatting function.
    This is the important one. Put it at the beginning of every format specifier!
    Some functions have a boolean control 'use local decimator' make sure this is 'F'
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • SSAS report action to pass multi-value list of dimention key values to a SSRS report parameter

    This was originally posted on StackOverflow and suggested I try here as well.
    I want to create a report action in an SSAS OLAP cube that generates a list of formatted values to pass into an SSRS report parameter that accepts a multi-valued parameter list.  This would be applied at the
    cell level in the SSAS action.  I have found a solution that gets me most of the way:
    How to Pass Multiple Values from an SSAS Report Drill Through Action to an SSRS Multi-Value Parameter, but not quite.  The action does appear in Excel and works
    if I run the action from a cell that is at or below the dimension attribute I am generating the list for, in this case,
    Account Key.
    Below is a link to a screen capture (unable to embed it due to lack of reputation) showing the action and dimension structure in Excel.  The action works as long as I run it at the
    Account Key level or below.  I want to be able to run it at higher levels, such as
    Account Major and still have it generate all then related Account Key values for the SSRS report parameter.  Running it at the higher
    Account Major level does not trigger the report to run.
    Excel Action Screen Shot:
    http://i.stack.imgur.com/QCGSp.png
    Below is the MDX I am using to generate the value for the report parameter:
    UrlEscapeFragment(
    GENERATE(
    DESCENDANTS(
    [Account].[Account Key].CurrentMember,
    [Account].[Account Key].[Account Key]
    [Account].[Account Key].CURRENTMEMBER.Name,
    "&rp:Account="
    I am hoping that I can somehow modify the MDX above to make it return all the
    Account Keys for any attribute of the Account dimension when ran from any measure cell, not just when ran at self and children of
    Account Key in the pivot table.
    Also, if it helps, I can execute the following MDX query on the cube and get the results I am looking for.
    WITH MEMBER [Measures].[Account Key List] as
    GENERATE(
    DESCENDANTS([Account].[Account].CurrentMember, [Account].[Account].[Account]),
    [Account].[Account].CURRENTMEMBER.NAME,
    "&rp:Account=")
    SELECT {[Measures].[Account Key List]} on 0,
    ([Account].[Account Company Number].[Account Company Number],[Account].[Account Major].[Account Major]
    ) on 1
    FROM [Company 10 Action Demo]
    Below are partial results:
    10.116&rp:Account=10.116.010
    10.117&rp:Account=10.117.010&rp:Account=10.117.020
    10.120&rp:Account=10.120.005&rp:Account=10.120.006&rp:Account=10.120.010&rp:Account=10.120.020&rp:Account=10.120.030&rp:Account=10.120.040&rp:Account=10.120.050&rp:Account=10.120.060&rp:Account=10.120.380&rp:Account=10.120.999
    10.123
    Questions
    Any ideas what I might need to do to get Account Key to be returned for any attribute of the
    Account dimension?
    Would I possibly have to alter my Account dimension in the cube to get this to work?
    Thanks in advance.
    Edit 1 - Adventure Works Cube Version
    I was unable to get the suggested answer with the "Exists" function to work.  To better demonstrate this issue, I have recreated it using the Adventure Works Cube.
    I will focus on the Customer dimension, specifically the Customer and
    Education attributes.  I created a report action called Test Report Action.  Below is the XML created for it in the cube.
    <Action xsi:type="ReportAction" dwd:design-time-name="f35ad5ee-5167-4fb8-a0e0-0a74cc6e81c6">
    <ID>Report Action 1</ID>
    <Name>Test Report Action</Name>
    <TargetType>Cells</TargetType>
    <Target></Target>
    <Type>Report</Type>
    <ReportServer>SQLSERVER</ReportServer>
    <Path>ReportServer?/Test Report</Path>
    <ReportParameters>
    <ReportParameter>
    <Name>Test Customer Existing</Name>
    <Value>UrlEscapeFragment(
    GENERATE(
    EXISTING DESCENDANTS(
    [Customer].[Customer].CurrentMember,
    [Customer].[Customer].[Customer]
    [Customer].[Customer].CURRENTMEMBER.Name,
    "&amp;rp:Customer="
    )</Value>
    </ReportParameter>
    </ReportParameters>
    <ReportFormatParameters>
    <ReportFormatParameter>
    <Name>rs:Command</Name>
    <Value>Render</Value>
    </ReportFormatParameter>
    <ReportFormatParameter>
    <Name>rs:Renderer</Name>
    <Value>HTML5</Value>
    </ReportFormatParameter>
    </ReportFormatParameters>
    </Action>
    Below are the steps to re-create the issue.
    Connect to the cube in Excel
    Add dimension Customer -> More Fields -> Customer
    Add measure Internet Sales -> Internet Sales Amount
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action" and see customer values created for URL 
    When the action is ran at this point with Customer, I see the values created in the URL shown message box (since there is no SSRS report server at location specified).
    Now the part I'm unable to resolve
    Remove the Customer dimension and add Customer -> Demographic -> Education
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action"
    Nothing happens. If I ran the action on the cell next to "Bachelors", I would want it to build up all the list of all the "Customers"  that make up the "Bachelors" in the
    Customer dimension as part of the report parameter.  If no attributes where used in the cube from the
    Customer dimension for that cell, then I would like it to return "All Customers", or something similar to show that all customers are included in the aggregations.
    I am not too MDX savvy, thus far.  I think I need to somehow join the
    Customers to Internet Sales Amount in the Generate function portion.  I have tried several different combinations of the
    Customer dimension and Internet Sales Amount, along with various functions to see if I could get this to work with no success.  I am hoping that someone more knowledgeable the me will have a solution.   If you need more details,
    please ask and I will provide them.

    Simon,
    Thanks for you help with this.  This morning I found a workaround.  Below describes what that is.
    What I ended up doing was getting a list of values from a degenerate dimension that I could use to pass to SSRS to get a list of transactions for a report.  Below is how I did this, in relation to the Adventure Works cube using the degenerate dimension
    Internet Order Details.
    WITH MEMBER [Measures].[Order Param List] AS
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    SELECT {[Measures].[Order Param List], [Measures].[Internet Sales Amount]} ON 0
    ,([Date].[Calendar].[Date]) ON 1
    FROM [Adventure Works]
    This will get a list of Sales Order Number in a text string, separated by "&rp:OrderNum=" for each measure of
    Internet Sales. This would allow me to create an SSRS report to bring back detail information for each
    Sales Order Number. Below are some sample results.
    May 16, 2007 SO50493&rp:OrderNum=SO50494&rp:OrderNum=SO50495&rp:OrderNum=SO50496&rp:OrderNum=SO50497&rp:OrderNum=SO50498&rp:OrderNum=SO50499&rp:OrderNum=SO50500 $12,157.80
    May 17, 2007 SO50501&rp:OrderNum=SO50502&rp:OrderNum=SO50503&rp:OrderNum=SO50504&rp:OrderNum=SO50505&rp:OrderNum=SO50506&rp:OrderNum=SO50507&rp:OrderNum=SO50508 $13,231.62
    May 18, 2007 SO50509&rp:OrderNum=SO50510 $4,624.91
    With this, I can then create a Report Action in SSRS with a Parameter Value of
    UrlEscapeFragment(
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    The way I was going about it before was flawed, as I was trying to get a list of the granular values from each dimension used to build the measure value and pass each one of those as separate parameters. I just needed to set something unique for each fact
    measure transaction that represents the value and uses that in a query parameter for the SSRS report.

  • Problem in Insertion into table through After Report Parameter form trigger

    Hi All,
    I am getting problem in inserting some data into temp table through Report.
    My requirement is like that, I have to do a calculation based on user parameters, and then insert the data into the temp table. I wanted to do this into After Report Parameter form trigger function. I have done all the calculation and wrote all the insert statement in that function. There is no problem in compilation. then I am taking value from this temp table in my formula columns.
    When I run this report, it hangs, don't understand what is the problem.Can anybody help me out in this.
    Thanks,
    Nidhi

    The code is as follows:
    function AfterPForm return boolean is
    CURSOR CUR_RECEIPT(RECEIPT_NUM_FROM NUMBER, RECEIPT_NUM_TO NUMBER) IS
    SELECT DISTINCT receipt, item_no FROM xxeeg.xxeeg_1229_sp_putaway WHERE RECEIPT BETWEEN
    RECEIPT_NUM_FROM AND RECEIPT_NUM_TO ;
    V_CUR_RECEIPT CUR_RECEIPT%ROWTYPE;
    begin
    OPEN CUR_RECEIPT(:RECEIPT_NUM_FROM, :RECEIPT_NUM_TO);
    FETCH CUR_RECEIPT
    INTO V_CUR_RECEIPT;
    LOOP
    EXIT WHEN CUR_RECEIPT%NOTFOUND;
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST1' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 12
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 13
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 14
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST2' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 16
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 17
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 18
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 19
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 20
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 21
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    END IF;
    END IF;
    END LOOP;
    COMMIT;
    CLOSE CUR_RECEIPT;
    return(TRUE);
    end;
    .....................................................................................................................

  • I want to create stored procedure which will give output rows from "values that are passed as one parameter (comma seperated) to store procedure".

    Hello,
    I want to create stored procedure which will give output rows from "values that are passed as one parameter (comma seperated) to store procedure".
    Suppose , 
    Parameter value : person 1,person2,person3 
    table structure : 
    Project Name | officers 1 | officers 2
    here, officers 1 or officers 2 may contain names of multiple people.
    expected OUTPUT : distinct list(rows) of projects where person 1 or person 2 or person 3 is either officer1 or officer 2. 
    please explain or provide solution in detail 
    - Thanks

    Hi Visakh,
    Thanks for reply.
    But the solution you provided giving me right output only if officer 1 or officer 2 contains single value , not with comma seperated value.
    Your solution is working fine for following scenario : 
    Project 
    Officers 1
    Officers 2
    p1
    of11
    off21
    p2
    of12
    off22
    with parameter : of11,off22 : it will give expected output
    And its not working in case of :
    Project 
    Officers 1
    Officers 2
    p1
    of11,of12
    off21,off23
    p2
    of12,of13
    off22,off24
    with parameter : of11,off22 : it will not give any row in output
    I need patten matching not exact match :) 
    ok
    if thats the case use this modified logic
    CREATE PROC GetProjectDetails
    @PersonList varchar(5000)
    AS
    SELECT p.*
    FROM ProjectTable p
    INNER JOIN dbo.ParseValues(@PersonList,',')f
    ON ',' + p.[officers 1] + ',' LIKE '%,' + f.val + ',%'
    OR ',' + p.[officers 2] + ',' LIKE '%,' + f.val + ',%'
    GO
    Keep in mind that what you've done is a wrong design approach
    You should not be storing multiples values like this as comma separated list in a single column. Learn about normalization . This is in violation of 1st Normal Form
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • LabVIEW to Excel - decimal separator issue

    I'm using a VI to copy a LabVIEW table to Excel
    http://forums.ni.com/ni/attachments/ni/170/125802/1/Write_Table_and_Chart_to_XL.llb
    My system uses the comma as a standard decimal separator. Despite changing the LabVIEW settings the table I generate uses a decimal point. When I copy the data values smaller than one are copied correctly, but values > 1 are recognized as the value times a million.
    0,9 is still 0,9 but 1,34 is 1340000
    Is there any way to resolve this issue
    Thanks
    Solved!
    Go to Solution.

    I ran your VI and everything looks fine for me!!
    I get the attached table when I ran the code.
    Are you using any non-english keybord? or is there any default settings in Excel with formatted cells? 
    Iam using LV8.5, and I changed the range property's value to Value2 in Set Cell Value.vi (since it had a broken arrow) 
    Message Edited by Vsh on 11-09-2009 02:55 AM
    Attachments:
    result.xls ‏14 KB

  • Non usa decimal separator

    How can I change decimal separator in DIAdem reports to print it according to my regional settings?

    Hi Juliano,
    Depending where in REPORT the number comes up, you either enter in a format string of "d,ddd" or you use the str() function with the same format string.
    It would help to know more about your report,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • 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.

Maybe you are looking for

  • NEED HELP TO SET UP SMALL NETWORK - WIRELESS SIGNAL FROM NOVATEL U760 USB

    Hello - I need help setting up a small network in my new home in Florida, which has no wired broadband capability - not cable, not dsl. My options are satellite (which I'd like to avoid) or wireless broadband via Millenicom (or now Virgin Mobile) usi

  • Is it possible to upgrade the IE 5 browser in OS 9.1?

    How we doin Gang? Got a lot of help here recently Ya know I'm sure other folks have asked about upgrading their IE 5 browser that comes with OS 9 - well I don't think Microsoft offers any more upgrades for MAC IE 5.0 (just like they're through with a

  • Mail/messages problem

    I can't get my Mail/Messages to work on iPhone 4 -- neither Gmail nor Earthlink.

  • What is ECC6.0 and what are the business benefits by upgrading ?

    what are the Business Benefits of upgrading SAP R/3 4.7 to ECC6.0 , can some one explain in brief..? Thanks and Regards,

  • APD - Query as Datasource

    Hello, We have an APD, that uses Query as a Data source. The query is built on Inventory Inforpovider and contains the Non-cumulative KYFs. We have used partitioning due to large result set returned by the query. This APD seems to be executing for ve