<?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 Updated Function module for WS_FILENAME_GET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071392#M429062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;what is the updated Function module for WS_FILENAME_GET which is Obsolete??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 08:49:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T08:49:09Z</dc:date>
    <item>
      <title>Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071392#M429062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;what is the updated Function module for WS_FILENAME_GET which is Obsolete??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071392#M429062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071393#M429063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you go inside this function Module, internally it is calling FM. ITS_FILENAME_GET. Try using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071393#M429063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071394#M429064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt; the class methos:&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071394#M429064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071395#M429065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: PATH(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RECORD TYPE STRING,&lt;/P&gt;&lt;P&gt;      FILE TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_FILETAB     TYPE FILETABLE,&lt;/P&gt;&lt;P&gt;      L_FILETAB_H   TYPE FILETABLE WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      INITIAL_DIR_PATH TYPE STRING,&lt;/P&gt;&lt;P&gt;      L_RC          TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: FNAME TYPE LOCALFILE OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK B1.&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;&lt;/P&gt;&lt;P&gt;  REFRESH L_FILETAB.&lt;/P&gt;&lt;P&gt;  INITIAL_DIR_PATH = 'C:\'.&lt;/P&gt;&lt;P&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;P&gt;    WINDOW_TITLE            = 'Select the Asset Master Data file'&lt;/P&gt;&lt;UL&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             = 'Text Files (&lt;STRONG&gt;.TXT)|&lt;/STRONG&gt;.TXT|'&lt;/P&gt;&lt;P&gt;    INITIAL_DIRECTORY       = INITIAL_DIR_PATH&lt;/P&gt;&lt;P&gt;      MULTISELECTION          = SPACE&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;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      FILE_TABLE              = L_FILETAB&lt;/P&gt;&lt;P&gt;      RC                      = L_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;          .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'Error while selecting the input file'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT L_FILETAB INTO L_FILETAB_H.&lt;/P&gt;&lt;P&gt;      FNAME = L_FILETAB_H-FILENAME.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071395#M429065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071396#M429066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out class CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you want CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071396#M429066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071397#M429067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rammohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_SAVE_DIALOG&lt;/P&gt;&lt;P&gt;if mode in WS_FILENAMES_GET is 'S' , if it's 'O',&lt;/P&gt;&lt;P&gt;use CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&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>Wed, 21 Mar 2007 08:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071397#M429067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071398#M429068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ram use  cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_emp.

  REFRESH: it_tabemp.
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      window_title      = 'Select File'
      default_filename  = '*.xls'
      initial_directory = 'C:'
      multiselection    = ' '  "No multiple selection
    CHANGING
      file_table        = it_tabemp
      rc                = gd_subrcemp.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071398#M429068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071399#M429069</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;The updated FM is ITS_FILENAME_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Seema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071399#M429069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071400#M429070</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;Check this code sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              DEF_FILENAME     = '.TXT'&lt;/P&gt;&lt;P&gt;              DEF_PATH         = 'C:\'&lt;/P&gt;&lt;P&gt;              MASK             = ',All Files,*.txt.'&lt;/P&gt;&lt;P&gt;              MODE             = 'O'&lt;/P&gt;&lt;P&gt;              TITLE            = 'Select File'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              FILENAME         = W_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;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module can be replaced with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;      RC TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_filter1(10) type c value ',All Files,*.txt.',&lt;/P&gt;&lt;P&gt;       w_filter2 type string.&lt;/P&gt;&lt;P&gt;Move w_filter1 to w_filter2.&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;P&gt;    WINDOW_TITLE            = 'Select File'&lt;/P&gt;&lt;P&gt;    DEFAULT_EXTENSION       = '.TXT'&lt;/P&gt;&lt;P&gt;    FILE_FILTER             = w_filter2&lt;/P&gt;&lt;P&gt;    INITIAL_DIRECTORY       = 'C:\'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MULTISELECTION          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WITH_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    FILE_TABLE              = W_FILE&lt;/P&gt;&lt;P&gt;    RC                      = 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************&lt;STRONG&gt;Reward points if found useful&lt;/STRONG&gt;****************************8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kriththika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071400#M429070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071401#M429071</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 Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For saving you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for opening file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreevani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 09:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071401#M429071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T09:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Function module for WS_FILENAME_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071402#M429072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 09:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updated-function-module-for-ws-filename-get/m-p/2071402#M429072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T09:11:20Z</dc:date>
    </item>
  </channel>
</rss>

