Displaying a comma in CSV

Hello Everyone,
I have comma in my CSV file. This puts the data after comma in a new column.
How should I display a comma in CSV file ?
Thanks

value in my work area has a comma .. say
wa-text = 'food,water,air'.
now this all should come in one column. as of now food comes in first , water in second and so on.
how should I pass this in quotes ? because
"wa-text" will pass the text and not value in wa-text.
Thanks
Edited by: shalaxy s on Dec 15, 2009 5:58 PM

Similar Messages

  • Currency field to be displayed with commas and asterisks(formatting)

    I have a field REGUH-RWBTR in my sap script code. I need to have the currency displayed with commas. And also if the digits are less, then left pad it with asterisks for remaining spaces.
    For eg, If the Digit is 12345678912.23 (max value), it should print as 12345,678,912.23.
    And If the digit is 12345.89, it should print as ******12,345.89
    Please help me to solve this problem.Its urgent.
    Thanks,
    Sandeep.

    Hello,
    You can use the WRITE using EDIT MASK.
    USING { {NO EDIT MASK}|{EDIT MASK mask} }
    Effect
    This addition overrides a conversion routine defined through reference to the ABAP Dictionary. The addition NO EDIT MASK only switches off the execution of an assigned conversion routine. The addition EDIT MASK calls either another conversion routine or defines an edit mask. For mask, a data object of the same name is expected.
    In order to call an arbitrary conversion routine CONV, mask must contain two equals signs, followed directly by the name of the conversion routine: "==CONV". During output, the content of dobj is passed to the function module CONVERSION_EXIT_CONV_OUTPUT, converted there, and then the result is displayed. If the function module is not found, an exception that can be handled is triggered (as of Release 6.10). The statement DESCRIBE FIELD contains an addition in order to fill mask accordingly.
    If the output length is specified explicitly with len, the conversion routine is executed for the specified length; otherwise for the implicit output length. If * or ** is specified for the output length, the appropriate rules are used for the converted result.
    If the first two characters in mask are not equals signs, the content is interpreted as an edit mask in which some characters have a particular meaning. The WRITE statement does not then output the content of dobj directly, but the character string in mask as follows:
    If the first two characters in mask are "LL" or "RR ", these are not output, They control whether the edit mask is left-justified or right-justified. If the first two characters are other characters, the edit mask is left-justified.
    All "_" characters are replaced from the left (in the case of "LL") or from the right (in the case of "RR") with characters for character-type types or numbers for the types p or i from dobj. In the case of fields of type c, closing blanks are ignored. Data objects of type f or x are converted into type c before editing. Superfluous characters "_" in mask are replaced by blanks. Characters from dobj for which there are no characters "_" in mask are not displayed.
    If dobj is of type i or p, the first character from the left "V" in mask is replaced with "-" in the case of a negative number and by blank in the case of a positive number.
    All the other characters of the edit mask are displayed unchanged.
    If no output length is specified, the implicit output length of dobj is used. If len is specified for the output length, the value of len is used. If * is specified for the output length, exactly that length that is required for the list display is set. If, in Unicode systems, characters of the edit mask are replaced by characters that take up more than one column on the list, the output length is increased accordingly and the output is filled with blanks in the list buffer. If ** is specified for the output length, double the length of the edit mask mask is used.
    If other formatting options are specified concurrently for an edit mask, these are used first and then the special characters in the edit mask are replaced by the interim result. The date masks date_mask are an exception to this. If these are specified, the edit mask is ignored.
    Notes
    In Unicode systems, you must remember that a character "_"in the edit mask does not necessarily correspond to a column in the list display since the space required in the display depends on the character to be replaced.
    The minus sign for a negative number is not displayed if no edit character "V" is specified. The decimal separator of a packed number with decimal places must be specified at the required position in the edit mask.
    Example
    Edited output of time duration. In the first output, the function module CONVERSION_EXIT_DURA_OUTPUT is executed. This converts the duration specified in seconds into minutes. In the second output, the edit mask is output according to the above rules. However, the underscore characters "_" are replaced by the characters from time.
    DATA: dura TYPE i,
          time TYPE t VALUE '080000'.
    dura = sy-uzeit - time.
    time = dura.
    WRITE /(30) dura USING EDIT MASK '==SDURA'.
    WRITE /(30) time USING EDIT MASK
                           'RRThe duration is __:__:__'.
    Regards,

  • Is there a spinner graphic that I can display while generating a CSV?

    I'm using Scott Spendolini's Download to CSV using a before header process to generate the CSV on a page branched to from a button on a previous page. The file takes about a minute to generate before the Save Dialog appears. I'd like to display a spinner graphic until the Save dialog appears when
    apex_application.g_unrecoverable_error := true;
    is hit on the before header proc on the called page. Any suggestions would be appreciated.

    Hi Phil.
    I'm using Scott Spendolini's Download to CSV using a before header process to generate the CSV on a page branched to from a button on a previous page. The file takes about a minute to generate before the Save Dialog appears. I'd like to display a spinner graphic until the Save dialog appears whenapex_application.g_unrecoverable_error := true;
    is hit on the before header proc on the called page. Any suggestions would be appreciated.>
    For how to display progress see https://forums.oracle.com/forums/search.jspa?threadID=&q=display+progress&objID=f137&dateRange=last90days&userID=&numResults=15&rankBy=10001
    If you want the animated image , as your post title seems to suggest, try http://ajaxload.info/
    Cheers,

  • How to solve extra commas in CSV files in FCC..!!

    Hi,
    I have the CSV file with comma(,) separator which has around 50 fields. Among them there were some description fields which has comma (ex: karan,kumar) which has to come as a single field and comes as 51 fields instead of 50.
    Due to this, im facing problem at File content conversion and it is failing with error " ERROR converting document line no. 8534 according to structure 'Header':java.lang.Exception: ERROR in configuration / structure 'Header.': More elements in file csv structure than field names specified!
    We have around 10 fields which comes in this way.Any idea how to solve this issue?
    Thanks
    Deepthi.

    Hello Deepthi,
                 The option here is use fieldFixedLengths instead of fieldSeparator. By this way evethough you have more fields in file than given filednames, it will not trigger any error. (But this one will still keep the commas which you might not need in the xml structure, though you can replace these in mapping anyway this is one solution )
    enclosureSign option you can try, but you need do include the delimeter in you file structure, which is again a troublesum.
    eg:- field1, | karan,kumar|,fieldn
    In case you are familier with Adapter Module you can do it  easily, but its a final option as far i am concern.
    Regards,
    Prasanna

  • How to display data from local csv files (in a folder on my desktop) in my flex air application using a datagrid?

    Hello, I am very new to flex and don't have a programming background. I am trying to create an air app with flex that looks at a folder on the users desktop where csv files will be dropped by the user. In the air app the user will be able to browse and look for a specific csv file in a list container, once selected the information from that file should be displayed in a datagrid bellow. Finally i will be using Alive PDF to create a pdf from the information in this datagrid laid out in an invoice format. Bellow is the source code for my app as a visual refference, it only has the containers with no working code. I have also attached a sample csv file so you can see what i am working with. Can this be done? How do i do this? Please help.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="794" height="666">
        <mx:Label x="280" y="19" text="1. Select Purchase Order"/>
        <mx:List y="45" width="232" horizontalCenter="0"></mx:List>
        <mx:Label x="158" y="242" text="2. Verify Information"/>
        <mx:DataGrid y="268" height="297" horizontalCenter="0" width="476">
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
                <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
            </mx:columns>
        </mx:DataGrid>
        <mx:Label x="355" y="606" text="3. Generated PDF"/>
        <mx:Button label="Click Here" horizontalCenter="0" verticalCenter="311"/>
    </mx:WindowedApplication>

    Open the file, parse it, populate an ArrayCollection or XMLListCollection, and make the collection the DataGrid dataProvider:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_08.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_01.ht ml
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/XMLListCollection.html
    If this post answered your question or helped, please mark it as such.

  • "0" doesn't display before comma in float numbers...

    Hi fellow APEX users,
    Have you ever experienced this issue with float numbers in your APEX forms?
    When I type float numbers between -1 and 1 in forms (e.g. 0,7 or -0,2), and after having submitted the form then reloaded it for editing, "0" doesn't display before the comma.
    For example I got:
    *,7* instead of *0,7*
    -,2 instead of -0,2
    etc.
    If I look in SQL Workshop, I see the same (no "0") but I'm pretty sure that the value is properly recorded in the database.
    The thing is that it's not very nice for the end users, as they can think the value is wrong.
    Does anybody have a solution to display proper float numbers with "0" in the forms?
    For info I use the NUMBER type.
    Any help much appreciated!
    Thanks,
    Romain.
    Edited by: romain.apex on Feb 5, 2012 8:30 PM

    Hi Peter!
    Of what type is your item? Display as text or do you use the item value for further computations.
    If it is only for means of displaying the correctly formatted number, I'd change the item source to a query and would equip the desired column with a to_char function like:
    select to_char(str_be_main, 'fm999G999G990D00') from yourtable where ...You could also use a post calculation computation and enforce the format there:
    to_char(:P2027_YOUR_ITEM,'fm999G999G990D00')Maybe this helps!
    Brgds,
    Seb
    Edited by: skahlert on 11.02.2011 07:53

  • Excel comma seperated .csv files save as semicolon seperated

    Hi
    I work with excel 360 student version danish and i'm trying to convert an siemens .xmls generated file to an .csv comma seperated file but excel save it as an semi colon though it's written in help file it should save it as an comma seperated file.
    Any solution on that what i would call a bug thats been there for over a year?

    Kent, I think you're posting a complaint about Excel, which is off topic for the TechNet Website Feedback forum. The best place to post that would be over at http://answers.microsoft.com in the office section.  Below is some boilerplate that
    I've written up that might also help you.
    Thanks,
    Mike
    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is only one forum among the many that are on the TechNet Discussion Forums, and given
    your post, you likely chose the wrong forum.  This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve
    collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • Commas in csv file

    I have csv file which look like this
    Name1,12,Address,"10,121.00",zip1
    Name2,13,Address,"11,150.00",zip2
    But the problem here is when xi reads it using file adapter the
    amount field is taken as two parts even if i have mentioned in quotes
    "10,121.00" - xi reads as "10 and 121.00"
    How can i handle commas of an amount field in a csv file
    Thanks
    Sebin

    Hi Sebin !
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    &#9679;      NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    &#9679;      NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    &#9679;      NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    &#9679;      NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    &#9679;      NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Regards,
    Matias.

  • Ssrs 2012 export to comma delimited (csv) file problem

    In an ssrs 2012 report, I want to be able to export all the data to a csv (comma delimited) file that only contains the detailed row information. I do not want to export any rows that contain header data information.
    Right now the export contains header row information and detail row information. The header row information exists for the PDF exports.
    To have the header row not exist on CSV exports, I have tried the following options on the tablix with the header row information with no success:
    1. = iif(Mid(Globals!RenderFormat.Name,1,5)<>"EXCEL",false,true),
    2. = iif(Mid(Globals!RenderFormat.Name,1,3)="PDF",false,true),
    3. The textboxes that contain the column headers, the dataelelementoutput=auto and
       the text boxes that contain the actual data, I set the dataelelementoutput=output.
    Basically I need the tablix that contains the header information not to appear when the export is for a csv file.
    However when the export is for the detail lines for the csv export, I need that tablix to show up.
    Thus can you tell me and/or show me code on how to solve this problem?

    Hi wendy,
    Based on my research, the expression posted by Ione used to hide items only work well when render format is RPL or MHTML. Because only the two render format’s RenderFormat.IsInteractive is true.
    In your scenario, you want to hide tablix header only when export the report to csv format. While CSV file uses the textbox name in detail section as the column name, not the table header when you view the table. So if we want to hide the header row of the
    tablix, please refer to the steps below to enable the “NoHeader” setting in the RSReportserver.config file:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS1111.MSSQLSERVER\Reporting Services\ReportServer \RSReportserver.config.
    Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
    In the <Render> section, add the new code for the CSV extension like this:
        < Extension Name="CSV"   Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
            <Configuration>
                <DeviceInfo>
                   <NoHeader>True</NoHeader>
                </DeviceInfo>
            </Configuration>
        < /Extension>
    Save the RSReportserver.config file.
    For more information about CSV Device Information Settings, please see:
    http://msdn.microsoft.com/en-us/library/ms155365(v=sql.110)
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • What is the escape charcter for comma in csv flashvars?

    Hi,
    I do have a comma in my flashvar (csv format) value. The comma is getting interpreted as a separator and the value is getting split in the visualization. Is there a way to escape comma in flashvar csv formats?
    Thanks,
    bi_suresh

    The regex engine needs to see \. but if you're putting it into a String literal in a .java file, you need to make it \\., as Rene said. This is because the compiler also uses \ as an escape character, so it will take the first \ as escaping the second one, and remove it, and the string that gets passed onto the regex will be \.

  • Comma in csv file

    Can I use only split for parsing a csv file with commas?

    No.
    It's more complicated than that.
    Use a CSV parsing library. Apache Jakarta has one.
    Edited by: paulcw on Mar 23, 2008 8:36 PM

  • Year values are displaying with comma ex: 2,013

    Hi,
    We are Using OBIEE 11.1.1.7.0 , In the time dimension hierarchy, the year values are displaying in the reports with comma separator i,e.,  2,013
    I want to remove the Comma in the year value of hierarchy.
    Could you please help me anyone to achieve this.
    Thanks,
    Babu.

    unset the set the comma separator for thousand using column properties->Data format and then save it for system wide.
    if helps mark
    ~ http://cool-bi.com

  • Restricting input to integers, display with comma separators

    I'm using Acrobat 8 on a Macintosh. My question is very similar to the previous one about truncation. I have a small array that adds and subtracts fields, and sums them to totals. The following scripts restrict the data entry exclusively to numbers, but my problem is that it doesn't display my fields in Acrobat with comma separators, e.g., 123,456. Is there a better way of doing this, or is it just a matter of adjusting the formatting script?
    Using a custom script under Format:
    Custom Format script:
    event.value = "(" + eventvalue +")";
    Custom Keystroke Script:
    event.rc = /^[0-9]*$/.test
    (event.change);
    Bill Lomax

    I'm not aware of any cultures that allow multiple consecutive separators, and of course "en-US" certainly doesn't. I think you answer is just that TryParse isn't as smart as you would like it to be.
    If you know how many digits there are after the decimal point, you could use ToString to convert the decimal back to a string and verify that it is the same as the original string. For example, if the string has a currency symbol, thousands separators and
    two decimal places, you could use the following:
    Dim result As Decimal
    Decimal.TryParse(Me.tbxkWhCost.Text, System.Globalization.NumberStyles.AllowThousands _
    Or Globalization.NumberStyles.AllowDecimalPoint Or Globalization.NumberStyles.AllowCurrencySymbol, Nothing, result)
    If result.ToString("C2") = Me.tbxkWhCost.Text Then
    'String is good
    Else
    'String is bad
    End If
    I realise that this doesn't work if you don't know what format the number will be in.

  • Import, search, display and modify a CSV file.

    I am new to powershell so please give me a bit of slack but this is what I have and what I am wanting to do:
    I have a CSV with |customer no.|full name|address| headings
    I want to be able to prompt a message box to allow a search for a customer number then to bring up the whole row of data to read, once this has been completed I need to edit the value saying completed.
    I am more wondering whether this is possible as I have spent ages searching with little result.
    Thanks in advance

    thanks jrv,
    basically I need to be able to display the rest of the information about the customer by just searching their customer number. Once this has been done I need to edit the customer to say that I have searched for them already. 
    Hope that make it a little clearer.
    That is exactly what my demonstration does. n You need to implement it.  We cannot design and write your code.  If you need this done then I recommend calling a consultant.
    The script learning is a link at the top of the page.
    You can also very easily do this in Excel with no script.  Just search the customer number coloumn with the Excel search box.
    ¯\_(ツ)_/¯

  • File content conversion: String with commas to CSV

    Hi Experts,
    I have the following structure
    DATA (1..n)
    ...Result (1..1)
    The Result field contains a string like below
    a,b,c,d,e,f,g,h,i,j
    How do I put this into File Content Conversion when I want the receiver to be a CSV file? One cell per letter.
    Thanks in advance.

    Outbound: you could convert your flat file to xml at first. Make the necessary mapping to the destination structur.
    http://www.riyaz.net/blog/xipi-file-content-conversion-for-simple-structure/
    Inbound: Content convernsion from xml to csv.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    Cheers
    Serdar

