Convert .csv-attachments

Hi!
I would like to convert a .csv-file which is received as an email-attachment. The problem is that the .csv-file is not recognized as I am not able to define the structure of the .csv-file. At the moment it is converted to one long string with all fields which can not be used for further processing.
If I transmit the attachment via FTP it is no problem as I have the possibility to use "file content conversion" as message protocol in the file adapter.
Does anyone know if there is a possibility of file content conversion while using the mail adapter?
Regards
Chris

Hi Joachim,
thank you very much for your answer.
On page 3 of the Howto-guide for JMS adapter i found the "Module Sequence in the Sender Channel". I only used the line with "Plain2XML" and set all parameter values from page 4. The last line (xml.fieldFixedLengths) was changed to xml.fieldSeparator with parameter value ";" as a CSV file should be converted.
During the test the adapter received the email with the attachment and I received the following feedback from the mail adapter:
<b>running: [2005-11-09T15:22:52Z] 1 new messages found among 1 messages in total; processing message 1... done; action completed</b>
I think that the conversion was done successfully but I can`t find the message in the RWB.
Do you know where to find the converted message?
Best regards
Chris

Similar Messages

  • PDFmaker not converting Jpg attachments to emails in Microsoft Outlook 2013

    I am having problems converting jpg attachments to emails in Microsoft Outlook 2013 using PDFmaker. I'm running Adobe Acrobat 11 and just updated it to the latest version and that did not solve the problem.
    I can convert the emails and Word attachments and can convert the jpgs manually by saving them to my desk top and then adding them as attachments to the resulting PDF but I have several emails each was several attachments that I want to save and it will take me hours to do it manually.
    I was thinking there might be some security setting on the jpgs that is preventing PDFmaker from automatically converting them.
    I already confirmed that the Preference Conversion Setting is selected to include all attachments in the Adobe PDF. I also unselected the box that reads "block download of external content" but it did not help.

    Manual method is a difficult task .You can easily transfer your mails from the Thunderbird to MS Outlook using third party conversion software.i faced the same problem.i tried the following utility. It converts all my Thunderbird accounts to a single PST.you can also try the free demo version of the software.
    http://www.datacarelab.com/software-for-mbox-to-outlook.php

  • How to convert csv files into java bean objects?

    Hi,
    I have a CSV file, I want to store the data availabale in that csv file into java bean, I am new to this csv files how can I convert CSV files into java beans.
    Please help me.
    Adavanced Thanks,
    Mahendra

    You can use the java.io API to read (and write) files. Use BufferedReader to read the CSV file line by line. Use String#split() to split each line into an array of parts which were separated by comma (or semicolon). If necessary run some escaping of quotes. Finally collect all parts in a two-dimensional List of Strings or a List of Javabeans.
    java.io API: [http://www.google.com/search?q=java.io+javase+api+site:sun.com]
    java.io tutorial: [http://www.google.com/search?q=java.io+tutorial+site:sun.com]
    Basic CSV parser/formatter example: [http://balusc.blogspot.com/2006/06/parse-csv-upload.html]

  • What is a good, safe and free converter for converting csv flies into ofx or qfx flles

    I am considering to buy HomeBudget. However my bank only supplies CSV files. I need a good free and safe converter to convert csv files to ofx or qfx file format. Any advice? Thanks.

    bint
    The first place I would try asking is the HomeBudget Developer - http://www.anishu.com/contact.html
    This from the App Store looks like it will open and edit any file type > https://itunes.apple.com/us/app/csv-converter/id550840765?mt=12
    The top Google result sounds a little dubious = ONLINE conversion of MY bank data is NOT something I would do!!
    I will ask our Hosts to move your Question to the Yosemite forum where it may get more exposure that in Using ASC
    good luck
    ÇÇÇ

  • Converting .csv to .ics

    Is there an easy way to convert a .csv excel spreadsheet to .ics for easy importation to iCal?

    The page says the "Convert CSV to SQL" action is in the standard Automator library, but I didn't find it and it doesn't seem to be on my system.
    However, since this page you referenced is on the developers site, I'd suspect the actions it lists would be available if you installed the developer tools from you system disks that came with your computer (or the OS upgrade if you've upgraded since then). You'll likely also want to log in and download any updates to the developer tools from the ADC site.
    Just guessing since I don't have the developers tools installed, though it seems the most plausible excuse for it saying it's there when it isn't.
    However, I'm quite convinced it would be so, since one of the actions listed is "Build Xcode Project". Xcode is only available once you've installed the developer tools, so it makes since the Automator actions wouldn't be available unless you had it installed. Other actions in that list appear to be the same in that way. And I do remember seeing the "Build Xcode Project" action when I used to have the developer tools installed, so I'm quite confident this is the case for the other actions, too.

  • Convert csv to sql

    I am trying to use the 'Convert CSV to SQL' automator action, however, the 'Before', 'Per Row', and 'After' option windows are all greyed out.
    Does anyone have this too?
    I'm running OS X 10.10.1.
    Thanks, Andre

    Yes, I also have this problem. OS X 10.10.1 (14B25).

  • SAFELY convert csv calendar events to ics formate for iCal?

    How do I SAFELY convert csv calendar events to ics formate for iCal?

    CSV to iCal Calendar Convertor • Manas Tungare

  • *.CSV attachments scrambled

    Hi,
    Am having trouble with automated reports being sent out in *.CSV format.
    The emails are going out to suppliers and the reports are being attached in CSV format. However in some instances the attachments are being scrambled and received by the supplier as scrambled text within the email body with no attachment reaching them. Most of the reports are reaching their destinations without issue.
    Can anyone tell me what is causing this and what can be done to rectify it?
    If it is a problem on the suppliers end (ie a firewall issue) is there an easy fix that I can advise them to implement?
    Cheers.

    Outlook 2007 is what I have tested with - the other end might be 2003, 2007 or 2010 on the windows side - and 2011 on hte Mac side.
    Yes send windows attachemnt was checked and makes no difference.
    Yes zip is an option.
    Opening and saving each file in xls format is an option - however, I would have to do that operation at least a dozen times a day - which coudl get annoying - maybe a folder action setup to open each csv and resave it as an xls automatically might work.
    The output file that I send gets copied and pasted into another doc - and then is not needed - so the extra work involved in converting the csv in advance seems inefficient.
    Not using email to share the files might be an option.
    For the moment the simplest option is for me to NOT use Apple Mail to send - or to instruct the folks on the other end to NOT use Outlook to receive.
    Over the past decade or so I have created about 12,000 csv files - and while that is only about 1,200 a year or an average of about 5 a day - i am not the only one creating them and there is more than one person on the team that needs to process the files. So I am looking for the simplest - easiest - most comprehensive solution.
    This was not a problem in the past because we all used Windows OS and MS Office Professional - a number of us have recently switched to Mac OS and not using MS Office (or at least not using Outlook).

  • Need to send CSV attachments in a single mail to the Rcvr

    Hi All,
         Currently we are using 7.1 release of PI system. The scenario is from IDOC to ANSI Format. All the files recieved from IDOC should be sent as an attachment in  CSV format in a single mail .Could anyone please let me know how to proceed with this. If there is any javamapping needed for this? If yes, could you please provide the code for the  same,
    Regards,
       Pavithra

    Hi Pavithra,
    How to Guide for sending mails:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
    Use StrictXML2PlainBean in the module processor to convert the data to CSV:
    /people/pooja.pandey/blog/2009/02/23/xml-to-text-conversion-made-easy-by-strictxml2plainbean
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm
    Regards,
    Aravind

  • Converting csv from a txt file

    Hi,
    There is a txt file, I have updated which I need to convert to a csv file. The txt file looks something like this.
    Count,Test                                                           Number    
    46,003201                                                                  3    
    14,008131                                                                  2    
    8,003150                                                                   1    
    I am running this piece of script 
    Import-Csv C:\VPS\newfile.txt |
    Where-Object {$_.Count -notmatch '----'} |
    export-csv C:\VPS\newfile3.csv -notype
    However the output does not seem to work. This is what I get.There are spaces as you see below.
    "Count","Test                                                    
                                         Number    "
    "46","003201                                                                  3
    "14","008131                                                                  2
    "8","003150                                                                  
    1    "
    I am trying to create a csv file with the correct format. This is what I am expecting.
    "Count","Test ",  "Number"
    "46","003201" ,"3"
    "14","008131","2"
    "8","003150","1"
    Please assist.

    Sorry, forgot for doesn't generate output. We need to put it in a scriptblock and then output it:
    $inputData = get-content "inputdata.txt"
    for ( $row = 2; $row -lt $inputData.Count; $row++ ) {
    if ( $inputData[$row] ) {
    $inputData[$row] | select-string '^(\d+),(\d+)\s+(\d+)' | foreach-object {
    new-object PSObject -property @{
    "Count" = $_.Matches[0].Groups[1].Value
    "Test" = $_.Matches[0].Groups[2].Value
    "Number" = $_.Matches[0].Groups[3].Value
    } | select-object Count,Test,Number
    } | export-csv "outputdata.csv" -notypeinformation
    This version also skips blank lines in the input, provided the blank lines are past the third line.
    -- Bill Stewart [Bill_Stewart]

  • Converting csv files to signals

    I need to convert this csv file to an analog signal.  The timing and magnitude need to be exact

    duplicate post

  • Csv attachments

    There does not seem to be a separate category for the Mail app that is included with Mac OS.
    There was an earlier thread on this but it is archived.
    When I attached csv files to an email - and send it to folsk on windows - the file gets extra lines inserted - this causes problems for them processing the file.
    The file is NOT created by Excel - but it is read into Excel - so changing the way the file is saved is not an possibility - and opening each file just to save it with different format is also not an option as the number of files to be processed makes that too time consuming.
    Mail is doing something to the file that it likely does not need to be doing. If I attached the exact same file to a Mac Mail email and also to an email sent from a different email client - and open them both on Windows from Outlook - the Mac Mail file has extra lines and the other does not.
    Yes I could remove the extension - or compress - or use a file sharing option instead of email attachment - the trouble is that there are many other folks involved in the process and it may be too difficult to change too much of the process.
    Short term - I will simply not use the Mail client included with Mac OS X.

    Outlook 2007 is what I have tested with - the other end might be 2003, 2007 or 2010 on the windows side - and 2011 on hte Mac side.
    Yes send windows attachemnt was checked and makes no difference.
    Yes zip is an option.
    Opening and saving each file in xls format is an option - however, I would have to do that operation at least a dozen times a day - which coudl get annoying - maybe a folder action setup to open each csv and resave it as an xls automatically might work.
    The output file that I send gets copied and pasted into another doc - and then is not needed - so the extra work involved in converting the csv in advance seems inefficient.
    Not using email to share the files might be an option.
    For the moment the simplest option is for me to NOT use Apple Mail to send - or to instruct the folks on the other end to NOT use Outlook to receive.
    Over the past decade or so I have created about 12,000 csv files - and while that is only about 1,200 a year or an average of about 5 a day - i am not the only one creating them and there is more than one person on the team that needs to process the files. So I am looking for the simplest - easiest - most comprehensive solution.
    This was not a problem in the past because we all used Windows OS and MS Office Professional - a number of us have recently switched to Mac OS and not using MS Office (or at least not using Outlook).

  • Why does Mail convert PDF attachments to JPEGs?

    When I attach a PDF to a message in Mac Mail it automatically converts to a JPEG. I can't find any reason for this in preferences and the Help Menu is no help. This didn't happen previously. I'm not doing anything different when I create PDFs (usually through Quark Xpress or InDesign). Is anyone else having this problem?
    Quicksilver G4   Mac OS X (10.4.8)  

    Are you using the Image Size adjustment available at the bottom right of the message window with attaching a single page PDF file which displays inline or viewed in place?
    If so, this will convert a PDF file to a JPEG since the Image Size adjustment was designed for image/photo type attachments only.

  • Error converting CSV file into internal table

    Hi,
    I have to convert a large CSV file (>20.000 entries) into an internal table. I used FM GUI_UPLOAD to get a raw data table then convert this table using FM TEXT_CONVERT_CSV_TO_SAP.
    But this does not seem to work properly: after 16.000 or so, the FM seems stuck as if in an endless loop.
    Note that if I split the CSV file in several parts, the conversion runs successfully.
    Is there any memory limit with this FM ?
    Thanks,
    Florian

    Florian Labrouche,
    Instead of using two function modules, you can use  'TEXT_CONVERT_XLS_TO_SAP' function module once by specifying file name in that function module itself. It does not take much time.
    Check the sample program.
    report  zvenkat-upload-xl  no standard page heading.
    "Declarations.
    "types
    types:
          begin of t_bank_det,
            pernr(8)  type c,
            bnksa(4)  type c,
            zlsch(1)  type c,
            bkplz(10) type c,
            bkort(25) type c,
            bankn(18) type c,
          end of t_bank_det.
    "work areas
    data:
          w_bank_det type t_bank_det.
    "internal tables
    data:
          i_bank_det type table of t_bank_det.
    " selection-screen
    selection-screen begin of block b1 with frame title text_001.
    parameters p_file type localfile.
    selection-screen end of block b1.
    "At selection-screen on value-request for p_file.
    at selection-screen on value-request for p_file.
      perform f4_help.
      "Start-of-selection.
    start-of-selection.
      perform upload_data.
      "End-of-selection.
    end-of-selection.
      perform display_data.
      "Form  f4_help
    form f4_help .
      data:
            l_file_name like  ibipparms-path  .
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = l_file_name.
      p_file = l_file_name.
    endform.                                                    " f4_help
    "Form  upload_data
    form upload_data .
      type-pools:truxs.
      data:li_tab_raw_data type  truxs_t_text_data.
      data:l_filename      like  rlgrap-filename.
      l_filename = p_file.
      call function 'TEXT_CONVERT_XLS_TO_SAP'
        exporting
          i_tab_raw_data       = li_tab_raw_data
          i_filename           = l_filename
        tables
          i_tab_converted_data = i_bank_det
        exceptions
          conversion_failed    = 1
          others               = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " upload_data
    " Form  display_data
    form display_data .
      data: char100 type char100.
      loop at i_bank_det into w_bank_det .
        if sy-tabix = 1.
          write w_bank_det.
          write / '------------------------------------------------------------'.
        else.
          write / w_bank_det.
        endif.
      endloop.
    endform.                    " display_data
    Regards,
    Venkat.O

  • Convert csv in XML?

    Hi,
    I'm new in XI.
    Is it possible in XI to convert a csv-file in a xml-file?
    Thanks for your help.
    Regards
    Stefan

    hi Stefan,
    have you seen my friends weblog?:
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    Regards,
    michal

Maybe you are looking for