How to get fixed field length when download a CSV  file ?

hi all ,
    I had downloaded a CSV file from an ALV list which created by myself. the current layout of the CSV file is :
aaa;bbbbbbbbbb;cc;                
                                                     for example . but what i want is :
aaa         ;bbbbbbbbbbb            ;cc     ; 
it means these three fields are all with fixed length don't ommitting spaces when you preview the CSV file. how should i do this ?
best regards
Kevin

i got the solution.

Similar Messages

  • How to use auto fit selection when downloading to csv file

    hi,
    I am working on reports, i need to download to a .csv file. I am using GUI_DOWNLOAD is there any option for it where text fits exactly in a single cell.
    For Eg:
    I excel there is an option (Format-column-Autofitselection).
    Then the column size increases or decreased according to the text size.

    Dear Josephine,
       There is no option the way you want of autofit. Rather while opening the CSV in excel u can do the required formatting.
    Regards,
    Deva.

  • When downloading a .csv file in Safari, it adds .xls, making the file filename.cvs.xls

    When downloading a .csv file in Safari, it adds .xls, making the file filename.cvs.xls
    If I rename the file, it opens just fine, if I don't it opens all in one column.
    I had found a fix on my old macbook, but just got a new MBP and it's happening again.
    Can't remember or find where the fix is.
    Thanks!

    Safari: Downloaded file's filename may have an additional extension
    http://support.apple.com/kb/TA24293
    That's from June 11, 2007!
    Working from my defective memory, this happened to me, but stopped if I unchecked 'Open safe files after downloading' in Safari Preferences/General.
    At least I think that's how I stopped it - it hasn't happened since!

  • Getting correct field length when creating formats for delimited flat files

    Using Data Services 3.2 to pull in tsv and Excel source files.
    When creating a new format for each file, DS tries to intelligently set the field size for each column. However, it seems to sample only a portion of the file. The end result is that it often determines too short a length for a field.
    Is there a way to force it to scan an entire file before it sets the field length? Or alternatively, how to get it to at least throw an error instead of silently truncating my data?

    I am not aware of any way to force DS to scan the whole file, or to log a warning when it truncates.  The field sizes DS sets by using a sample of the data is only really to give you a starting point, you need to try and determine the maximum possible lengths preferably from someone who understands the source of the data or through profiling.  But the profiling method will obviously only be based on the data you have at the time of profiling, new data added to the source later could exceed the field lengths.  The way I prefer to handle this is to set all the field lengths to longer than expected, eg. varchar(999) and then use a validation transform immediately after reading the file to check for any fields that exceed the maximum allowed for the target system and send these to an error file/table.

  • How do I fix these errors when downloading Itunes?

    I keep getting the following errors:
    Could not open key: UNKOWN\Components\(some letters and numbers)\(some letters and numbers). Verify that you have sufficent access to that key or contact your support personnel.
    This message flashes about three of four times through out the installing.
    Once I get past these errors, I eventually get this message, which ultimately ends any attempt to dowload Itunes.
    The installer has insufficient privileges to modify this file: C:\Program Files (x86)\Itunes\ITDetector.ocx
    I would greatly appricate any help to fix these problems and download Itunes. I just got a new iPhone and I just want to put music on it.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for performance issues or compatibility with third party software.
    The further information area also has notes on your first issue.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • How do you fix Error 1324 when downloading Adobe Reader?

    "Error 1324. The path My Pictures or the volume is invalid. Please enter it again." appears after 96% of download occurs when downloading Adobe Reader onto my home computer Windows XP Home Ed. v2 sp3 64 processor. Tried downloading again and same thing happens - used Windows Internet Explorer as browser. Any ideas on what to do next?  Will try downloading using Google Chrome to see if that works. First time using the forums - think  I need to move it to Adobe Reader Forum
    Message was edited by: denm

    Thanks Pat W. I stand corrected. The error report occured during installation. My Pictures and the Adobe folders reside in My Documents - the path(?) C:Documents and Settings/Denise/My Documents/My Pictures. The Adobe folder also resides in the My Documents folder but not within the My Pictures folder. Just wondering where the Adobe folder should be.   If I have an external drive on and a backup copy of Adobe is in it, would that be what you mean by a folder in "My Documents" is pointing to somewhere other than the C: drive? I have turned off my external drive and retried the download. Not successful. Will try your last tip re: the support site from microsoft. Thanks for any other clarification you can provide.

  • How to get sql query data and write into csv file?

    I am writing to seek help, in how can I create bat. script which can execute the following logic:
    connection to the database
    run sql query
    create CSV file
    output query data, into CSV file
    save the CSV file
    osql
    -S 84.18.111.111
    -U adw
    -P rem
    -i "c:\query.sql"
    send ""
    sed -e 's/,\s\+/,/g' MCI_04Dec2014.csv > localNoSpaces.csv
    -o "c:\MCI_04Dec2014.csv"
    This what i have so far, and I am little struggling with the logic after creating CSV file. I am unable to get the above script to work, please advice further, where I may be going wrong. 
    Can you create if statement logic within window's script, to check for null parameters or data feeds?
    Any hints would be most appreciated. 

    Thank you for your reply. 
    Apology for posting the code irrelevant to the forum, as I am still novice scripting user.  
    My goal is to create window's script which can compute the above logic and send the final output file (csv), to FTP folder. 
    Can this logic be implemented via bat. script, if so, is there a example or tutorial i could follow, in order to achieve my task. 
    Any help would be much appreciated. 

  • Debugging ECC6: how to see the fields name when download internal table?

    When we debug a reprot in ECC6 and save to a local file an internal table, the fields are not appearing only the data,
    Is there a way to download also the table fields name?

    From the new debugger switch to the classic debugger using menu path Debugger->Switch to Classic Debugger. Form the classic debugger you can download internal table data with column name(s).
    Regards,
    Joy.

  • HT203164 How do I fix a problem when downloading cd into iTunes, "the file name is invalid or too long"? I have never had this problem before until recently.

    The message "the file name is invalid or too long" pops up when I try to download a cd onto iTunes. I never had this problem before but lately it has been happening. What can I do to fix this?

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • How to get a field from an attached excel/csv?

    I currently manage some price lists for the company I work for. They are graphical, and usually created in inDesign and then exported to pdf.
    I'm looking for a way to attach our company's prices in an excel sheet, (or delimited file) and be able to pull a price into the pdf.
    For example, attaching an excel file with 2 columns, SKU & Price. Then saying, if text field SKU= "APPLE" text field PRICE = "0.50". Only I don't want the user to have any inpurt options, I want to do this myself and then save a flat version to distribute in the company.
    I've been working on this for a few weeks. My javascript skills are really rough.
    So far, I have some code in my pdf that looks like this:
    (Price.csv is an attachment in the PDF)
    var oFile = this.getDataObjectContents("Price.csv");
    var sData = util.stringFromStream(oFile, "utf-8");
    function ParseData(sData){
    var oData = {};
    sData.replace(
    new RegExp( "\\[(\\w+)=([^\\]]*)\\]", "gi" ),
    function( $0, $1, $2 ){
    oData[ $1 ] = $2;
    return( oData );
    // Parse the data into an object
    var oData = ParseData(sData);
    // Custom Calculate script for price text field
    (function () {
        // Get the value of the SKU field
        var sku = getField("SKU").valueAsString;
        // Look up the price
        var price = oData[sku];
        // Set the value of this field to the price if it's present,
        // otherwise blank this field
        event.value = price || "";
        console.println(price);
    I have two text fields on the form. One that I have filled in a valid SKU, and a blank one named event.
    I seem to be getting an undefined error on prices. I am completely lost as to where to go from here.
    Does anyone have an idea of where I may be going wrong? I get that undefined error and nothing appears on my form.
    Thank you in advance.
    (I have acrobat X pro)

    First of all, "undefined" is not an error. It just says that the script ended without returning any values.
    I would suggest starting by debugging the code that reads the input file (you have to use a plain-text file, by the way, not an Excel spreadsheet). Make sure that oData actually contains the data you expect it to contain. If that works OK, start debugging your calculation script and see what's going on there...

  • How to get the correct result when I access mxml file in address bar in IE?

    os: windows xp
    web server: tomcat 5.5
    lcds version: 2.6
    One week ago, I installed lcds2.5 in my coumputer. At that time, when I type address http://localhost/lcds/test.mxml in address bar of Internet Explorer, the web server return the result of test.swf.
    I upgraded lcds from 2.5 to 2.6 this morning, and then when I type http://localhost/lcds/test.mxml in IE address bar again, the server return the source code of text.mxml in the web page, which is not I expected.
    Why the web server don't handle the *.mxml file like in lcds2.5? How can I resolve this problem?

    Hi,
    Webtier Compiler is which is no longer part of LCDS starting with the version 2.6. However you can install it if you want, read the instructions from this link http://labs.adobe.com/wiki/index.php/LiveCycle_Data_Services:Setting_up_an_SDK,_Compilers ,_and_Flex_Builder

  • Downloading a .csv file as excel sheet

    hi,
    does anyone know how to ensure that when downloading a csv file, it will be opened with excel only. The browser is downloading it as a text file and not excel. how can this be prevented.
    please let me know if you have any ideas since i've been pondering over it for far too long and need help...
    thanks
    jeena

    Yes, you need to set the content type to "application/vnd.ms-excel". Of course there is no guarantee that your clients will interpret that to mean "Open with Excel", or that they will even have Excel installed on their system, but there's not much you can do about that.

  • Getting error code 49 when downloading Bridge.  how do i fix this

    I am getting error code 49 when downloading Bridge.
    It seems Adobe CHAT is non-existent.  Can anyone help?

    The chat link can be elusive as can the people that support it over the weekend.  It does work, at least for most people, but not all.
    Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Make sure you are logged in to the Adobe site, have cookies enabled, clear your cookie cache.  If it fails to connect try using a different browser.
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
    It looks somewhat like the following when it gets thru properly (I don't think the 24/7 is a true story)...

  • How do I get past 995 mb when downloading Maverics

    No matter what I do I cannot get past 995 mb when downloading Maverics.  I have gone into debug mode in the apple store and have reset.  I've deleted all of my cookies, I have a very fast Comcast business internet connection.
    I can see the mb count and as soon as it hits 996 the downloading stops and I get an error.  It tells me to use purchases but nothing is there and the only thing I see on the page is an error occured.
    How do I fix this?
    Thank you.
    Mike

    Thank you for helping me.
    My download speed on our work LAN is 24.52 Mbps down and 4.57 Mbps up.  We have Comcast business internet.
    I also tried downloading using my iPhone which uses AT&T.  I turned wireless off on the phone, made a bluetooth connection to my Mac (also had wireless turned off) and it also stopped at 995.
    Right now, after failing to download, a blank button has appeared in purchases.  A few days ago, that button would not appear after a failed download, so something changed.
    Any thoughts?  I really thank you for helping me.
    Mike

  • I'm getting a 9041 error when trying to convert files to AAC -- any ideas on how to fix it?  the files files in iTunes show up as Apple Lossless but i can't put them on my iPod

    i'm getting a 9041 error when trying to convert files to AAC -- any ideas on how to fix it?  the files files in iTunes show up as Apple Lossless but i can't put them on my iPod

    "I have been able to convert to AAC by first converting to AIFF  and then to AAC. This is a pan though."
    this worked for me.
    thanks.

Maybe you are looking for