<?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 file from logical system in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997439#M955045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the FM used to call a file which is in the logical system. I am not able to recollect the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 05:57:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T05:57:11Z</dc:date>
    <item>
      <title>file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997439#M955045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the FM used to call a file which is in the logical system. I am not able to recollect the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 05:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997439#M955045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T05:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997440#M955046</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;GUI_DOWNLOAD is the function module and other which acts opposite is &lt;/P&gt;&lt;P&gt;GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this would be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 06:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997440#M955046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T06:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997441#M955047</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;&lt;/P&gt;&lt;P&gt;datasets are the file son the application server.&lt;/P&gt;&lt;P&gt;open dataset opens the file for reading / writing or appending records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read dataset reads the data from teh file to the work area / variables of the program&lt;/P&gt;&lt;P&gt;close dataset closes the file on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Dataset is used to read or write on to application server ... other than that i am not sure that there exists any way to do the same ... here is a short description for that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE HANDLING IN SAP&lt;/P&gt;&lt;P&gt;Introduction&lt;/P&gt;&lt;P&gt;u2022 Files on application server are sequential files.&lt;/P&gt;&lt;P&gt;u2022 Files on presentation server / workstation are local files. &lt;/P&gt;&lt;P&gt;u2022 A sequential file is also called a dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handling of Sequential file&lt;/P&gt;&lt;P&gt;Three steps are involved in sequential file handling&lt;/P&gt;&lt;P&gt;u2022 OPEN&lt;/P&gt;&lt;P&gt;u2022 PROCESS&lt;/P&gt;&lt;P&gt;u2022 CLOSE&lt;/P&gt;&lt;P&gt;Here processing of file can be READING a file or WRITING on to a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN FILE&lt;/P&gt;&lt;P&gt;Before data can be processed, a file needs to be opened.&lt;/P&gt;&lt;P&gt;After processing file is closed.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;OPEN DATASET &amp;lt;file name&amp;gt; FOR {OUTPUT/INPUT/APPENDING}&lt;/P&gt;&lt;P&gt;IN {TEXT/BINARY} MODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement returns SY_SUBRC as 0 for successful opening of file or 8, if unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT: Opens the file for writing. If the dataset already exists, this will place the cursor at the start of the dataset,&lt;/P&gt;&lt;P&gt;the old contents get deleted at the end of the program or when the CLOSE DATASET is encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT: Opens a file for READ and places the cursor at the beginning of the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR APPENDING: Opens the file for writing and places the cursor at the end of file. If the file does not exist, it is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BINARY MODE: The READ or TRANSFER will be character wise. Each time u2018nu2019u2019 characters are READ or transferred.&lt;/P&gt;&lt;P&gt;The next READ or TRANSFER will start from the next character position and not on the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN TEXT MODE: The READ or TRANSFER will start at the beginning of a new line each time.&lt;/P&gt;&lt;P&gt;If for READ, the destination is shorter than the source, it gets truncated. &lt;/P&gt;&lt;P&gt;If destination is longer, then it is padded with spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defaults: If nothing is mentioned, then defaults are FOR INPUT and in BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS FILE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processing a file involves READing the file or Writing on to file TRANSFER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER Statement&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;TRANSFER &amp;lt;field&amp;gt; TO &amp;lt;file name&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;Field&amp;gt; can also be a field string / work area / DDIC structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each transfer statement writes a statement to the dataset. In binary mode, it writes the length of the field to the dataset.&lt;/P&gt;&lt;P&gt;In text mode, it writes one line to the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file is not already open, TRANSFER tries to OPEN file FOR OUTPUT (IN BINARY MODE) or using the last OPEN DATASET statement for this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FILE HANDLING, TRANSFER IS THE ONLY STATEMENT WHICH DOES NOT RETURN SY-SUBRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ Statement&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;READ DATASET &amp;lt;file name&amp;gt; INTO &amp;lt;field&amp;gt;. &lt;/P&gt;&lt;P&gt;&amp;lt;Field&amp;gt; can also be a field string / work area / DDIC structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each READ will get one record from the dataset. &lt;/P&gt;&lt;P&gt;In binary mode it reads the length of the field and in text mode it reads each line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE FILE: &lt;/P&gt;&lt;P&gt;The program will close all sequential files, which are open at the end of the program. &lt;/P&gt;&lt;P&gt;However, it is a good programming practice to explicitly close all the datasets that were opened.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;file name&amp;gt;.&lt;/P&gt;&lt;P&gt;SY-SUBRC will be set to 0 or 8 depending on whether the CLOSE is successful or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FILE:&lt;/P&gt;&lt;P&gt;A dataset can be deleted.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;DELETE DATASET &amp;lt;file name&amp;gt;.&lt;/P&gt;&lt;P&gt;SY-SUBRC will be set to 0 or 8 depending on whether the DELETE is successful or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pseudo logic for processing the sequential files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset for input in a particular mode.&lt;/P&gt;&lt;P&gt;Start DO loop.&lt;/P&gt;&lt;P&gt;Read dataset into a field.&lt;/P&gt;&lt;P&gt;If READ is not successful.&lt;/P&gt;&lt;P&gt;Exit the loop.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Do relevant processing for that record.&lt;/P&gt;&lt;P&gt;End the do loop.&lt;/P&gt;&lt;P&gt;Close the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For writing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset for output / Appending in a particular mode.&lt;/P&gt;&lt;P&gt;Populate the field that is to be transferred.&lt;/P&gt;&lt;P&gt;TRANSFER the filed to a dataset.&lt;/P&gt;&lt;P&gt;Close the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 06:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997441#M955047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T06:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997442#M955048</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;Thanks for the reply, but that is from the physical system, like desktop,there is another FM which starts with get_file.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM you mentioned cannot be used to call the file in the server of sap or non sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 06:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997442#M955048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997443#M955049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwa,&lt;/P&gt;&lt;P&gt;             Can you be specific, what exactly is your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 06:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997443#M955049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T06:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997444#M955050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks fo the Reply Raj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I am not doing a BDC program here, I am trying to do a vendor master interface from a web based application into SAP,to do that we need the FM which calls logical files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 06:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997444#M955050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T06:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: file from logical system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997445#M955051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwa,&lt;/P&gt;&lt;P&gt;                I think you want the function module to browse and select the file on the logical system. If so, the function module is:&lt;/P&gt;&lt;P&gt;     F4_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Any queries, get back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 07:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-from-logical-system/m-p/3997445#M955051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T07:33:24Z</dc:date>
    </item>
  </channel>
</rss>

