Downloading in .txt format separated by comma

Hello everyone,
In order to download an internal table in .txt format separated by comma (,) , I am using :
1.        SAP_CONVERT_TO_CSV_FORMAT
2.       GUI_DOWNLOAD
The problem is that the file downloaded is separated by ; and not comma.
I am not passing any Filetype in GUI_DOWNLOAD and the extension is .TXT.
I dont want to use REPLACE ALL OCCURANCES OF  before calling GUI_DOWNLOAD.
Can someone plz suggest another way ?
Thanks

CONSTANTS :  c_delim TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
CONCATENATE   'Physical Inventory Document'
                'Item '
                'Material '
                'Material Description'
                'Material Group'
                INTO wa_excel_dwnld-line
                               SEPARATED BY c_delim.
               APPEND wa_excel_dwnld TO it_excel_dwnld.
               CLEAR: wa_excel_dwnld.
LOOP AT it_output INTO wa_output.
CONCATENATE   wa_output-iblnr
                  wa_output-zeili
                  wa_output-matnr
                  wa_output-maktx
                  wa_output-matkl  
                 INTO wa_excel_dwnld-line
                       SEPARATED BY c_delim.
    APPEND wa_excel_dwnld TO it_excel_dwnld.
ENDLOOP.
CLEAR wa_excel_dwnld.
DATA: l_flname     TYPE string,
                      l_string     TYPE string.
MOVE p_file TO l_flname.
CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = l_flname
      filetype                = 'ASC'
      write_field_separator   = '#'
    TABLES
      data_tab                = it_excel_dwnld
    EXCEPTIONS
      file_write_error        = 1
      no_batch                = 2
      gui_refuse_filetransfer = 3
      invalid_type            = 4
      no_authority            = 5
      unknown_error           = 6
      header_not_allowed      = 7
      separator_not_allowed   = 8
      filesize_not_allowed    = 9
      header_too_long         = 10
      dp_error_create         = 11
      dp_error_send           = 12
      dp_error_write          = 13
      unknown_dp_error        = 14
      access_denied           = 15
      dp_out_of_memory        = 16
      disk_full               = 17
      dp_timeout              = 18
      file_not_found          = 19
      dataprovider_exception  = 20
      control_flush_error     = 21
      OTHERS                  = 22.
Download in CSV if you want comma separated file.
Revert if you need any more help.

