<?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: Read flat file into IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940968#M1334559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a Z program in se38 and in that you will have to make use of OPEN DATASET, READ DATASET and CLOSE DATASET statements to read the fiel from the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC is just an intermediate document with some structure.&lt;/P&gt;&lt;P&gt;It does not have a capability to read a file by itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file had to be explicitely read from the application server making use of the above statements and then pass the data to the idoc structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more help do F1 on these statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jul 2009 11:20:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-25T11:20:35Z</dc:date>
    <item>
      <title>Read flat file into IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940967#M1334558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file in application server, now I need to convert this file into IDOC format and save the records in SAP database. Can any one provide us the steps to do this. I would like to know how to create a port for file type to read the flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 07:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940967#M1334558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-25T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read flat file into IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940968#M1334559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a Z program in se38 and in that you will have to make use of OPEN DATASET, READ DATASET and CLOSE DATASET statements to read the fiel from the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC is just an intermediate document with some structure.&lt;/P&gt;&lt;P&gt;It does not have a capability to read a file by itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file had to be explicitely read from the application server making use of the above statements and then pass the data to the idoc structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more help do F1 on these statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 11:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940968#M1334559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-25T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read flat file into IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940969#M1334560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create a corresponding IDOC for fields of File. (Segments in IDOC consist of fields)&lt;/P&gt;&lt;P&gt;2) create message type&lt;/P&gt;&lt;P&gt;3) assign message type to IDOC type&lt;/P&gt;&lt;P&gt;4) read file an push fields in to corresponding fields of IDOC&lt;/P&gt;&lt;P&gt;5) Caal a inbound FM for IDOC to push data into SAP IDOC databse for future use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) if want to process data of this IDOC then u need process code(FM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now go step by step..u ll find enough material online for above steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 08:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-flat-file-into-idoc/m-p/5940969#M1334560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T08:10:58Z</dc:date>
    </item>
  </channel>
</rss>

