<?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 Fixed length file splitting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-file-splitting/m-p/9011460#M1698685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I got a requirement to upload a fixed length text file and get data from it and post to fbs01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used gui_upload and got the data in an internal tables.&lt;/P&gt;&lt;P&gt;Now i need to extract data depending on the coloumn position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should i use offests.or is there any alternate way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A functionmodule?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 15:50:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-12T15:50:14Z</dc:date>
    <item>
      <title>Fixed length file splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-file-splitting/m-p/9011460#M1698685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I got a requirement to upload a fixed length text file and get data from it and post to fbs01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used gui_upload and got the data in an internal tables.&lt;/P&gt;&lt;P&gt;Now i need to extract data depending on the coloumn position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should i use offests.or is there any alternate way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A functionmodule?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 15:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-file-splitting/m-p/9011460#M1698685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-12T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed length file splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-file-splitting/m-p/9011461#M1698686</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;It depends on how the data are written in the file, if the file was a CSV, you can split the file at ;, but if your file is positional, you should define an internal structure arranged like the structure of the file and to move the data to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RECORD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD1(N) TYPE C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD2(Z) TYPE C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...........................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF RECORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_FILE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOVE T_FILE TO RECORD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 16:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-file-splitting/m-p/9011461#M1698686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-12T16:28:00Z</dc:date>
    </item>
  </channel>
</rss>

