<?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: Flat file with empty field generation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763377#M905438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use offsets to write the field values ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-v_file+0(3) = v_1.&lt;/P&gt;&lt;P&gt;itab-v_file+3(1) = '*'.&lt;/P&gt;&lt;P&gt;itab-v_file+4(5) = v_2.&lt;/P&gt;&lt;P&gt;itab-v_file+9(1) = '*'.&lt;/P&gt;&lt;P&gt;itab-v_file+10(5) = v_3.&lt;/P&gt;&lt;P&gt;itab-v_file+15(1) = '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now download this table ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 08:06:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T08:06:10Z</dc:date>
    <item>
      <title>Flat file with empty field generation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763375#M905436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a structure with few variables, for instance :&lt;/P&gt;&lt;P&gt; v_1   c lenght 3,&lt;/P&gt;&lt;P&gt; v_2   c lenght 5,&lt;/P&gt;&lt;P&gt; v_3   c lenght 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to insert those values in a txt flat file.&lt;/P&gt;&lt;P&gt;The fields will have to be separated by a star '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can see, there's no way to force the field separator to be a * using GUI_DOWNLOAD function.&lt;/P&gt;&lt;P&gt;But I've found a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my issue now is that I can't find a way to have an "empty" field.&lt;/P&gt;&lt;P&gt;Here is an example of what my file should look like if v_2 is empty :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aaa&lt;/STRONG&gt;     &lt;STRONG&gt;bbbbb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is how it is created :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aaa&lt;/STRONG&gt;*     bbbbb*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there is a way to have my v_2 fill with blanks or spaces in my output file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763375#M905436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flat file with empty field generation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763376#M905437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, in my previous post my exemple appears in bold...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of what my file should look like if v_2 is empty :&lt;/P&gt;&lt;P&gt;\*aaa\*     \*bbbbb\*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is how it is created :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aaa&lt;/STRONG&gt;*     bbbbb*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 08:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763376#M905437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T08:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flat file with empty field generation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763377#M905438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use offsets to write the field values ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-v_file+0(3) = v_1.&lt;/P&gt;&lt;P&gt;itab-v_file+3(1) = '*'.&lt;/P&gt;&lt;P&gt;itab-v_file+4(5) = v_2.&lt;/P&gt;&lt;P&gt;itab-v_file+9(1) = '*'.&lt;/P&gt;&lt;P&gt;itab-v_file+10(5) = v_3.&lt;/P&gt;&lt;P&gt;itab-v_file+15(1) = '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now download this table ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 08:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flat-file-with-empty-field-generation/m-p/3763377#M905438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T08:06:10Z</dc:date>
    </item>
  </channel>
</rss>

