<?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: F4 Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531558#M1263720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the below class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lf_file&lt;/P&gt;&lt;P&gt;      filetype                = 'EXCL'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = lf_filelength&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab                = lt_datatab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS                  = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2009 08:53:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-13T08:53:55Z</dc:date>
    <item>
      <title>F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531557#M1263719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to give F4 help option for file path parameter. Is there any way that in F4 help I can make the file type as by default excel format so that the user can always export data to an excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Meenu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 08:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531557#M1263719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531558#M1263720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the below class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lf_file&lt;/P&gt;&lt;P&gt;      filetype                = 'EXCL'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = lf_filelength&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab                = lt_datatab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS                  = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 08:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531558#M1263720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T08:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531559#M1263721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_location_flag = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_SERVER = '?'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_PATH =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; filemask = '*.xls'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILEOPERATION = 'R'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;O_LOCATION_FLAG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;O_SERVER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;o_path = filename&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ABEND_FLAG =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;rfc_error = 1&lt;/P&gt;&lt;P&gt;error_with_gui = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 08:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531559#M1263721</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-04-13T08:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531560#M1263722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OOps use the method &lt;/P&gt;&lt;P&gt;FILE_SAVE_DIALOG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 08:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531560#M1263722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T08:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531561#M1263723</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 method CL_GUI_FRONTEND_SERVICES-&amp;gt;FILE_OPEN_DIALOG&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;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog
    EXPORTING
      window_title      = 'Select archivo'
      default_extension = 'xls'
      file_filter       = '*.xls'
    CHANGING
      filename          = filename
      path              = path
      fullpath          = fullpath.

  IF sy-subrc EQ 0.
    p_file = fullpath.
  ENDIF.

  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      initial_directory = directory
      file_filter       = '*.xml'    " EC-NOTEXT
      multiselection    = ' '
    CHANGING
      file_table        = filetable
      rc                = rc.
  IF rc = 1.
    READ TABLE filetable INDEX 1 INTO line.
    filename = line-filename.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 08:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531561#M1263723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531562#M1263724</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;  CALL FUNCTION &lt;STRONG&gt;'KD_GET_FILENAME_ON_F4'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PROGRAM_NAME  = SY-REPID&lt;/P&gt;&lt;P&gt;      DYNPRO_NUMBER = SYST-DYNNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     FIELD_NAME    = file_name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      FILE_NAME     = FILE_NAME&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      MASK_TOO_LONG = 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;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 08:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531562#M1263724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531563#M1263725</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;Use FM CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
   EXPORTING
   PROGRAM_NAME        = SYST-REPID
    DYNPRO_NUMBER       = SYST-DYNNR
    FIELD_NAME                 = &amp;lt;Field-Name&amp;gt;
     STATIC              = 'X'
    MASK                = '*.XLS, *.xls'
    CHANGING
      FILE_NAME           = P_INPUT
 EXCEPTIONS
   MASK_TOO_LONG       = 1
*   OTHERS              = 2

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 09:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531563#M1263725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T09:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531564#M1263726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the FM :WS_FILENAME_GET for F4 help and GUI_DOWNLOAD to export data. I ahve to give user the option to specify file name and path. So while specifying the file name itself i want to make the file type option as excel format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 09:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531564#M1263726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531565#M1263727</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;hope it will help u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR PFNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            STATIC    = 'X'&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            FILE_NAME = PFNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~linganna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 09:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531565#M1263727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531566#M1263728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meenu,&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;create parameter as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:fname LIKE rlgrap-filename  DEFAULT ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call the following function in your program &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;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = syst-cprog&lt;/P&gt;&lt;P&gt;     dynpro_number       = syst-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FIELD_NAME          =  FNAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      file_name           =  fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass the value "fname'  where required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Amol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 09:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531566#M1263728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T09:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531567#M1263729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM : 'KD_GET_FILENAME_ON_F4' is not taking the filename as by default excel format.&lt;/P&gt;&lt;P&gt;If we specify the filename.XLS then only it is working. My requirement is to take it by deafult into excel format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 09:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531567#M1263729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T09:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531568#M1263730</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 these Method's &lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES-&amp;gt;FILE_OPEN_DIALOG&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;You can pass the extension while calling these methods and When you see the Pop-Up the File type selected will be the one you passed to these methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my above post ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 09:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5531568#M1263730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T09:39:31Z</dc:date>
    </item>
  </channel>
</rss>