Similar Messages

  • Problem in downloading records .txt format

    Hi,
    I have to download records in a .txt file from two custom tables(Header and Item table) while the header records and item records are identified by the first two characters of each string downloaded in the .txt file. Can you help me out by giving some code piece on this.
    Swarup Banerjee.

    can i know the file format (fields) and 3-4 first records of it.
    if possible send more details.

  • Fields separated by comma using GUI_DOWNLOAD

    Hi All,
      I want to download internal table data separated by comma.
    I am using GUI_DOWNLOAD function module.
    I am using separator as comma,but still the data is getting downloaded as Tab delimited.
    Please let me know what needs to be done.
    Thanks,
    SP
    <thread moved, has nothing to do with ABAP Objects. Please choose your forums more carefully in future>
    Edited by: Mike Pokraka on Aug 18, 2008 3:09 PM

    Hi,
    Check this sample code,
    TYPES:
      BEGIN OF type_itab1,
        string TYPE string,
      END OF type_itab1.
    DATA:
      BEGIN OF itab OCCURS 0,
        vbeln  LIKE vbap-vbeln,
        posnr  LIKE vbap-posnr,
      END OF itab.
    DATA:
       wa_itab TYPE type_itab1,
       itab1   TYPE STANDARD TABLE OF type_itab1.
    SELECT vbeln
           posnr
        UP TO 5 ROWS
      FROM vbap
      INTO TABLE itab.
    SORT itab.
    DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS.
    LOOP AT itab.
      CONCATENATE itab-vbeln
                  itab-posnr
             INTO wa_itab-string
             SEPARATED BY ','.
      APPEND wa_itab TO itab1.
    ENDLOOP.
    CHECK sy-subrc EQ 0.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
    EXPORTING
    FILENAME = 'D:\temp\test.txt'
    WRITE_FIELD_SEPARATOR = ','
    FILETYPE = 'ASC'
    CHANGING
    DATA_TAB = itab1.
    Regards
    Adil

  • How to download a file from the net and save it into .txt format in a datab

    Can some one show me a tutorial on how to download a file from the net and save it into .txt format in a database?
    Thank you,

    http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

  • DOWNLOAD SMARTFORM IN TXT FORMAT

    NORMALLY WE DOWNLOAD SMARTFORM IN PDF FORMAT BUT I HAVE REQUIREMENT TO DOWNLOAD IN TEXT FORMAT.
    PLEASE HELP.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jul 24, 2008 6:24 PM

    when you generate the spool you can down load that in txt format
    Function is used RSPO_DOWNLOAD_SPOOLJOB when you want to do that programatically.
    Using the spool number, and provide the path where you want to down load that time mention the name
    C:\smart.txt
    it will be downloaded .

  • Txt format in a file created by the Payment Medium Program

    Hi,
    I need some help with a query from Payroll France.
    They use the transaction PC00_M06_FFOT (program RFFOF_V) to transfer payment data to banks.
    This program creates a txt file that is accessible to the payroll and accounting teams. This file is stored on local discs and as txt format it can be modified.
    The last audit pointed to this as a potential issue. The data in this file is very sensitive and shoud be secured against any modification.
    The program is SAP standard and the txt format is compliant with the system used by banks. That is why I am not sure if the file format can be modified. We were thinking perhaps a PDF fike would be an option. However, our Development do not want to touch at the change before we know if this will not be a problem for the banks' system.
    I've created a note for SAP about already but they say it is not really an error and in fact beyond their scope.
    Would appreciate some advice from you.
    Thanks,
    Monika.

    Monika :
    When running payment transfer to the bank (i.e. RFFOT or RFFOV), you have an option to either have the output file created (at application server) or a temse file created (which you would go to DME management to process downloading to a file (e.g. in your local PC machine).
    Having the ACH file created on application server site usually should be quite secure in my opition (first of, not many ee should have access to application servers; second, you can control not to allow non-authorized personnel to access to certain directories in application server; third, usually, when ACH file is created, it usually will be picked up by an automate process to send the file to the bank (rather than manual process)) .  Just my thought on your audit issue .
    Rgds.

  • How to save report in text (.txt) format using SSRS

    Hello 
    I am using some .rdl file to generate reports and this is using SSRS. But only thing I did that I have changed the configuration file in C drive as below :
    Here 
     Collapse | Copy Code
    <Extension Name="TXT" Type="Microsoft.ReportingServices.Rendering.CsvRenderer.CsvReport,Microsoft.ReportingServices.CsvRendering"> 
        <OverrideNames> 
            <Name Language="en-US">TXT (Pipe Delimited Text File)</Name> 
        </OverrideNames> 
        <Configuration> 
            <DeviceInfo> 
                <FieldDelimiter>|</FieldDelimiter> 
                <Extension>TXT</Extension> 
                <Encoding>ASCII</Encoding> 
            <NoHeader>true</NoHeader> 
            </DeviceInfo> 
        </Configuration> 
    </Extension> 
    The TXT is added to the drop down . But when I am saving the report it is not saving in .txt format. It is taking .CSV format. Kindly help to save report in txt format.

    Hi Chat89,
    By design, SQL Server Reporting Services render a report to CSV (text) format with a comma (,) as FieldDelimiter in .CSV FileExtension. So if we want to display Pipe FieldDelimiter in .txt format, we can modify those setting in the RSReportserver.config
    file as below:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS11.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">
       <OverrideNames>
            <Name Language="en-US">TXT (Pipe Delimited Text File)</Name>
        </OverrideNames>
        <Configuration>
            <DeviceInfo>
                <FieldDelimiter>|</FieldDelimiter>
                <FileExtension>TXT</FileExtension>
            <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.aspx
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    Katherine Xiong
    TechNet Community Support

  • Export .txt format

    I have a special need to convert and export short segments of audio data (less than one million data points) to Microsoft Excel for exploratory detailed waveform analysis. File format .txt is a satisfactory export format for the job.  Several years ago I could do what I need to do and export in .txt format using Cool Edit Pro (actually Cool Edit 96?); now I no longer have a working copy of Cool Edit.
    When I first called about Audition I was told by one of the Adobe Creative Cloud sales people that the .txt export capability was maintained and still available in Audition. 
    I am currently testing a trial copy of Audition but do not see .txt as a choice for file export.  Am I overlooking something?
    If .txt export is not available through Audition I would be interested in buying outright a working copy of the now outdated Cool Edit Pro application - - I understand that the rights to Cool Edit became the property of Adobe several years ago. 
    Kindly note that the free download of Cool Edit Pro available on the internet is an old trial copy of Cool Edit Pro that has limited functionality and quits running within thirty days - - not a viable alternative for me.
    I will be most happy if I am simply overlooking something in trying to use it and can count on Adobe Audition for .txt export.  Please help me in any way you can.  Thank you.

    I think the help line mis-informed you...the same question was asked a few months back and Charles Van Winkle (from the developers of Audition) answered here:  Re: Can Audition CC export ascii (.txt) like older versions of Audition? If so, how?
    However, I'd say it might be worth messaging Charles with the details of your need and maybe submit a new feature request.

  • Txt format for Nokia 8800

    The objective is to display text documents on my Nokia 8800. So I proceeded by saving them on the Nokia Pc Suite in the .txt format and syncronizing and, in fact this operation had success. Only when I try to access them on the phone it returns an error of unsupported format.
    Two questions spring from this experience:
    1) Is there a format for text documents that may be visualized on the phone or, reverse question, is there an application that allows the phone to visualize .txt documents?
    2) Is there a way to enter text documents directly on the phone without having to download them from the pc?
    Thanks, Fabrizio
    Fabrizio Bartolomucci

    Ok, thanks: those I was aware of; only, in that case, there is apparently no way to access or modify them by PC Suite.
    As a matter of fact I was trying to find a way to copy some text (perhaps a receipe) I have on the pc to the phone in order to be able to display it later, away from the pc, without having to type it again as a note.
    Fabrizio Bartolomucci

  • Can anyone let me know how can i get the ouput from BW in .txt format.

    Can anyone let me know how can i get the ouput from BW in .txt format. See we can get output as Excel(i.e BEX) and manually convert it into txt format. I need a direct or automated way to do the same.no human intervention.
    mail me at [email protected] or post answer in sdn.

    Please do not multiple post across forums..
    how can i save the data in BEX reports in .txt format automatically
    This helps in keeping track of answers and avoids the issue of repeated answers across forums...
    Please close one of the threads as answered and provide the link that you want to follow
    Arun

  • My computer crashed, how do i download the digital format of adobe photoshop elements (I have the cd

    my computer crashed, how do i download the digital format of adobe photoshop elements (I have the cd version, redemption code and serial #) to my new computer which does not have a cd drive

    if you follow all 7 steps you can dl a trial here:  http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l
    and activate with your serial.
    if you have a problem dl'g, you didn't follow all 7 steps.  the most common error involves failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com).

  • Is there a way to extract iMessages from Mac to PDF or .txt format?

    I've been searching the net but to no avail. All results point to backing up/extracting iMessages from iDevices other than a Mac. I'm going to change my Apple ID and I want to at least have a copy of the previous convos I had if PDF or .txt format. Thanks in advance! 

    HI,
    If you have the Save on Close  option enabled in Messages > Preferences > Messages then all Chats and conversations are saved.
    They can be recalled any time.
    1) In the Messages app the File Menu > Recent Items will list the last X number of chats.
    X is the number set in System Preferences > General pane about the number of Documents, Applications and Servers shown in such lists.
    2) old migrated iChat Saved chats are in Your Home Folder/Documents/iChats
    3) New Saves are in your Home Folder/Library/Messages/Archive although this Library is Hidden.
    In th Finder > Go Menu > Go to Folder and type ~/Library/Messages into the dialogue box that appears.
    I have 10 non iMessages accounts as well as  my iMessages account logged in when I am on line.
    I can call up any of the last Chats shown in Recent Items no matter which account they came from  (different Screen Name or Jabber IDs or even Bonjour chats)
    I have not actually changed my iMessages ID to check but the app will continue to save to the same Folder and it should be able to retrieve recent ones.
    Visiting the folder and double clicking an older chat tends to launch it in a new window separate from the Messages Window itself (no Side bar no, Text field at the bottom, no "To" spot).
    8:31 PM      Friday; March 29, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to include "password protection" in a report, downloaded in .pdf format

    Hi,
    The client need the reports to be password protected after downloading it to pdf format.
    i.e., If a report from the dashboard is being downloaded in pdf format, then while opening it should ask to enter the password.
    So this will be a secure document that can be sent over mail.
    Is such feature available in OBIEE 10g/11g? If yes, please let me know.

    Hi,
    Could somebody tell the same can do in Discoverer also?
    Thanks,
    Kamal

  • Urget::How to download in excel format  in Background

    hi,
            i was using GUI_DOWNLOAD  in a program to download into excel format. but now the user wants to run this in background mode .But gui_download doesn't support the background .can u suggest me any other way to download in background mode into excel format.
    it's urgent .please help.
    Thanks in advance .

    Hi Rasmi,
    In background you can only download it to application server and not on your PC.
    If its ok then you can use OPEN DATASET....CLOSE DATASET to do that.
    Once its downloaded to Application server you can download that into your PC.
    Hope This helps you.
    Thanks,
    Arun

  • Converting the WebI reports to .txt format

    I have developed reports using Web Intelligence, now the requirement is to convert these webI reports to .txt format.
    I am able to do it after dowloading the report into .CSV format but i wanted to convert these reports directly to .txt format and schedule these reports using a third party tool (ASG Zena).
    can anybody please respond to this query if they have any idea or have done it already.
    Thank you in advance.
    Regards,
    Saradhi.

    Hi,
    you can export WebI docs. only in .csv format, not .txt
    Regards
    -Seb.

