<?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: gui upload runtime error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961504#M698661</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 filename should be of type string...chek this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_filename type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now call fm' GUI_UPLOAD'.&lt;/P&gt;&lt;P&gt;FILENAME = I_FILENAME&lt;/P&gt;&lt;P&gt;FILETYPE = 'DAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 07:39:09 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-10-12T07:39:09Z</dc:date>
    <item>
      <title>gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961503#M698660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i got type conflict when calling a fm.&lt;/P&gt;&lt;P&gt;a FM was called incorrectly&lt;/P&gt;&lt;P&gt;the fm interface allows you to specify only fields of a particular type under 'filename'. the file "p_inputfile" specified has a different field type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;originally i use ws_upload. no issue to this FM. i use the same parameter and apply on gui_upload, i got short dump.&lt;/P&gt;&lt;P&gt;basically i pass in filename, type 'DAT' and internal table. i even try ASC but still the same.&lt;/P&gt;&lt;P&gt;may i know why? p_inputfile like rlgrap-filename incorrect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961503#M698660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961504#M698661</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 filename should be of type string...chek this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_filename type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now call fm' GUI_UPLOAD'.&lt;/P&gt;&lt;P&gt;FILENAME = I_FILENAME&lt;/P&gt;&lt;P&gt;FILETYPE = 'DAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961504#M698661</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-12T07:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961505#M698662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;data: gv_file type string,&amp;lt;/b&amp;gt;

start-of-selection.

call function 'GUI_UPLOAD'
exporting
filename = gv_file
filetype = 'ASC'
* HAS_FIELD_SEPARATOR = ' '
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
tables
data_tab = it_datatab
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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961505#M698662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961506#M698663</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;Yes, p_inputfile like rlgrap-filename incorrect it should be of string type incase of gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961506#M698663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961507#M698664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the p_inputfile as type &amp;lt;b&amp;gt;string,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if found useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961507#M698664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961508#M698665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thanks but........... if i define like this also not allowed. why parameter and string cannot be together?&lt;/P&gt;&lt;P&gt;it says "nested data type "string" is not allowed".&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: p_inputfile type string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961508#M698665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961509#M698666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what ever ur parameter type . sppose p_inputfile is ur  parameter.&lt;/P&gt;&lt;P&gt;just declare one variable &lt;/P&gt;&lt;P&gt;data: p_path  type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_path = p_inputfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now call fm.with value p_path&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961509#M698666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961510#M698667</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p_file1 type string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file1 = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now pass p_file1 to GUI_UPLOAD function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961510#M698667</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-12T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961511#M698668</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.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.&lt;/P&gt;&lt;P&gt;  PARAMETERS: p_file LIKE IBIPPARMS-PATH OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : S_FILE TYPE STRING.&lt;/P&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To select the File in the system.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_file = 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                      = S_FILE&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = t_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961511#M698668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T08:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961512#M698669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;Parameters cannot be declared using Type String . bcoz its length is dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_FILE(30) .&lt;/P&gt;&lt;P&gt;DATA : V_FILE TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE P_FILE TO V_FILE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  CALL FUNCTION GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;  FILENAME  = V_FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-runtime-error/m-p/2961512#M698669</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-12T08:31:40Z</dc:date>
    </item>
  </channel>
</rss>