Maybe you are looking for

  • Nokia e90 and polar axn700 infrared using MobileLi...

    Dear Nokia Support, I was wondering if it would be possible somehow to connect a polar heartrate watch such as for example the AXN700 to Polar Sports software for Nokia using infrared. The software seems to crash when trying to connect and at the pol

  • Cant Get it to connect

    I Hook up my ipod to the comp. and then it says do not disconnect but it doesnt come up on my iTunes menu so i cant add song. and also then when i unplug the ipod its charged but it says connect to iTunes to restore but it wont commect so Please Help

  • Invalid date assigned to folder when importing

    I'm using Trial version (1.0) of Adobe Photoshop Lightroom. I'm planing to purchase the product but I found one large annoyance. My PC is set to New Zealand Time zone (currently DST id off) . In the import dialogue I can select folder name like year/

  • Friends need help desperate-- Second page not printing from the beginning

    Hi Friends, I have a large layout whose main-section is 8.5x20 (Width&height) which has 2 frames each having 2 repeating frames and about 20 fields in each repeating frame. When I run the report it shows the report right, but when I print, it prints

  • Export PDF Files from CR Developer 14.0.2

    I have 8.5 crystal and have a classic asp application that generates pdf files in a batch mode.  Parameters are selected from an Access database.   How do I accomplish generating pdf files with the new version that I have just installed. (trial versi