<?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: error in gui_upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890500#M1326308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks at [this Sample code...|http://www.experts-exchange.com/Database/Software/ERP/SAP_ERP/Q_21278801.html] check where u were doing it wrong..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2009 04:35:50 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-07-24T04:35:50Z</dc:date>
    <item>
      <title>error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890499#M1326307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru,&lt;/P&gt;&lt;P&gt;iam doing some bdc program.. but ity will going to dump on gui_upload.. so plz help me.&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;not caught in.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;procedure "F_UPLOAD_FILE" "(FORM)", nor was it propagated by a RAISING clause.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Since the caller of the procedure could not have anticipated that the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exception would occur, the current program is terminated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The reason for the exception is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The call to the function module "GUI_UPLOAD" is incorrect:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The function module interface allows you to specify only&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fields of a particular type under "FILENAME".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The field "P_P_FILE" specified here is a different&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;field type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-h01.                          &lt;/P&gt;&lt;P&gt;PARAMETERS: &lt;STRONG&gt;p_file&lt;/STRONG&gt; LIKE rlgra-filename                                                                                &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK b1.                                                                                .----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.                                                                                &lt;/P&gt;&lt;P&gt;PERFORM f_get_file USING p_file.                                                                                &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------------------------------------------------------" /&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;CHANGING                                                                                &lt;/P&gt;&lt;P&gt;FILE_NAME           = &lt;STRONG&gt;p_p_file&lt;/STRONG&gt;                                                                                &lt;/P&gt;&lt;P&gt;endform.                &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_upload_file  using    p_p_file.                                                                                &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'                                                                                &lt;/P&gt;&lt;P&gt;EXPORTING                                                                                &lt;/P&gt;&lt;P&gt;FILENAME                      = p_p_file                                                                                &lt;/P&gt;&lt;P&gt;FILETYPE                      = 'DAT'                                                                                &lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890499#M1326307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T04:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890500#M1326308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks at [this Sample code...|http://www.experts-exchange.com/Database/Software/ERP/SAP_ERP/Q_21278801.html] check where u were doing it wrong..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890500#M1326308</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-24T04:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890501#M1326309</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 type declaration of p_p_file should be string instead of rlgra-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form f_upload_file using p_p_file. 

data l_file type string.         " add this
l_file = p_p_file.                  " add this 

CALL FUNCTION 'GUI_UPLOAD' 
EXPORTING FILENAME = p_p_file 
FILETYPE = 'DAT' 
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890501#M1326309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T04:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890502#M1326310</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;please post the code of GUI_UPLOAD you have used in your program. Seems the dump is due to type mismatch for the file path variable p_p_file.&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;Vik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vikred on Jul 24, 2009 6:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890502#M1326310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T04:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890503#M1326311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the data type of file path you are passing to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: *p_file* LIKE rlgra-filename&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try taking it string...&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;Sumit Nene.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890503#M1326311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T04:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890504#M1326312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the type of GUI_UPLOAD FM's file name is not matching with p_p_file type. please use same type or it will give error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890504#M1326312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T04:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890505#M1326313</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 data type of your file name variable should have been wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: gv_fname TYPE string.

PARAMETERS: p_fpath TYPE RLGRAP-FILENAME.   &amp;lt;- Check the data type

CALL FUNCTION 'F4_FILENAME'
 EXPORTING
    program_name  = sy-repid
    dynpro_number = syst-dynnr
     FIELD_NAME          = 'P_FPATH'
 IMPORTING
   file_name           = p_fpath
          .

GV_FNAME = P_FPATH.

  CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                = GV_FNAME   &amp;lt;- Check the data type
    filetype                = 'ASC'
    has_field_separator     = 'X'
  TABLES
    data_tab                = t_salesorder
  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.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 04:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890505#M1326313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T04:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890506#M1326314</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;Refer the program given below. it is working fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make the paramerter as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pa_dfile TYPE rcgfiletr-ftfront.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_dfile.&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;      mask          = '(Text file|*.TXT'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_name     = pa_dfile&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 'PG' TYPE 'E' NUMBER '016'&lt;/P&gt;&lt;P&gt;          WITH 'Error in F4 help'(005).&lt;/P&gt;&lt;P&gt;    "The provided file is not an excel sheet.&lt;/P&gt;&lt;P&gt;    RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_filetype(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_gui_sep TYPE c,&lt;/P&gt;&lt;P&gt;        lv_file_name TYPE string.&lt;/P&gt;&lt;P&gt;  lv_filetype = 'ASC'.&lt;/P&gt;&lt;P&gt;  lv_gui_sep = 'X'.&lt;/P&gt;&lt;P&gt;  lv_file_name = pa_dfile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM call to upload file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lv_filetype&lt;/P&gt;&lt;P&gt;      has_field_separator     = lv_gui_sep  &lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_table&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      OTHERS                  = 17.&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;&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;Rajesh Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh Kumar on Jul 24, 2009 7:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 05:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890506#M1326314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T05:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: error in gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890507#M1326315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI.. ITS NOT TAKING THE EXCEL AND WORD FILE.. ITS UPLOADING THE GARBAGE VALUE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-gui-upload/m-p/5890507#M1326315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:02:17Z</dc:date>
    </item>
  </channel>
</rss>

