<?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: Upload file from PC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466223#M1058201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS:gv_f_pc  TYPE rlgrap-filename.
DATA:FILENAME TYPE STRING.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR gv_f_pc .
*--- search help to select file from pc
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      STATIC        = 'X'
    CHANGING
      file_name     = gv_f_pc
    EXCEPTIONS
      mask_too_long = 1
      OTHERS        = 2.
  IF sy-subrc = 0.
*MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

START-OF-SELECTION.

  FILENAME = gv_f_pc.

CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = filename
          FILETYPE                = 'ASC'
        TABLES
          DATA_TAB                = GT_DATA
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.

      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.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2008 05:10:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-19T05:10:36Z</dc:date>
    <item>
      <title>Upload file from PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466221#M1058199</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;I have to upload a file from PC and in my selection screen i have declared like this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS       : P_FN TYPE RLGRAP-FILENAME.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not getting the F4 help for this field until or unless with out the F4 help i can not choose the file which is in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me out how to get the F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JAJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466221#M1058199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T05:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file from PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466222#M1058200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fm:&lt;/P&gt;&lt;P&gt;F4_Filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466222#M1058200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T05:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file from PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466223#M1058201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS:gv_f_pc  TYPE rlgrap-filename.
DATA:FILENAME TYPE STRING.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR gv_f_pc .
*--- search help to select file from pc
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      STATIC        = 'X'
    CHANGING
      file_name     = gv_f_pc
    EXCEPTIONS
      mask_too_long = 1
      OTHERS        = 2.
  IF sy-subrc = 0.
*MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

START-OF-SELECTION.

  FILENAME = gv_f_pc.

CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = filename
          FILETYPE                = 'ASC'
        TABLES
          DATA_TAB                = GT_DATA
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.

      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.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466223#M1058201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T05:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file from PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466224#M1058202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis code.&lt;/P&gt;&lt;P&gt;data: l_p_file type string,  "for setting default file name&lt;/P&gt;&lt;P&gt;        l_p_path type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_p_file = 'file'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**-- Calling function module for F4 help in pathname on selection screen&lt;/P&gt;&lt;P&gt;  call method cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      default_file_name    = l_p_file&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      filename             = l_p_path&lt;/P&gt;&lt;P&gt;      path                 = l_p_path&lt;/P&gt;&lt;P&gt;      fullpath             = l_p_file&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      cntl_error           = 1&lt;/P&gt;&lt;P&gt;      error_no_gui         = 2&lt;/P&gt;&lt;P&gt;      not_supported_by_gui = 3&lt;/P&gt;&lt;P&gt;      others               = 4.&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 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-file-from-pc/m-p/4466224#M1058202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T05:16:22Z</dc:date>
    </item>
  </channel>
</rss>

