<?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: separator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296281#M156928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The WRITE_FIELD_SEPARATOR is used when you are writing a column separated file, this works good when you are creating an excel file.  It will put the columns of the ITAB into columns in the excel sheet.  In order to trigger this, you must set it to "X"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE_FIELD_SEPARATOR = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 May 2006 18:54:30 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-05-21T18:54:30Z</dc:date>
    <item>
      <title>separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296280#M156927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BIN_FILESIZE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        FILENAME                      = filename&lt;/P&gt;&lt;P&gt;        FILETYPE                      = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      APPEND                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;*       WRITE_FIELD_SEPARATOR         = ' '&amp;lt;/b&amp;gt;*       HEADER                        = '00'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TRUNC_TRAILING_BLANKS         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      WRITE_LF                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COL_SELECT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COL_SELECT_MASK               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;what is the used of this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2006 18:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296280#M156927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-21T18:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296281#M156928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The WRITE_FIELD_SEPARATOR is used when you are writing a column separated file, this works good when you are creating an excel file.  It will put the columns of the ITAB into columns in the excel sheet.  In order to trigger this, you must set it to "X"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE_FIELD_SEPARATOR = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2006 18:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296281#M156928</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-21T18:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296282#M156929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how i can make separator in txt file?&lt;/P&gt;&lt;P&gt;i need to put filetype too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2006 19:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296282#M156929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-21T19:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296283#M156930</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;The parameter WRITE_FIELD_SEPARATOR (just as Rich said) insert a TAB like separator (and it means a colunm for excel file), so it depends on which kind separator you need to insert in your text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2006 19:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296283#M156930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-21T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296284#M156931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max is right, if you want your .txt file to be tab delimited, then this will work for you.  If you want a comma delimited file, you must go a different way.   You will need a flat internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: itab type table of string with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to build the data record and append to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field-symbols: &amp;lt;fs&amp;gt;.

Loop at idata.

clear itab.
do.
assign component sy-index of structure itab to &amp;lt;fs&amp;gt;.
if sy-subrc &amp;lt;&amp;gt; 0.
exit.
endif.
if sy-index = 1.
itab = &amp;lt;fs&amp;gt;.
else.
concatenate itab &amp;lt;fs&amp;gt; into itab separated by ','.
endif.
enddo.
append itab.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use the GUI_DOWNLOAD function module and download the itab to PC, in this case you would not set the WRITE_FIELD_SEPARATOR parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2006 00:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296284#M156931</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-22T00:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296285#M156932</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;The Import parameter WRITE_FIELD_SEPARATOR of function GUI_DOWNLOAD can be used if you want fields to be seperated by tabs in downloaded file. If we pass 'X' to this parameter, the fields will be separated by tabs. &lt;/P&gt;&lt;P&gt;(it won't be any visible charcter like ; : | etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example if u downloaded a table with this parameter as 'X' and then again with this parameter as blank:&lt;/P&gt;&lt;P&gt;This will be the o/p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File generated with WRITE_FIELD_SEPARATOR = ''&lt;/P&gt;&lt;P&gt;1Field1 Row1&lt;/P&gt;&lt;P&gt;2Field2 Row2&lt;/P&gt;&lt;P&gt;3Field3 Row3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File generated with WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;lt;spaces&amp;gt; Field1 &amp;lt;spaces&amp;gt; Row1&lt;/P&gt;&lt;P&gt;2&amp;lt;spaces&amp;gt; Field2 &amp;lt;spaces&amp;gt; Row2&lt;/P&gt;&lt;P&gt;3&amp;lt;spaces&amp;gt; Field3 &amp;lt;spaces&amp;gt; Row3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to pass parameter DAT_MODE as 'X' and FILETYPE as 'ASC' to download to tab delimited file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that clears your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2006 04:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separator/m-p/1296285#M156932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-22T04:11:05Z</dc:date>
    </item>
  </channel>
</rss>

