<?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 Transfer command with Tab delimitation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-with-tab-delimitation/m-p/5841884#M1318124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to download a tab delimited text file to application server using Transfer method.&lt;/P&gt;&lt;P&gt;I have below code but I cannot concatenate tabchar which is of Type X with other data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the alternative.?? I want to add 'tabchar' field in the file below? Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lv_temp TYPE string.
DATA: tabchar type X value '09'.
FIELD-SYMBOLS: &amp;lt;fs_field&amp;gt; TYPE ANY.

* Download this internal table into a flat file at app.server.
IF NOT gt_documents2[] IS INITIAL.

*--Open file in application sever
   OPEN DATASET p_afile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
   IF sy-subrc IS NOT INITIAL.
**--Display Error message 'File path/name does not exist in application
**  server'
    MESSAGE e999 WITH text-e01.
  ELSE.

LOOP AT gt_documents2.
  CLEAR lv_temp.
  DO.
    ASSIGN COMPONENT sy-index OF STRUCTURE gt_documents2 TO &amp;lt;fs_field&amp;gt;.
    IF sy-subrc NE 0. EXIT. ENDIF.
    CONCATENATE lv_temp &amp;lt;fs_field&amp;gt; INTO lv_temp.
  ENDDO.
  TRANSFER lv_temp TO p_afile.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2009 19:08:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-16T19:08:19Z</dc:date>
    <item>
      <title>Transfer command with Tab delimitation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-with-tab-delimitation/m-p/5841884#M1318124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to download a tab delimited text file to application server using Transfer method.&lt;/P&gt;&lt;P&gt;I have below code but I cannot concatenate tabchar which is of Type X with other data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the alternative.?? I want to add 'tabchar' field in the file below? Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lv_temp TYPE string.
DATA: tabchar type X value '09'.
FIELD-SYMBOLS: &amp;lt;fs_field&amp;gt; TYPE ANY.

* Download this internal table into a flat file at app.server.
IF NOT gt_documents2[] IS INITIAL.

*--Open file in application sever
   OPEN DATASET p_afile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
   IF sy-subrc IS NOT INITIAL.
**--Display Error message 'File path/name does not exist in application
**  server'
    MESSAGE e999 WITH text-e01.
  ELSE.

LOOP AT gt_documents2.
  CLEAR lv_temp.
  DO.
    ASSIGN COMPONENT sy-index OF STRUCTURE gt_documents2 TO &amp;lt;fs_field&amp;gt;.
    IF sy-subrc NE 0. EXIT. ENDIF.
    CONCATENATE lv_temp &amp;lt;fs_field&amp;gt; INTO lv_temp.
  ENDDO.
  TRANSFER lv_temp TO p_afile.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 19:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-with-tab-delimitation/m-p/5841884#M1318124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T19:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer command with Tab delimitation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-with-tab-delimitation/m-p/5841885#M1318125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the concatenate command with the addition of separated by statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate x1 x2 into x3 separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char utilities is a SAP given class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 20:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-with-tab-delimitation/m-p/5841885#M1318125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T20:11:58Z</dc:date>
    </item>
  </channel>
</rss>

