<?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: declaring a file path in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942316#M388804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use function module f4_filename.&lt;/P&gt;&lt;P&gt;but this will work when you press f4 function key.&lt;/P&gt;&lt;P&gt;and for drop down i will check and get back to you.&lt;/P&gt;&lt;P&gt;bye take care.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 14:44:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-22T14:44:52Z</dc:date>
    <item>
      <title>declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942313#M388801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can any one tell me how can i declare a file on my selection screen so that i can get a drop down box so that i can select a file from the directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942313#M388801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942314#M388802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      def_path         = 'C:\'&lt;/P&gt;&lt;P&gt;      mask             = '&lt;STRONG&gt;.&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filename         = p_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inv_winsys       = 1&lt;/P&gt;&lt;P&gt;      no_batch         = 2&lt;/P&gt;&lt;P&gt;      selection_cancel = 3&lt;/P&gt;&lt;P&gt;      selection_error  = 4&lt;/P&gt;&lt;P&gt;      OTHERS           = 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942314#M388802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942315#M388803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT zex12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : fname like rlgrap-filename.&lt;/P&gt;&lt;P&gt;      DATA : filename TYPE string.&lt;/P&gt;&lt;P&gt;      DATA : table1 TYPE filetable,&lt;/P&gt;&lt;P&gt;             rc TYPE i.&lt;/P&gt;&lt;P&gt;DATA : VAL LIKE DYNPREAD-FIELDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynfields type table of dynpread with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : R1 RADIOBUTTON GROUP RG  modif id abc.&lt;/P&gt;&lt;P&gt;PARAMETERS : R2 RADIOBUTTON GROUP RG modif id def.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        default_filename = '&lt;STRONG&gt;.&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        file_table       = table1&lt;/P&gt;&lt;P&gt;        rc               = rc.&amp;lt;/b&amp;gt;&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 e000(zXXX) WITH 'Error'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table table1 index 1 into fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF fname cs '.XLS'.&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'R1'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = 'X'.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'R2'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = ' '.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif fname cs '.DOC'.&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'R1'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = ' '.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'R2'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = 'X'.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dyname = sy-cprog&lt;/P&gt;&lt;P&gt;dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = dynfields&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942315#M388803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942316#M388804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use function module f4_filename.&lt;/P&gt;&lt;P&gt;but this will work when you press f4 function key.&lt;/P&gt;&lt;P&gt;and for drop down i will check and get back to you.&lt;/P&gt;&lt;P&gt;bye take care.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942316#M388804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942317#M388805</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;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_OFILE LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: W_VAL_MASK TYPE STRING,&lt;/P&gt;&lt;P&gt;            W_FILETABLE  TYPE FILETABLE,&lt;/P&gt;&lt;P&gt;            W_FILENAME   TYPE STRING,&lt;/P&gt;&lt;P&gt;            W_RC         TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W_VAL_MASK = '&lt;STRONG&gt;.&lt;/STRONG&gt;|&lt;STRONG&gt;.&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WINDOW_TITLE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEFAULT_EXTENSION       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEFAULT_FILENAME        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FILE_FILTER             = W_VAL_MASK&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WITH_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   INITIAL_DIRECTORY       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MULTISELECTION          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    FILE_TABLE              = W_FILETABLE&lt;/P&gt;&lt;P&gt;    RC                      = W_RC&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   USER_ACTION             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_OPEN_DIALOG_FAILED = 1&lt;/P&gt;&lt;P&gt;    CNTL_ERROR              = 2&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI            = 3&lt;/P&gt;&lt;P&gt;    NOT_SUPPORTED_BY_GUI    = 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;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;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    READ TABLE W_FILETABLE INTO W_FILENAME INDEX 1.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;     P_OFILE = W_FILENAME.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942317#M388805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942318#M388806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

  CALL FUNCTION 'F4_FILENAME'
       EXPORTING
            program_name  = v_repid
            dynpro_number = syst-dynnr
            field_name    = 'P_FILE'
       IMPORTING
            file_name     = p_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942318#M388806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942319#M388807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;At selection-screen on p_filename value-request .  [ Pls check the syntax].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this event you can use the F4_filename to get the dropdown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 14:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-file-path/m-p/1942319#M388807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T14:52:19Z</dc:date>
    </item>
  </channel>
</rss>

