<?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: File Format Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618383#M1440072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jyotsna,&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;is represented as tab. When you are reading the data from application server between open data set and close data set.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Use SPLIT at "#"  and split each value into the respective work area. &lt;/P&gt;&lt;P&gt;So now you will have data in internal table without "#".&lt;/P&gt;&lt;P&gt;While downloading it into a Presentation server using CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;make sure u give this export parameter&lt;/P&gt;&lt;P&gt;      write_field_separator   = '#'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2010 15:21:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-18T15:21:47Z</dc:date>
    <item>
      <title>File Format Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618381#M1440070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I have a file on the application server. When i see the application server file content, it is seperated by special character #. and when i down load it to presentation server using function module, I am getting @ seperator on the presentation server file. How can i avoid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 04:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618381#M1440070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T04:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: File Format Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618382#M1440071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use this code to get data from the path.&lt;/P&gt;&lt;P&gt;for example: prf_file = '/tmp/file.txt'&lt;/P&gt;&lt;P&gt;then u will get the data in a internal table later u can download that data to presentation server &lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF lt_val,&lt;/P&gt;&lt;P&gt;      val(50) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF lt_val.&lt;/P&gt;&lt;P&gt;DATA: gdt_data TYPE TABLE OF t_vk11.&lt;/P&gt;&lt;P&gt;DATA: gdt_field_split type TABLE OF lt_val.&lt;/P&gt;&lt;P&gt;DATA: gds_field_split type lt_val.&lt;/P&gt;&lt;P&gt;data: gdf_index TYPE sy-index VALUE 0,&lt;/P&gt;&lt;P&gt;      gds_field TYPE string,&lt;/P&gt;&lt;P&gt;      gds_data TYPE lt_val.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt; .&lt;/P&gt;&lt;P&gt;data: w_data TYPE t_vk11.&lt;/P&gt;&lt;P&gt;  if prf_file is NOT INITIAL.&lt;/P&gt;&lt;P&gt;  OPEN DATASET prf_file FOR INPUT IN TEXT MODE ENCODING  UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: l_len type i, " Length of string&lt;/P&gt;&lt;P&gt;          gds_field1 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    constants:c_new_line type c value cl_abap_char_utilities=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE i000(8i) WITH text-401.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      READ DATASET prf_file INTO gds_field.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        gds_field1 = gds_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if gds_field1 ca c_new_line.&lt;/P&gt;&lt;P&gt;          l_len = strlen( gds_field1 ).&lt;/P&gt;&lt;P&gt;          l_len = l_len - 1.&lt;/P&gt;&lt;P&gt;          clear gds_field.&lt;/P&gt;&lt;P&gt;          if l_len = 0.&lt;/P&gt;&lt;P&gt;            clear gds_field1.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            gds_field = gds_field1+0(l_len).&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SPLIT gds_field  AT cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;              INTO TABLE gdt_field_split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        LOOP AT gdt_field_split  into gds_field_split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          gdf_index = gdf_index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ASSIGN COMPONENT gdf_INDEX OF STRUCTURE w_DATA TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;*--- Asigning the field value to a field symbol&lt;/P&gt;&lt;P&gt;          MOVE gds_field_split TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND w_data TO gdt_data.&lt;/P&gt;&lt;P&gt;        CLEAR:w_data,gdf_index,gds_field_split,gds_field.&lt;/P&gt;&lt;P&gt;        refresh: gdt_field_split.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET prf_file.&lt;/P&gt;&lt;P&gt;    it_vk11 = gdt_data.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE i000(8i) WITH text-402.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manesh.R&lt;/P&gt;&lt;P&gt;Note:replace the structure t_vk11with the structure present in application server(use AL11 tcode to see this file in app server)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 13:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618382#M1440071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: File Format Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618383#M1440072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jyotsna,&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;is represented as tab. When you are reading the data from application server between open data set and close data set.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Use SPLIT at "#"  and split each value into the respective work area. &lt;/P&gt;&lt;P&gt;So now you will have data in internal table without "#".&lt;/P&gt;&lt;P&gt;While downloading it into a Presentation server using CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;make sure u give this export parameter&lt;/P&gt;&lt;P&gt;      write_field_separator   = '#'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 15:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-issue/m-p/6618383#M1440072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T15:21:47Z</dc:date>
    </item>
  </channel>
</rss>

