<?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_GET_NAME in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317098#M794567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of FILE_GET_NAME function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2008 13:28:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-31T13:28:09Z</dc:date>
    <item>
      <title>FILE_GET_NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317098#M794567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of FILE_GET_NAME function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 13:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317098#M794567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T13:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: FILE_GET_NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317099#M794568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look docu in se37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get physical filename for your logical file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 13:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317099#M794568</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2008-01-31T13:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: FILE_GET_NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317100#M794569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is some information on this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he Function Module FILE_GET_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Platform-independent file names are used in applications programs by the function module FILE_GET_NAME. For a given logical file name, the function module generates the corresponding platform-specific file name at runtime, based on definitions stored in customizing tables for converting platform-independent file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following table gives an overview of its import and export parameters and of its exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table: Interface of function module FILE_GET_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT parameter&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logical file names can be client-specific. Here you can specify the client to be used. The current client as stored in the system field SY-MANDT is used as default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you specify the logical filename. (Uppercase letters must be used!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPERATING_SYSTEM&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can specify the operating system for which to generate the appropriate file name. The application server's operating system as stored in the system field SY-OPSYS is used as default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER_2&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can specify values that substitute the placeholders &amp;lt;PARAM_1&amp;gt; and &amp;lt;PARAM_2&amp;gt; in physical file names and paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE_PRESENTATION&lt;/P&gt;&lt;P&gt;_SERVER&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifies that the presentation server's operating system be used as the basis for generating a platform-specific file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH_FILE_EXTENSION&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifies that the logical file name's data format be used as filename extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE_BUFFER&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifies that the customizing tables for converting platform-independent file names be buffered in main memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT parameter&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EMERGENCY_FLAG&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the returned value is not SPACE, then no physical path has been found for the logical filename under the current operating system. In this case the path specified in the profile parameter DIR_GLOBAL will be used as physical path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_FORMAT&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the data format defined for the logical file name. You can use this parameter to decide in which mode to open the file. It is also required as a parameter for DOWNLOAD of files to the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NAME&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the fully instantiated platform-specific file name and path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raised if logical file name is not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTHERS&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raised if other errors occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the function module cannot find a physical path for the current operating system (see parameter EMERGENCY_FLAG), this may have various causes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          o the operating system is not defined in the customizing tables&lt;/P&gt;&lt;P&gt;          o the operating system is not assigned to a syntax group&lt;/P&gt;&lt;P&gt;          o no physical path is assigned to the logical path for the relevant syntax group&lt;/P&gt;&lt;P&gt;          o no logical path is assigned to the logical file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that in the customizing tables for platform-independent file names the following definitions exist for the logical file name DATA_FILE and the logical path DATA_PATH:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA_FILE phys. file: file&amp;lt;PARAM_1&amp;gt;&lt;/P&gt;&lt;P&gt;data format: BIN&lt;/P&gt;&lt;P&gt;logical path: DATA_PATH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA_PATH syntax group: UNIX phys. path: /tmp/&amp;lt;FILENAME&amp;gt;&lt;/P&gt;&lt;P&gt;syntax group: DOS phys. path: c:\tmp\&amp;lt;FILENAME&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume also that the application server's operating system has been assigned to syntax group UNIX while the presentation server's operating system has been assigned to syntax group DOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following two calls of the function module will then return the respective values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME = 'DATA_FILE'&lt;/P&gt;&lt;P&gt;PARAMETER_1 = '01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EMERGENCY_FLAG = FLAG&lt;/P&gt;&lt;P&gt;FILE_FORMAT = FORMAT&lt;/P&gt;&lt;P&gt;FILE_NAME = FNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returned values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG:&lt;/P&gt;&lt;P&gt;FORMAT: BIN&lt;/P&gt;&lt;P&gt;FNAME: /tmp/file01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME = 'DATA_FILE'&lt;/P&gt;&lt;P&gt;USE_PRESENTATION_SERVER = X&lt;/P&gt;&lt;P&gt;WITH_FILE_EXTENSION = X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EMERGENCY_FLAG = FLAG&lt;/P&gt;&lt;P&gt;FILE_FORMAT = FORMAT&lt;/P&gt;&lt;P&gt;FILE_NAME = FNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returned values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG:&lt;/P&gt;&lt;P&gt;FORMAT: BIN&lt;/P&gt;&lt;P&gt;FNAME: c:\tmp\FILE.BIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;kushagra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jan 31, 2008 9:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 13:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317100#M794569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: FILE_GET_NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317101#M794570</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;Check this out&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FU FILE_GET_NAME&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Assign the Physical File Name Using a Logical File Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.&lt;/P&gt;&lt;P&gt;For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logical file name: MONTHLY_SALES_FILE &lt;/P&gt;&lt;P&gt;physical file name: VALUES&amp;lt;PARAM_1&amp;gt; &lt;/P&gt;&lt;P&gt;logical path: SALES_DATA_PATH &lt;/P&gt;&lt;P&gt;physical path (UNIX): /usr/&amp;lt;SYSID&amp;gt;/&amp;lt;FILENAME&amp;gt; &lt;/P&gt;&lt;P&gt;physical path (Windows): C:\SALES\&amp;lt;FILENAME&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1&lt;/P&gt;&lt;P&gt;Get file name for UNIX platform&lt;/P&gt;&lt;P&gt;(current system: K11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = FILE&lt;/P&gt;&lt;P&gt;FILE_FORMAT = FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;FILE = /usr/K11/VALUES&lt;/P&gt;&lt;P&gt;FORMAT = WK1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2&lt;/P&gt;&lt;P&gt;Get file name for UNIX platform, passing a parameter&lt;/P&gt;&lt;P&gt;(current system: K11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'&lt;/P&gt;&lt;P&gt;PARAMETER_1 = '_TST'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = FILE&lt;/P&gt;&lt;P&gt;FILE_FORMAT = FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;FILE = /usr/K11/VALUES_TST&lt;/P&gt;&lt;P&gt;FORMAT = WK1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 3&lt;/P&gt;&lt;P&gt;Get file name for WINDOWS platform, with file name extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'&lt;/P&gt;&lt;P&gt;WITH_FILE_EXTENSION = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = FILE&lt;/P&gt;&lt;P&gt;FILE_FORMAT = FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;FILE = C:\SALES\VALUES.WK1&lt;/P&gt;&lt;P&gt;FORMAT = WK1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following concepts are used in the platform-independent assignment of file names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logical file name&lt;/P&gt;&lt;P&gt;A descriptive name for a file which is associated with these values:&lt;/P&gt;&lt;P&gt;physical file name&lt;/P&gt;&lt;P&gt;file format&lt;/P&gt;&lt;P&gt;logical file path.&lt;/P&gt;&lt;P&gt;If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.&lt;/P&gt;&lt;P&gt;Physical file name&lt;/P&gt;&lt;P&gt;The physical file name may contain placeholders.&lt;/P&gt;&lt;P&gt;Logical file path&lt;/P&gt;&lt;P&gt;A descriptive name for a path which is associated with these values:&lt;/P&gt;&lt;P&gt;syntax groups (groups of operating systems)&lt;/P&gt;&lt;P&gt;physical file paths.&lt;/P&gt;&lt;P&gt;Physical file path&lt;/P&gt;&lt;P&gt;The physical file path is defined for a particular syntax group. It must contain the reserved word &amp;lt;FILENAME&amp;gt; as a placeholder for the file name. It may also contain other placeholders.&lt;/P&gt;&lt;P&gt;Operating system&lt;/P&gt;&lt;P&gt;Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.&lt;/P&gt;&lt;P&gt;Both operating systems must be defined and assigned to a syntax group.&lt;/P&gt;&lt;P&gt;Syntax group&lt;/P&gt;&lt;P&gt;Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).&lt;/P&gt;&lt;P&gt;Placeholder&lt;/P&gt;&lt;P&gt;Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. &amp;lt;DATE&amp;gt;, &amp;lt;FILENAME&amp;gt;). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.&lt;/P&gt;&lt;P&gt;If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME&lt;/P&gt;&lt;P&gt;OPERATING_SYSTEM&lt;/P&gt;&lt;P&gt;PARAMETER_1&lt;/P&gt;&lt;P&gt;PARAMETER_2&lt;/P&gt;&lt;P&gt;PARAMETER_3&lt;/P&gt;&lt;P&gt;USE_PRESENTATION_SERVER&lt;/P&gt;&lt;P&gt;WITH_FILE_EXTENSION&lt;/P&gt;&lt;P&gt;USE_BUFFER&lt;/P&gt;&lt;P&gt;ELEMINATE_BLANKS&lt;/P&gt;&lt;P&gt;EMERGENCY_FLAG&lt;/P&gt;&lt;P&gt;FILE_FORMAT&lt;/P&gt;&lt;P&gt;FILE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;SFIL&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;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 13:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317101#M794570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: FILE_GET_NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317102#M794571</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;PLease read below document extracted from SE37 directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FU FILE_GET_NAME&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Assign the Physical File Name Using a Logical File Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.&lt;/P&gt;&lt;P&gt;For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logical file name: MONTHLY_SALES_FILE &lt;/P&gt;&lt;P&gt;physical file name: VALUES&amp;lt;PARAM_1&amp;gt; &lt;/P&gt;&lt;P&gt;logical path: SALES_DATA_PATH &lt;/P&gt;&lt;P&gt;  physical path (UNIX): /usr/&amp;lt;SYSID&amp;gt;/&amp;lt;FILENAME&amp;gt; &lt;/P&gt;&lt;P&gt;  physical path (Windows): C:\SALES\&amp;lt;FILENAME&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1&lt;/P&gt;&lt;P&gt;Get file name for UNIX platform&lt;/P&gt;&lt;P&gt;(current system: K11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;      LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME = FILE&lt;/P&gt;&lt;P&gt;      FILE_FORMAT = FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;FILE = /usr/K11/VALUES&lt;/P&gt;&lt;P&gt;FORMAT = WK1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2&lt;/P&gt;&lt;P&gt;Get file name for UNIX platform, passing a parameter&lt;/P&gt;&lt;P&gt;(current system: K11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;      LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'&lt;/P&gt;&lt;P&gt;      PARAMETER_1 = '_TST'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME = FILE&lt;/P&gt;&lt;P&gt;      FILE_FORMAT = FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;FILE = /usr/K11/VALUES_TST&lt;/P&gt;&lt;P&gt;FORMAT = WK1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 3&lt;/P&gt;&lt;P&gt;Get file name for WINDOWS platform, with file name extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;      LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'&lt;/P&gt;&lt;P&gt;      WITH_FILE_EXTENSION = 'X'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME = FILE&lt;/P&gt;&lt;P&gt;      FILE_FORMAT = FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;FILE = C:\SALES\VALUES.WK1&lt;/P&gt;&lt;P&gt;FORMAT = WK1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following concepts are used in the platform-independent assignment of file names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logical file name&lt;/P&gt;&lt;P&gt;A descriptive name for a file which is associated with these values:&lt;/P&gt;&lt;P&gt;physical file name&lt;/P&gt;&lt;P&gt;file format&lt;/P&gt;&lt;P&gt;logical file path.&lt;/P&gt;&lt;P&gt;If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.&lt;/P&gt;&lt;P&gt;Physical file name&lt;/P&gt;&lt;P&gt;The physical file name may contain placeholders.&lt;/P&gt;&lt;P&gt;Logical file path&lt;/P&gt;&lt;P&gt;A descriptive name for a path which is associated with these values:&lt;/P&gt;&lt;P&gt;syntax groups (groups of operating systems)&lt;/P&gt;&lt;P&gt;physical file paths.&lt;/P&gt;&lt;P&gt;Physical file path&lt;/P&gt;&lt;P&gt;The physical file path is defined for a particular syntax group. It must contain the reserved word &amp;lt;FILENAME&amp;gt; as a placeholder for the file name. It may also contain other placeholders.&lt;/P&gt;&lt;P&gt;Operating system&lt;/P&gt;&lt;P&gt;Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.&lt;/P&gt;&lt;P&gt;Both operating systems must be defined and assigned to a syntax group.&lt;/P&gt;&lt;P&gt;Syntax group&lt;/P&gt;&lt;P&gt;Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).&lt;/P&gt;&lt;P&gt;Placeholder&lt;/P&gt;&lt;P&gt;Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. &amp;lt;DATE&amp;gt;, &amp;lt;FILENAME&amp;gt;). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.&lt;/P&gt;&lt;P&gt;If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME&lt;/P&gt;&lt;P&gt;OPERATING_SYSTEM&lt;/P&gt;&lt;P&gt;PARAMETER_1&lt;/P&gt;&lt;P&gt;PARAMETER_2&lt;/P&gt;&lt;P&gt;PARAMETER_3&lt;/P&gt;&lt;P&gt;USE_PRESENTATION_SERVER&lt;/P&gt;&lt;P&gt;WITH_FILE_EXTENSION&lt;/P&gt;&lt;P&gt;USE_BUFFER&lt;/P&gt;&lt;P&gt;ELEMINATE_BLANKS&lt;/P&gt;&lt;P&gt;EMERGENCY_FLAG&lt;/P&gt;&lt;P&gt;FILE_FORMAT&lt;/P&gt;&lt;P&gt;FILE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;SFIL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-get-name/m-p/3317102#M794571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T14:18:28Z</dc:date>
    </item>
  </channel>
</rss>