Maybe you are looking for

  • 100V - 240V ?

    Hy, I am from Europe, and I'm planning to buy a MacBook Pro from the states maybe next month. I saw at the tech specs that the package contains a 100-240V AC adaptor. I'm not sure how this really works...I mean, does the package contain a charger for

  • How to add these modules?

    Hi everyone, how can i add these modules listed below? I tried to query them but can't find them. Are they part of another module or what? •     General Ledger •     Accounts Payable •     Fixed Assets •     Payments & Collections •     Accounts Rece

  • Strange FWSM log message

    Dear expects, I have a strange problem with a FWSM on Catalyst 6509, this funny logging message keep generating on the FWSM %FWSM-3-106011: Deny inbound (No xlate) icmp src fwsm_212:10.10.212.30 dst fwsm_212:10.10.212.14 (type 8, code 0) %FWSM-3-1060

  • Indesign CS2 "selection to new document" script?

    Hi, just changing over to Indesign CS2 (i know! should be cs5 soon apparently), and noticed the scripting seems to be quite powerful with this software, i dont suppose anybody has created a script that would paste the currently selected object into a

  • What Windows Version to Purchase

    I have an iMac4,1, Intel Core Duo, and not sure of the correct Windows 7 version to purchase to use with Boot Camp, 32 or 64 bit to load on my imac. I had Windows Vista loaded about 2 years ago, tried to increase the partition size and was never able