<?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 F4 Help for presentation server filepath/name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238251#M141380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Can anyone tell me how can I get a F4 help for selecting a file or directory from the PC...i.e I should get a pop-up &amp;#147;Open File&amp;#148; dialog to select the File on PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Apr 2006 23:40:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-23T23:40:07Z</dc:date>
    <item>
      <title>F4 Help for presentation server filepath/name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238251#M141380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Can anyone tell me how can I get a F4 help for selecting a file or directory from the PC...i.e I should get a pop-up &amp;#147;Open File&amp;#148; dialog to select the File on PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2006 23:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238251#M141380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-23T23:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help for presentation server filepath/name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238252#M141381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunitha.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can write the following code in the At selection screeb value request event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Using ABAP Objects:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETER : p_file LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
  DATA: directory TYPE string,                             
        filetable TYPE filetable,                          
        line      TYPE LINE OF filetable,                  
        rc        TYPE i.                                  
  CALL METHOD cl_gui_frontend_services=&amp;gt;get_temp_directory 
    CHANGING                                               
      temp_dir = directory.                                
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog   
    EXPORTING                                              
      window_title      = 'SELECT THE FILE'          
      initial_directory = directory                        
      file_filter       = '*.XLS'                          
      multiselection    = ' '                              
    CHANGING                                               
      file_table        = filetable                                                          
       rc                = rc.                          
   IF rc = 1.                                           
     READ TABLE filetable INDEX 1 INTO line.            
     P_FILE = line-filename.                          
   ENDIF.                                               

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Using Normal ABAP:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:   P_FILE LIKE RLGRAP-FILENAME,
        DPATH LIKE RLGRAP-FILENAME,
        UPATH LIKE RLGRAP-FILENAME,
        MODE TYPE C,
        FLG_UD TYPE C.

  CALL FUNCTION 'WS_ULDL_PATH'
       IMPORTING
            DOWNLOAD_PATH = DPATH
            UPLOAD_PATH   = UPATH.

  IF FLG_UD &amp;lt;&amp;gt; 'D'.
    DPATH = UPATH.
    MODE = 'O'.
  ELSE.
    MODE = 'S'.
  ENDIF.

  CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            DEF_FILENAME     = '*.XLS'
            DEF_PATH         = DPATH
            MASK             = ',*.XLS,*.*,*.*.'
            MODE             = MODE
       IMPORTING
            FILENAME         = P_FILE
       EXCEPTIONS
            SELECTION_CANCEL = 3.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Just copy paste the code this should work fine.&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2006 23:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238252#M141381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-23T23:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help for presentation server filepath/name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238253#M141382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks VJ!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 01:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238253#M141382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T01:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help for presentation server filepath/name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238254#M141383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunitha,&lt;/P&gt;&lt;P&gt; just use the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; PARAMETERS: dataset(132) LOWER CASE OBLIGATORY.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR dataset.
PERFORM call_filedialog CHANGING dataset.

FORM call_filedialog CHANGING fname.
DATA: li_filetable TYPE STANDARD TABLE OF file_table,
lv_return TYPE i,
lw_filetable TYPE file_table.

CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
TABLES
file_table = li_filetable
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
IF sy-subrc &amp;lt;&amp;gt; 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE li_filetable INDEX 1 INTO lw_filetable.
fname = lw_filetable-filename.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 01:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238254#M141383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T01:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help for presentation server filepath/name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238255#M141384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks satesh!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 02:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-presentation-server-filepath-name/m-p/1238255#M141384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T02:39:57Z</dc:date>
    </item>
  </channel>
</rss>

