<?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: Regarding Application server file path browsing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236152#M140846</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;Refer this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1357747"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2006 05:57:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-31T05:57:50Z</dc:date>
    <item>
      <title>Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236151#M140845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a issue regarding Application Server File Path browsing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in my selection-screen i will declare a parameter as &amp;lt;b&amp;gt;Application Server File Path&amp;lt;/b&amp;gt; now when i press F4 in that field it should be able to browse through &amp;lt;b&amp;gt;Application Server Path's&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Just like &amp;lt;b&amp;gt;F4_FILENAME&amp;lt;/b&amp;gt; in the case of &amp;lt;b&amp;gt;Presentation Server File Path&amp;lt;/b&amp;gt; Browsing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody solve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rayeez.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 05:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236151#M140845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T05:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236152#M140846</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;Refer this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1357747"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 05:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236152#M140846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T05:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236153#M140847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just copy and paste:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code for retrieving list of files contained within specific Application server directory(SAP). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_filedir occurs 10.&lt;/P&gt;&lt;P&gt;include structure salfldir.&lt;/P&gt;&lt;P&gt;data: end of it_filedir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Current Directory Listing for OUT Dir&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'RZL_READ_DIR_LOCAL'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;name = p_fdir&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;file_tbl = it_filedir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List of files are contained within table it_filedir&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at it_filedir.&lt;/P&gt;&lt;P&gt;write: / it_filedir-NAME.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Let me know incase of any concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;There are few FM for ur refernce :&lt;/P&gt;&lt;P&gt;RZL_READ_DIR_LOCAL&lt;/P&gt;&lt;P&gt;SUBST_GET_FILE_LIST Return table with file list for the given directory (pattern allowed) &lt;/P&gt;&lt;P&gt;F4_DXFILENAME_TOPRECURSION Popup to select one file from the given application server directory &lt;/P&gt;&lt;P&gt;TH_SERVER_LIST Returns list of application servers. &lt;/P&gt;&lt;P&gt;EPS_GET_DIRECTORY_LISTING &amp;#150; Lists filenames from the application server .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;Rewrd points, if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236153#M140847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T06:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236154#M140848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen on value-request for f_app.
perform get_fname_app.


form get_fname_app.

data: c_fnh_mask type dxfields-filemask value '*.*',
search_dir type dxfields-longpath value '/sapglobal/users',
file_path like dxfields-longpath.

call function 'F4_DXFILENAME_TOPRECURSION'
exporting
i_location_flag = 'A'
i_server = ' '
i_path = search_dir
filemask = c_fnh_mask
fileoperation = 'R'
importing
o_path = file_path
exceptions
rfc_error = 1
others = 2
.
if sy-subrc eq 0.
f_app = file_path.
endif.
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236154#M140848</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-03-31T06:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236155#M140849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following code gives you the list of files available in the application server for the given directory.So with the internal table which the FM returns you can manipulate to meet your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_filedir occurs 10.&lt;/P&gt;&lt;P&gt;include structure salfldir.&lt;/P&gt;&lt;P&gt;data: end of it_filedir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Current Directory Listing for OUT Dir&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'RZL_READ_DIR_LOCAL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name                 = p_fdir&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    file_tbl             = it_filedir&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ARGUMENT_ERROR       = 1&lt;/P&gt;&lt;P&gt;   NOT_FOUND            = 2&lt;/P&gt;&lt;P&gt;   OTHERS               = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List of files are contained within table it_filedir&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at it_filedir.&lt;/P&gt;&lt;P&gt;write: / it_filedir-NAME.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236155#M140849</guid>
      <dc:creator>Private_Member_17805</dc:creator>
      <dc:date>2006-03-31T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236156#M140850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi...&lt;/P&gt;&lt;P&gt;u can try out with the following FM..&lt;/P&gt;&lt;P&gt;"F4_DXFILENAME_TOPRECURSION "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The detail description for it is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Popup to select one file from the given application server directory (pattern allowed). &lt;/P&gt;&lt;P&gt;*(Can be used also for selecting file on presentation server: calls WS_FILENAME_GET) &lt;/P&gt;&lt;P&gt;*Parameters: I_LOCATION_FLAG={A|P|space};&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if I_LOCATION_FLAG is blank then popup to choose Appl./Present.; if I_SERVER='?' then popup to select appl.server. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as in...&lt;/P&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       = 'A'  "(A) Server (P) Presentaión&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SERVER              = '?'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_PATH                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILEMASK              = '&lt;STRONG&gt;.&lt;/STRONG&gt;'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILEOPERATION         = 'R'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&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;LI level="1" type="ul"&gt;&lt;P&gt;  O_PATH                =&lt;/P&gt;&lt;/LI&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;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt;Ananaya.S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236156#M140850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T06:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Application server file path browsing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236157#M140851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this FM &amp;lt;b&amp;gt;/SAPDMC/LSM_F4_SERVER_FILE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      L_FILEMASK = '*'.
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
           EXPORTING
                DIRECTORY        = L_DIRECTORY
                FILEMASK         = L_FILEMASK
           IMPORTING
                SERVERFILE       = P_FILENAME
           EXCEPTIONS
                CANCELED_BY_USER = 1
                OTHERS           = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 07:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-application-server-file-path-browsing/m-p/1236157#M140851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T07:21:14Z</dc:date>
    </item>
  </channel>
</rss>

