<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CSV file format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952267#M392133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use transactioN  &amp;lt;b&amp;gt;CG3Y&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2007 06:53:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-09T06:53:26Z</dc:date>
    <item>
      <title>CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952266#M392132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have a issue like this.&lt;/P&gt;&lt;P&gt;download the some materials from SAP to file which has in application server.&lt;/P&gt;&lt;P&gt;so the output format file should be of CSV file format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can format the output file can any one tell me this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952266#M392132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952267#M392133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use transactioN  &amp;lt;b&amp;gt;CG3Y&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952267#M392133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952268#M392134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          in that CG3Y transaction only ASC &amp;amp; BIN formats are there.CSV is not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CSV format is I heared that comma seperator value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body tell me about this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952268#M392134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952269#M392135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I download data in my internal table in a CSV file?&lt;/P&gt;&lt;P&gt;1ST capture file from application server to internal table using open dataset and close data set.&lt;/P&gt;&lt;P&gt;Use the Function Module SAP_CONVERT_TO_CSV_FORMAT to convert the internal table into Comma separated format then download this internal table using the Function Module GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EX-

Coding -
TYPE-POOLS: truxs.
TYPES:
  BEGIN OF ty_Line,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
  END OF ty_Line.
TYPES: ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.
DATA: itab   TYPE ty_Lines.
DATA: itab1  TYPE truxs_t_text_data.

SELECT
  vbeln
  posnr
  UP TO 10 ROWS
  FROM vbap
  INTO TABLE itab.

CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
  EXPORTING
    i_field_seperator    = ';'
  TABLES
    i_tab_sap_data       = itab
  CHANGING
    i_tab_converted_data = itab1
  EXCEPTIONS
    conversion_failed    = 1
    OTHERS               = 2.
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    filename = 'C:TEMPtest.txt'
  TABLES
    data_tab = itab1
  EXCEPTIONS
    OTHERS   = 1.  
  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 07:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952269#M392135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T07:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952270#M392136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want this file data in application server not in a presentation server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 08:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952270#M392136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T08:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952271#M392137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you use ws_download FM when ever you are trying download data into file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that FM filetype parameters you should specify 'CVS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subbu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 08:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952271#M392137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T08:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952272#M392138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will mention file name with CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset....&lt;/P&gt;&lt;P&gt;TRANSFER rec TO '/usr/test.csv'.&lt;/P&gt;&lt;P&gt;close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it work.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls give me replay....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subbu.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 08:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952272#M392138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T08:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952273#M392139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the FM you specified itab1.&lt;/P&gt;&lt;P&gt;after this FM i need to transfer this itab1 data to application server file.but it is not moving.can you tell me about this.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_field_seperator    = ';'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_sap_data       = itab&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    i_tab_converted_data = itab1&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    conversion_failed    = 1&lt;/P&gt;&lt;P&gt;    OTHERS               = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 07:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-format/m-p/1952273#M392139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T07:56:38Z</dc:date>
    </item>
  </channel>
</rss>

