Comma problem in receiver file FCC csv file

Hi,
We had a problem with CSV conversions in file adapter.Our scenario is: Proxy>Xi>FCC(csv)
  <?xml version="1.0" encoding="utf-8" ?>
- <n0:RDM_OrganizationalStructure_MT_OB xmlns:n0="ness.com:RDM_ORGANIZATIONALSTRUCTURE" xmlns:prx="urn:sap.com:proxy:DV3:/1SAI/TAS9B35FF35521A19F6CBEE:701:2009/02/10">
- <row>
  <KTEXT>Information,Technology</KTEXT>
  <KTEXT>"Information, for internal use only" </KTEXT>
   </row>
  </n0:RDM_OrganizationalStructure_MT_OB>
In O/P csv file the filed KTEXT is spiting as Information onecolumn and Technology in the next column.
for avoiding this i conceited with " (double-quote) on both the sides to the KTEXT filed. so the Information,Technolg is appending in the same column. Its fine,
but for the second record from the source side itself the its getting as "Information, for internal use only"
so this it is spliting and appending in the next column. in 1st column Information and in the 2nd for internal use only. i want to append this in 1st column as "Information, for internal use only"
how to resolve this issue for appending the record in the same column?
and also i want to know why " is not inserting in csv file.
My Fcc conversion parameters are
record  Structure: row
row.addHeaderLine: 1
row.headerLine: Code,Name,Description
row.fieldSeparator: ,
row.endSeparator: 'nl'
pls advice how to overcome this problem
Thanks
Vankadoath

Hi Vanka,
In O/P csv file the filed KTEXT is spiting as Information onecolumn and Technology in the next column. for avoiding this i conceited with " (double-quote) on both the sides to the KTEXT filed. so the Information,Technolg is appending in the same column. Its fine,
To make it in the same column, you put it into double quotes.
"Information,Technology" -->> Information,Technology
but for the second record from the source side itself the its getting as "Information, for internal use only" . so this it is spliting and appending in the next column. in 1st column Information and in the 2nd for internal use only. i want to append this in 1st column as "Information, for internal use only"
As this already has double quotes, you need to use 2 more double quotes to escape that.
"""Information, for internal use only""" -->> "Information, for internal use only"
Regards,
Sunil Chandra

