<?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 Application server file format issue on Notepad and Notepad++ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-format-issue-on-notepad-and-notepad/m-p/633092#M26631</link>
    <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142036-notepad-file.png" /&gt;&lt;/P&gt;
  &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142035-notepad-file.png" /&gt;Hi Experts ,
  &lt;P&gt; Recently I have been facing an issue on transferring data from internal table to application server file.&lt;/P&gt;
  &lt;P&gt;That file format is looks good in notepad but in notepad++ it adds blank row after each record.&lt;/P&gt;
  &lt;P&gt;Please find the code details below and share your thoughts on that.&lt;/P&gt;
  &lt;P&gt;Internal table :&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;TYPES : BEGIN OF lty_mara,&lt;BR /&gt; material_no TYPE mara-zznamatnr,&lt;BR /&gt; partnumber_new(30) TYPE c,&lt;BR /&gt; partnumber_old(30) TYPE c,&lt;BR /&gt; manufacturer(35) TYPE c,&lt;BR /&gt; END OF lty_mara.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;OPEN DATASET p_otfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;BR /&gt; CLEAR lv_string.&lt;BR /&gt; IF lwa_mara_header IS NOT INITIAL.&lt;BR /&gt; CONCATENATE lwa_mara_header lv_cr_lf INTO lv_string.&lt;BR /&gt; TRANSFER lv_string TO p_otfile.&lt;BR /&gt; ENDIF.&lt;BR /&gt; LOOP AT ltt_mara_new INTO lwa_mara_new.&lt;BR /&gt; CLEAR lv_string.&lt;BR /&gt; CONCATENATE lwa_mara_new lv_cr_lf INTO lv_string.&lt;BR /&gt; TRANSFER lv_string TO p_otfile.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; CLOSE DATASET p_otfile.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 11:58:31 GMT</pubDate>
    <dc:creator>former_member314998</dc:creator>
    <dc:date>2018-05-17T11:58:31Z</dc:date>
    <item>
      <title>Application server file format issue on Notepad and Notepad++</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-format-issue-on-notepad-and-notepad/m-p/633092#M26631</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142036-notepad-file.png" /&gt;&lt;/P&gt;
  &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142035-notepad-file.png" /&gt;Hi Experts ,
  &lt;P&gt; Recently I have been facing an issue on transferring data from internal table to application server file.&lt;/P&gt;
  &lt;P&gt;That file format is looks good in notepad but in notepad++ it adds blank row after each record.&lt;/P&gt;
  &lt;P&gt;Please find the code details below and share your thoughts on that.&lt;/P&gt;
  &lt;P&gt;Internal table :&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;TYPES : BEGIN OF lty_mara,&lt;BR /&gt; material_no TYPE mara-zznamatnr,&lt;BR /&gt; partnumber_new(30) TYPE c,&lt;BR /&gt; partnumber_old(30) TYPE c,&lt;BR /&gt; manufacturer(35) TYPE c,&lt;BR /&gt; END OF lty_mara.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;OPEN DATASET p_otfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;BR /&gt; CLEAR lv_string.&lt;BR /&gt; IF lwa_mara_header IS NOT INITIAL.&lt;BR /&gt; CONCATENATE lwa_mara_header lv_cr_lf INTO lv_string.&lt;BR /&gt; TRANSFER lv_string TO p_otfile.&lt;BR /&gt; ENDIF.&lt;BR /&gt; LOOP AT ltt_mara_new INTO lwa_mara_new.&lt;BR /&gt; CLEAR lv_string.&lt;BR /&gt; CONCATENATE lwa_mara_new lv_cr_lf INTO lv_string.&lt;BR /&gt; TRANSFER lv_string TO p_otfile.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; CLOSE DATASET p_otfile.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 11:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-format-issue-on-notepad-and-notepad/m-p/633092#M26631</guid>
      <dc:creator>former_member314998</dc:creator>
      <dc:date>2018-05-17T11:58:31Z</dc:date>
    </item>
  </channel>
</rss>

