<?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 for selecting file path from apps server dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305701#M504344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2007 14:55:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-21T14:55:59Z</dc:date>
    <item>
      <title>FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305690#M504333</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;                 Is there any FM for selecting a file path from apps server directily in the selection-screen.&lt;/P&gt;&lt;P&gt;waiting for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J.prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305690#M504333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305691#M504334</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;can anybody of u will tell how to use  the FM  'TMP_GUI_DIRECTORY_LIST_FILES', i.e.,  a bit of code i need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 06:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305691#M504334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T06:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305692#M504335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use logical file name concept and after that ise Fm FILE_GET_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 06:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305692#M504335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T06:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305693#M504336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DIRECTORY = T_DIREC&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;FILE_TABLE = FILE_TABLE&lt;/P&gt;&lt;P&gt;DIR_TABLE = DIR_TABLE .&lt;/P&gt;&lt;P&gt;IF DIR_TABLE[] IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TEXTLINE1 = 'Please Enter Valid Directory'&lt;/P&gt;&lt;P&gt;TEXTLINE2 = 'Ex: d:\temp'.&lt;/P&gt;&lt;P&gt;MESSAGE e013(zmamin) WITH ''.&lt;/P&gt;&lt;P&gt;V_FLAG = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 06:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305693#M504336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T06:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305694#M504337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is d solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call FM : RZL_READ_DIR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the path in NAME(export parameter) &lt;/P&gt;&lt;P&gt;like C:\      - U will get all the files and folders in table parameter FILE_TBL&lt;/P&gt;&lt;P&gt;and size having  0000000000 are folders .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display these files and folders in any formate - i suggest  - list display in popup window .&lt;/P&gt;&lt;P&gt;let user select any file /folder &lt;/P&gt;&lt;P&gt;if folder is selected call this FM once again - ohterwise if file is selected - get it in some variable &lt;/P&gt;&lt;P&gt;and do anything with it according to your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Njoy..&lt;/P&gt;&lt;P&gt;Reward if it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 08:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305694#M504337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T08:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305695#M504338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: f_app(128).
 
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.                    "get_fname_app&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 09:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305695#M504338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T09:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305696#M504339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using this fn module .. '/SAPDMC/LSM_F4_SERVER_FILE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 09:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305696#M504339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T09:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305697#M504340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt; Check out this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :  p_f2  LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;CONSTANTS  :  c_mask TYPE char9 VALUE ',*.*,*.*.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f2.&lt;/P&gt;&lt;P&gt;*-- Browse Application Server&lt;/P&gt;&lt;P&gt;  PERFORM f1001_browse_appl_file.&lt;/P&gt;&lt;P&gt;&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;*&amp;amp;      Form  f1001_browse_appl_file&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f1001_browse_appl_file .&lt;/P&gt;&lt;P&gt;  DATA:  lcl_directory  TYPE char128.&lt;/P&gt;&lt;P&gt;  lcl_directory  = '/local'.&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        = lcl_directory&lt;/P&gt;&lt;P&gt;      filemask         = c_mask&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      serverfile       = p_f2&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE e000(zmm) WITH text-039.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   flg_app = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f1001_browse_appl_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-SatyaPriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 03:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305697#M504340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T03:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305698#M504341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the class CL_GUI_FRONTEND_SERVICES also for this, instead of using Function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indrajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 13:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305698#M504341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T13:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305699#M504342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What method of CL_GUI_FRONTEND_SERVICES can i use for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 05:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305699#M504342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T05:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305700#M504343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
"ABAP code for retrieving list of files contained within specific Application server
  " directory(SAP).


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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  points if it is usefull....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 06:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305700#M504343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T06:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: FM for selecting file path from apps server dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305701#M504344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 14:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-selecting-file-path-from-apps-server-dynamically/m-p/2305701#M504344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T14:55:59Z</dc:date>
    </item>
  </channel>
</rss>