Similar Messages

  • How to convert an .xls file to .csv file using procedure or function

    Hi All,
    My requirement is as follows.
    1. In my database server(linux), my excel file will be loaded in a particular directory.
    2. I need to load this excel file's data into an external table.
    3. Can i load the data from an excel file to table directly? Or do i have to change the format into .csv, if so how to conver the .xls file to .csv file via backend.
    Please help me.
    Regards,
    Sakthi.

    Have a look at this
    PLSQL UTL_FILE problem
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=895803
    Regards,
    Yohanes 林贤汉

  • Converting html file to csv file or excel file

    Any body help me to convert html file into csv file or excel file using java.
    I have no idea how to proceed.
    is there any third party API's available.
    Please guide me.
    Thanks in advance
    Vivek

    dev_vivek wrote:
    I have no idea how to proceed.That could be due to the fact that there is no generic way to transform a html file into a csv or excel file.
    Could it be that you're really interested in extracting specific values from the html file and then you want to export these values to csv and/or excel?

  • Problem importing specific data from .csv file

    Hello!
    I'm using JDev 11.1.3.0 with JSF ui and I've been following the excellent example about importing comma separated values from a .csv file, of Mr. Bors, but I have a specific problem...
    1) When i try to import a date value (format dd/mm/yyyy) to a date field of my adf table, the date won't be accepted and it's not shown (I'm using Row.setAttribute("Field", textValue) for that purpose). I guess I have to enter it in a specific format but don't know how!
    2) Same thing with double values. Tried 1.50 and it's showing on the adf table 0.02. Tried 1,50 (with a different text separator) and it's throwing me an error and doesn't show anything on the table (again i'm using Row.setAttribute("Field", textValue) for that one too)...
    Any help would be appreciated!
    Thank you
    Edited by: Nikolas Saridakis on 6 Νοε 2010 11:10 πμ

    I tried your suggestion before I set my question but didn't know if I was looking on the right direction (I tried some things but they didn't work out). After a bit poking everything was fine...
    So I used
    Row.setAttribute("Field_name", oracle.jbo.domain.Date.fromText(value, "dd/mm/yyyy", null));
    and it did the trick...
    Weird thing about numbers was that after that, they were entered properly on the table with a normal Row.setAttribute("Field_name", value); with value being a String... anyway!
    Thank you Timo!

  • Importing problem-iCal won't recognize .csv files

    I've recently upgraded to 10.4.9 from 10.3.9 on my Power PC iMac G5. The old version of iCal had no problem seeing downloaded .csv files and importing them. The new version won't see them or import them. Under 10.3.9, all I had to do was double click on the downloaded .csv file and it would import all events into iCal. Now, nothing happens. I'm a basic user and don't know about scripting or anything else. Any help?

    YES! SUCCESS!
    I found two ways of doing this. After searching the net, I found this online app on this guys website that worked the best:
    http://manas.tungare.name/projects/yahoo2ical/
    It says it's a "yahoo" csv converter, but it worked fine for my outlook csv file.
    The other option is, if you have an account with google, like a gmail account, you can use their google calendar to import your csv file. Once you've done that, you can subscribe to that calendar you imported via the "share" option. Just get the .ics address. This took a couple tries on google's site to import, but it worked.

  • Separator problem after opening a exported CSV file in Excel

    Dear experts,
    After exporting a report to .CSV file from BEX browser, I opened this file with Excel. I found that "," is considered as separator, but not ";" which is by default the separator in CSV file exported.
    For example, when i open the CSV in Notepad, i have:
    "15.07.2008";"E001";"No value"
    "15.07.2008";"E001";"No value, date, time"
    When it is opened in Excel, I have
    "15.07.2008";"E001";"No value"(Column A)
    "15.07.2008";"E001";"No value(Column A) date(Column B)    time"(Column C)
    Is that a problem in Excel configuration? How to solve it (for example, set ; as separator)?
    Thanks in advance!
    Edited by: Xiaoxuan WU on Jan 23, 2008 4:00 PM

    Hi,
    Please try opening your .csv file in excel. I am assuming that all texts are in one column. Select this column, go to Data>Text to Columns. Set the checkbox to Delimited. Click on next. Set the delimeter to ; and the text qualifier to ". Click on next. Click on finish. Then save in another filename. Try opening this new .csv file in notepad and see if it has the format you needed.
    Hope this helps,
    Juice

  • Problem uploading data from an .CSV file

    hello,
    I have a requirement in which i need to upload .csv file. I tried using GUI_UPLOAD and TEXT_CONVERT_CSV_TO_SAP. But the values are getting appending as a single value seperated by cama.
    for example, If there are 5 columns and 10 rows in my test.csv file. when i am using GUI_UPLOAD and TEXT_CONVERT_CSV_TO_SAP. I am getting data in 1 column and 10 rows. each row has 5 values seperated by column. the other 4 columns in the internal table are not populated.
    can anyone help me.
    Thanks and Regards,
    gautham

    hi,
    use the Function module 'ALSM_EXCEL_TO_INTERNAL_TABLE'.
    REPORT  ZSR_BDC_XL
            NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES : LFA1,RF02K.
    DATA : BEGIN OF ITAB OCCURS 0,
           LIFNR LIKE RF02K-LIFNR,
           KTOKK LIKE RF02K-KTOKK,
           NAME1 LIKE LFA1-NAME1,
           SORTL LIKE LFA1-SORTL,
           LAND1 LIKE LFA1-LAND1,
           SPRAS LIKE LFA1-SPRAS,
           END OF ITAB.
    DATA : ITAB1 LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    DATA : B1 TYPE I VALUE 1,
           C1 TYPE I VALUE 1,
           B2 TYPE I VALUE 10,
           C2 TYPE I VALUE 99.
    INCLUDE BDCRECX1.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = 'C:\xl1.csv'
          I_BEGIN_COL             = B1
          I_BEGIN_ROW             = C1
          I_END_COL               = B2
          I_END_ROW               = C2
        TABLES
          INTERN                  = ITAB1
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM  ORGANIZE_UPLOADED_DATA.
    PERFORM OPEN_GROUP.
    LOOP AT ITAB.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0100'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_FIELD       USING 'RF02K-LIFNR'
                                  ITAB-LIFNR.
    PERFORM BDC_FIELD       USING 'RF02K-KTOKK'
                                  ITAB-KTOKK.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0110'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'LFA1-SPRAS'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_FIELD       USING 'LFA1-NAME1'
                                  ITAB-NAME1.
    PERFORM BDC_FIELD       USING 'LFA1-SORTL'
                                  ITAB-SORTL.
    PERFORM BDC_FIELD       USING 'LFA1-LAND1'
                                  ITAB-LAND1.
    PERFORM BDC_FIELD       USING 'LFA1-SPRAS'
                                  ITAB-SPRAS.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0120'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0130'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=ENTR'.
    PERFORM BDC_DYNPRO      USING 'SAPLSPO1' '0300'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=YES'.
    PERFORM BDC_TRANSACTION USING 'XK01'.
    PERFORM CLOSE_GROUP.
    ENDLOOP.
    FORM ORGANIZE_UPLOADED_DATA .
      SORT  ITAB1  BY  ROW
                       COL.
      LOOP  AT  ITAB1.
        CASE  ITAB1-COL.
          WHEN  1.
            ITAB-LIFNR = ITAB1-VALUE.
          WHEN  2.
            ITAB-KTOKK = ITAB1-VALUE.
          WHEN  3.
            ITAB-NAME1 = ITAB1-VALUE.
          WHEN  4.
            ITAB-SORTL = ITAB1-VALUE.
          WHEN  5.
            ITAB-LAND1 = ITAB1-VALUE.
          WHEN  6.
            ITAB-SPRAS = ITAB1-VALUE.
        ENDCASE.
      AT  END  OF  ROW.
    APPEND ITAB.
    CLEAR ITAB.
    ENDAT.
      ENDLOOP.
    ENDFORM.                    " ORGANIZE_UPLOADED_DATA
    if helpful reward points

  • How to Read the "text file and csv file" through powershell Scripts

    Hi All
    i need to add a multiple users in a particular Group through powershell Script how to read the text and CSV files in powershell
    am completly new to Powershell scripts any one pls respond ASAP.with step by step process pls
    Regards:
    Rajeshreddy.k

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • Extract Members List of "Selected AD Groups" :: Input: CSV File :: OUTPUT: CSV File (URGENT REQUIREMENT)

    Hello Everyone,
    I am looking for a script which extracts AD Group Members (sourced from CSV/TXT file) and Output to CSV/TXT file.
    Can someone help me finding customized script to solve the purpose.
    Quick response is much much appreciated.
    Thanks & Regards,
    Amit Kumar

    Create a CSV with your headers and use this
    Import-Module Activedirectory
    $Groups=Import-Csv -Path "C:\Users\seimi\Documents\ADGroups.csv"
    foreach ($Entry in $Groups) {
    $Path="C:\Users\seimi\Documents\"+ $Entry.groupname +".csv"
    $Users=(Get-ADGroupMember -Identity $entry.groupname | select -ExpandProperty Name) -join ","
    Add-Content -Path "C:\Users\seimi\Documents\PipeGroup.csv" -Value ($Entry.groupname +";" + $Users)
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

  • Extract Members of "Selected AD Groups" :: Input: CSV File :: OUTPUT: CSV File

    Dear Leaders,
    I am looking for a script to extracts AD Group Members (sourced from CSV/TXT file) and Output to CSV/TXT file.
    Can someone help me with this customized script.
    In particular I am looking for a script which generates SINGLE OUTPUT file in following format.
    GroupName    GroupMembers
    ADGroup1    Member1,Member2,Member3
    ADGroup2    Member1,Member2,Member3
    ADGroup3    Member1,Member2,Member3
    Thank You Very much in advance !!
    Regards,
    Amit Kumar Rao

    Get-ADGroup -Filter "GroupCategory -eq 'Security'" -SearchBase "OU=Organization-Unit"For Help:Get-Help Get-ADGroup -Examplesif examples not thereUpdate-Help

  • Comma and quote problem in csv file

    Hi
    My requirement is to append data in an csv file. This is Proxy to File FCC Scenario. for some of the fields from proxy which contains comma(,) and also double-quote("). for these fileds the in the csv file it is spiting in to two columns and appending in to the next column. and the double-quote symbol is not inserting in the csv file.
    1. why the double-quote(") is not inserting in to the csv file columns?
    2. how to over come the comma problem? I want that particular file need to append in one column only.
    Thanks
    Vankadoath

    hi vankadoath,
    Were you able to solve comma issue in CSV file.
    Even i am facing similar issue.....
    wheneever there is a comma in field, it is updating data after comma into next field.
    If anybody has solution for the same.......
    pls suggest the same............
    santosh.
    Edited by: santosh koraddi on Jan 20, 2011 9:44 PM

  • Can you open CSV-files with commas?

    It seems to me that we have something of a regression in Numbers 2.0 (part of iWork '09) - it (like Excel before it) no longer opens regular CSV-files.
    When I use the new Numbers to try to make a CSV-file, it'll actually use semicolons instead of commas, and any of my old CSV-files (like this one: http://d.ooh.dk/misc/postnumre.csv ) (with commas) will load all the values (and the commas) in a single column.
    I wonder if it's just me, or perhaps only a problem when using European notation (with comma as the decimal separator)?

    At last, Apple adopted the same behavior than Bento 1.
    When the decimal separator is the period, it works with standard CSV files.
    When the decimal separator is comma, it works with CSV using the semi-colon as item delimiters.
    To open your old CSV, set temporarily your system to a region whose decimal separator is period. Given that, Numbers will open them flawlessly.
    The ability to chose the separator (as it is now in Bento 2) would have been fine .
    Yvan KOENIG (from FRANCE dimanche 11 janvier 2009 20:30:03)

  • Problem in handling complex CSV file

    Hi,
    I am facing a strange problem in handling a complex CSV file.
    The content of the file is as follows. It is getting executed through an XSD and the target is a table.
    First time when the interface is executed ( for e.g session id - 19001) it is getting completed successfully.
    Now when making changes in the CSV file suppose adding ( for e.g.-
    DEPT,D05,Books,ABC Store
    CUST,C01,Sayantan,[email protected]
    CUST,C02,Shubham,[email protected])
    or deleting ( for e.g.-
    CUST,C02,Sarbajit,[email protected])
    and running the interface I am not getting the added D05 in the target table nor my C02 data is getting removed i.e.- the updated data in CSV file is not getting fetched and I am getting the same records as i got when i ran interface of session id 19001.
    I am not getting why it is happening??
    The CSV file used in session id -19001 is:
    DEPT,D01,Retail,World Mart
    CUST,C01,Anindya,[email protected]
    CUST,C02,Rashni,[email protected]
    DEPT,D02,Food,Food Bazar
    CUST,C01,Abhijit,[email protected]
    CUST,C02,Anirban,[email protected]
    CUST,C03,Sharmistha,[email protected]
    DEPT,D03,Water,SW
    CUST,C01,Nirmalya,[email protected]
    DEPT,D04,Clothes,City style
    CUST,C02,Sarbajit,[email protected]
    CUST,C03,Abhishek,[email protected]

    Here's what you can do to handle CSV files using HSQL.
    Say the CSV file contains order data. Each order record contains data about a particular order like order number, product code, quantity, ordered by, date etc. Now lets take a hypothetical requirement which says, the user needs to know how many orders were ordered per product.
    Option 1]  At the basic level, read the order file, parse each line and write the logic to get count of orders per product.
    Option 2] Load this CSV file into a database like MySQL and write database queries to get the orders per product.
    So where does this leave us? Have we run out of options? I am sure we would have tried & used the above two options . But I wanted a different approach. Following questions were lingering in my mind:
    1] Why can’t I write SQL queries against the CSV file itself. After all it’s like any RDBMS table.
    2] Why should I load the CSV file into some database before I query it?
    3] Why can’t I create a database table & attach the CSV file to it?
    Continue Reading Here: Handling CSV Files

  • How to saving data in csv file

    I have problem with saving data in csv file. I would like save my data look
    like this example :
    excel preview :
    A B C
    1 10 11 12
    2 13 14 15
    As we see all values are in separate cell A1=10, B1=11, C1=12 ...
    so I try :
    PrintWriter wy = new PrintWriter(new FileWriter("test.csv"));
    values[0][0]="10";
    values[0][1]="11";
    values[0][2]="12";
    values[1][0]="13";
    values[1][1]="14";
    values[1][2]="15";
    for (String[] row : values){
    for (String col : row) {
    wy.print(col + "\t");
    but csv file look like :
    A1=10 11 12
    A2=13 14 15
    but B1-B2 and C1-C2 is empty
    the second steep is use Ostermiller library :
    OutputStream out;
    out = new FileOutputStream("temp.csv");
    CSVPrinter csvp = new CSVPrinter(out);
    String[][] values = new String[2][3];
    csvp.changeDelimiter('\t');
    values[0][0]="10";
    values[0][1]="11";
    values[0][2]="12";
    values[1][0]="13";
    values[1][1]="14";
    values[1][2]="15";
    csvp.println(values);
    but the result is also this same, is anyone do how to resolve this problem
    ?

    but iI don`t want to seperate with comma....value
    I
    want to seperate each value to seperate cellWhen you save the file, separate w/ comma
    When excel loads it, it will automagicarifficallyput
    it in it's own cell.what it is "w/ " ? when I separate my data with
    comma excel don`t put value to spererate cells"w/" is an abbreviation of "with". Post the code that doesn't work, along with the results you get. If it's not working with commas, you must be doing something else wrong.

  • How to asssign output value in the CSV file for the specific header

    Hi,
    I am using OpenScript 9.10. The problem I am facing is that, to Write the Output value captured from the application, When i am trying to use the methods "Appen String to File" i am unable to write / assign the out put value below the specific header. Can any one please look into this and post the methods related to Write the output vaues in to the CSV files under specific headers.
    Thanks in Advance.
    Thanks.,
    Siva

    Hi Alex,
    Thanks for your reply.I need to write the output value under specified parameter name.
    for example after creating the sales order,the order number have to write in the CSV file under
    OrderNumber column.I tried with appendStringtofille() method,by using this able to write the value under
    first column.But i need to write output value under specified columnname(means Header name in the cSV
    file).can u please give a reply for the above problem.
    Note: In that Csv file i am taking the input vales and also need to write the output values under
    specified column(header)
    Thanks,
    Siva Thota.

Maybe you are looking for

  • Lost all my bookmarks when i had to erase my mac and re-install operating system.

    I had to erase my mac and revert back to an older operating system. I was using Time Machine to back up my computer, so I thought it would back up my Firefox bookmarks file as well. I reinstalled Firefox, but I can't seem to find the file anywhere. I

  • Huge binary file size difference LV 6.1 to LV 8.2

    I have an application that was first developed under LabVIEW 4.2 and has been periodically upgraded as necessary.  It is normally run as a built application so LabVIEW version changes only come in when something in the application has to be changed. 

  • Export in IR and ID pointing to Old JDI Name...?? Pls suggest

    Hi,      We have done a migration of XI DEV, QA, PRD and JDI systems from AIX to HPUX. When developers are trying to export objects from XI DEV IR(Integration Repository) and ID (integration Directory) to CMS, its failing pointing out to a old JDI ho

  • Problems opening and editing Olympus OM-D E-M1 files

    Hi, I have a new Olympus OM-D E-M1 camera. It produces (pretty great) video's of the .MOV format, H.264. However, I am not able to open, view and edit these files in Premiere Pro CS5. Some more information: - Video format .MOV, H.264, 1080p 29.97fps

  • Sapshcut.exe - Parameter for multi selection

    Hello, with sapshcut.exe we can start a new GUI session and start a transaction. For the parameters to start a transaction we use the "command" parameter of sapshcut.exe For example - command "SE09 TRDYSE01CM-USERNAME=WULFF" My question is if it is p