<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/4431698#M1052003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you change the amount filed value as it dont contain any commas. below code will work. if you still having probs then so like this. move the amount filed value to any character value and then remove those commas and then upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: truxs.&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  BEGIN OF ty_Line,&lt;/P&gt;&lt;P&gt;    vbeln LIKE vbap-vbeln,&lt;/P&gt;&lt;P&gt;    posnr LIKE vbap-posnr,&lt;/P&gt;&lt;P&gt;  END OF ty_Line.&lt;/P&gt;&lt;P&gt;  ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;DATA: itab   TYPE ty_Lines.&lt;/P&gt;&lt;P&gt;DATA: itab1  TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;  vbeln&lt;/P&gt;&lt;P&gt;  posnr&lt;/P&gt;&lt;P&gt;  UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;  FROM vbap&lt;/P&gt;&lt;P&gt;  INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&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;amp;lt;&amp;amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = 'C:\TEMP\test.txt'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab = itab1&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS   = 1.&lt;/P&gt;&lt;P&gt;&amp;amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2008 05:43:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-09T05:43:35Z</dc:date>
    <item>
      <title>CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/4431697#M1052002</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;iam uploding data from flatfile to internaltable.my flatfile is csv file and amount field  also contains comma how can i handle? please provide solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/4431697#M1052002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/4431698#M1052003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you change the amount filed value as it dont contain any commas. below code will work. if you still having probs then so like this. move the amount filed value to any character value and then remove those commas and then upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: truxs.&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  BEGIN OF ty_Line,&lt;/P&gt;&lt;P&gt;    vbeln LIKE vbap-vbeln,&lt;/P&gt;&lt;P&gt;    posnr LIKE vbap-posnr,&lt;/P&gt;&lt;P&gt;  END OF ty_Line.&lt;/P&gt;&lt;P&gt;  ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;DATA: itab   TYPE ty_Lines.&lt;/P&gt;&lt;P&gt;DATA: itab1  TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;  vbeln&lt;/P&gt;&lt;P&gt;  posnr&lt;/P&gt;&lt;P&gt;  UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;  FROM vbap&lt;/P&gt;&lt;P&gt;  INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&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;amp;lt;&amp;amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = 'C:\TEMP\test.txt'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab = itab1&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS   = 1.&lt;/P&gt;&lt;P&gt;&amp;amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/4431698#M1052003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:43:35Z</dc:date>
    </item>
  </channel>
</rss>

