<?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: search file in application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901159#M936084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;Use this FM&lt;/P&gt;&lt;P&gt;ws_c_directory is the path u can give for Ex: ws_c_directory(128)  type c value '/conversions/',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME_SERVER'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        pfad                    = ws_c_directory&lt;/P&gt;&lt;UL&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;      FILE_NAME               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;       no_file_on_server       = 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;P&gt;      message s001(zv_errr).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-ucomm = c_yes.&lt;/P&gt;&lt;P&gt;      p_file = sy-lisel+1(68).&lt;/P&gt;&lt;P&gt;      condense p_file.&lt;/P&gt;&lt;P&gt;      concatenate ws_c_directory p_file into p_file.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 05:54:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-27T05:54:09Z</dc:date>
    <item>
      <title>search file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901155#M936080</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;How can us find the perticular file in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 05:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901155#M936080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T05:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: search file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901156#M936081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZDIRFILES                                                   *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZDIRFILES    .&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 05:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901156#M936081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T05:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: search file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901157#M936082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.This to find the path for the File:&lt;/P&gt;&lt;P&gt;DATA: dl_file TYPE ibipparms-path. " File name&lt;/P&gt;&lt;P&gt;CONSTANTS: c_dir TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4 filename for Application server &lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;directory = c_dir&lt;/P&gt;&lt;P&gt;filemask = ' '&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;serverfile = dl_file&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;canceled_by_user = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE e000 WITH 'Error while getting the file name'(006).&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;p_file = dl_file.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.check this function module F4_DXFILENAME_TOPRECURSION..&lt;/P&gt;&lt;P&gt;we use this function module for F4 help to give all the existing files list in Application server !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the transaction AL11 u can see all the directories in SAP i.e application layer files directories..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default when u create an application server file in an ABAP program using OPEN DATASET and CLOSE DATASET this file gets created in a default home directory of SAP ...... HOME directory...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 05:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901157#M936082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T05:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: search file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901158#M936083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;use this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_c_directory(128)  type c value '/conversions/',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call function 'F4_FILENAME_SERVER'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        pfad                    = ws_c_directory&lt;/P&gt;&lt;UL&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;      FILE_NAME               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;       no_file_on_server       = 1&lt;/P&gt;&lt;P&gt;       others                  = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 05:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901158#M936083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T05:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: search file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901159#M936084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;Use this FM&lt;/P&gt;&lt;P&gt;ws_c_directory is the path u can give for Ex: ws_c_directory(128)  type c value '/conversions/',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME_SERVER'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        pfad                    = ws_c_directory&lt;/P&gt;&lt;UL&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;      FILE_NAME               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;       no_file_on_server       = 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;P&gt;      message s001(zv_errr).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-ucomm = c_yes.&lt;/P&gt;&lt;P&gt;      p_file = sy-lisel+1(68).&lt;/P&gt;&lt;P&gt;      condense p_file.&lt;/P&gt;&lt;P&gt;      concatenate ws_c_directory p_file into p_file.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 05:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-file-in-application-server/m-p/3901159#M936084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T05:54:09Z</dc:date>
    </item>
  </channel>
</rss>

