<?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: FM to get the application server path? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955586#M393324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;             May be check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4_FILENAME_SERVER 	&amp;#147; 	                       File Path on Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinail. K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 12:34:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T12:34:54Z</dc:date>
    <item>
      <title>FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955581#M393319</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;Is there a way/FM to find a path of the application server? As it wud be dynamic for each user?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955581#M393319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955582#M393320</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;Try the Fun Module FIND_DB_APPLICATION_SERVER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955582#M393320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955583#M393321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call function 'F4_DXFILENAME_TOPRECURSION'&lt;/P&gt;&lt;P&gt;   Exporting&lt;/P&gt;&lt;P&gt;     i_location_flag       = ' '&lt;/P&gt;&lt;P&gt;     i_server              = ' '&lt;/P&gt;&lt;P&gt;     i_path                = ' '&lt;/P&gt;&lt;P&gt;     Filemask              = '&lt;STRONG&gt;.&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;     Fileoperation         = 'R'&lt;/P&gt;&lt;P&gt;   Importing&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   O_LOCATION_FLAG      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   O_SERVER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    o_path               =  p_file* &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ABEND_FLAG           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     rfc_error             = 1&lt;/P&gt;&lt;P&gt;     others                = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Parameter name to which you want to assign the output of the function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955583#M393321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955584#M393322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;F4_DXFILENAME_TOPRECURSION &amp;lt;- use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIND_DB_APPLICATION_SERVER for default path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955584#M393322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955585#M393323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This FM gives me somethng like this sapds31_S31_31&lt;/P&gt;&lt;P&gt;that's not wht I want. I want the path which comes by default when u click on the browse button it's like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BNGRDC-S-01006\Chethana.Shivamurthy$\cached\Profile Data\SapWorkDir\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fetch this path. Is this possible? how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955585#M393323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955586#M393324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;             May be check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4_FILENAME_SERVER 	&amp;#147; 	                       File Path on Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinail. K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 12:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955586#M393324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T12:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955587#M393325</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;What input I shud give for this FM? I just want application server default path so that I concatenate a file name and store my file there. I'm not getting whch file name I have to give for this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried with local file name and application server file name but it gives an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955587#M393325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955588#M393326</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;CALL FUNCTION 'FILE_GET_NAME_USING_PATH'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;LOGICAL_PATH = P_LPATH "logical path&lt;/P&gt;&lt;P&gt;OPERATING_SYSTEM = SY-OPSYS&lt;/P&gt;&lt;P&gt;FILE_NAME = 'XXX' "file name&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME_WITH_PATH = LV_FILE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PATH_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;MISSING_PARAMETER = 2&lt;/P&gt;&lt;P&gt;OPERATING_SYSTEM_NOT_FOUND = 3&lt;/P&gt;&lt;P&gt;FILE_SYSTEM_NOT_FOUND = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--error.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could simply try opening it. If sy-subrc &amp;lt;&amp;gt; 0, then you know that the path/filename is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset d1........&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write:/ 'File path not found'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try FM &lt;/P&gt;&lt;P&gt;RKZ_GET_POSITION_SEQ_FILE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try &lt;/P&gt;&lt;P&gt;giving the file path without the .txt extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works...&lt;/P&gt;&lt;P&gt;_________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this SUBST_GET_FILE_LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fm EPS_GET_DIRECTORY_LISTING &lt;/P&gt;&lt;P&gt;Please see this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_disall.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_disall.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955588#M393326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955589#M393327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi refer this code sampel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Get list of files within specific directory(Application server)   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP code for retrieving list of files contained within specific Application server directory(SAP). &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZDIRFILES    .


PARAMETER: p_fdir            type pfeflnamel DEFAULT '/usr/sap/tmp'.

data: begin of it_filedir occurs 10.
        include structure salfldir.
data: end of it_filedir.


************************************************************************
*START-OF-SELECTION
START-OF-SELECTION.
* Get Current Directory Listing for OUT Dir
  call function 'RZL_READ_DIR_LOCAL'
       exporting
            name     = p_fdir
       tables
            file_tbl = it_filedir.

* List of files are contained within table it_filedir
  loop at it_filedir.
    write: / it_filedir-NAME.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_getdirfiles.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_getdirfiles.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_disall.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_disall.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem. Reward points if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955589#M393327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: FM to get the application server path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955590#M393328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the simplest way would be to run transaction CG3Y and see what path is shown there by default&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-get-the-application-server-path/m-p/1955590#M393328</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-03-05T07:56:45Z</dc:date>
    </item>
  </channel>
</rss>

