<?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: Export Data To Fixed Length File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911053#M684986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code to do the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: file TYPE string VALUE `flights.dat`, 
      wa   TYPE spfli. 

FIELD-SYMBOLS TYPE x. 

OPEN DATASET file FOR OUTPUT IN BINARY MODE. 

SELECT * 
       FROM spfli 
       INTO wa. 
  ASSIGN wa TO CASTING. 
  TRANSFER TO file. 
* TRANSFER LENGTH 200 to file.

ENDSELECT. 

CLOSE DATASET file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 03:19:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-09T03:19:08Z</dc:date>
    <item>
      <title>Export Data To Fixed Length File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911050#M684983</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 have a requirement to export a couple of files that need to be in a fixed length format.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried opening the dataset and writing the records passing the column that the records should appear:&lt;/P&gt;&lt;P&gt;    WRITE /, field1, 10 field2, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried to do it through SAP_CONVERT_TO_CSV_FORMAT and the text version as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a predefined function that will allow me to export as fixed length?  &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>Mon, 08 Oct 2007 23:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911050#M684983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T23:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data To Fixed Length File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911051#M684984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you expalin in more details as what is your exact requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 00:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911051#M684984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T00:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data To Fixed Length File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911052#M684985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function Modules &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/functions.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/fmodules/fmssap.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/fmodules/fmssap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/index.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abapfun.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abapfun.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful..........&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 03:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911052#M684985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T03:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data To Fixed Length File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911053#M684986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code to do the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: file TYPE string VALUE `flights.dat`, 
      wa   TYPE spfli. 

FIELD-SYMBOLS TYPE x. 

OPEN DATASET file FOR OUTPUT IN BINARY MODE. 

SELECT * 
       FROM spfli 
       INTO wa. 
  ASSIGN wa TO CASTING. 
  TRANSFER TO file. 
* TRANSFER LENGTH 200 to file.

ENDSELECT. 

CLOSE DATASET file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 03:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-fixed-length-file/m-p/2911053#M684986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T03:19:08Z</dc:date>
    </item>
  </channel>
</rss>

