<?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: Dump with GUI_UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906868#M1962796</link>
    <description>&lt;P&gt;change p_infile with gd_file below.&lt;/P&gt;&lt;P&gt;*** begin&lt;/P&gt;&lt;P&gt;gd_file = p_infile.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'EXPORTING&lt;BR /&gt;filename = gd_file&lt;/P&gt;&lt;P&gt;*** end&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 11:47:50 GMT</pubDate>
    <dc:creator>former_member612421</dc:creator>
    <dc:date>2019-06-18T11:47:50Z</dc:date>
    <item>
      <title>Dump with GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906865#M1962793</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Can you please help with the following code. I am getting a dump when I execute. &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Ven&lt;/P&gt;
  &lt;P&gt;REPORT Testreport.&lt;BR /&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.PARAMETERS: p_infile LIKE rlgrap-filenameDEFAULT 'C:\Users\nveni\Desktop\name.txt' OBLIGATORY.&lt;/P&gt;
  &lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;
  &lt;P&gt; DATA: gd_file TYPE string.&lt;BR /&gt;TYPES: BEGIN OF t_record,&lt;BR /&gt; name1 LIKE pa0002-vorna,&lt;BR /&gt; name2 LIKE pa0002-name2,&lt;BR /&gt; age TYPE i,&lt;/P&gt;
  &lt;P&gt;END OF t_record.&lt;BR /&gt; DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,&lt;BR /&gt; wa_record TYPE t_record.&lt;BR /&gt; CALL FUNCTION 'GUI_UPLOAD'EXPORTING&lt;BR /&gt; filename = p_infile&lt;BR /&gt; filetype = 'ASC'&lt;BR /&gt; has_field_separator = ' ' &lt;/P&gt;
  &lt;P&gt;TABLES&lt;BR /&gt; data_tab = it_recordEXCEPTIONS&lt;BR /&gt; file_open_error = 1&lt;BR /&gt; file_read_error = 2&lt;BR /&gt; no_batch = 3&lt;BR /&gt; gui_refuse_filetransfer = 4&lt;BR /&gt; invalid_type = 5&lt;BR /&gt; no_authority = 6&lt;BR /&gt; unknown_error = 7&lt;BR /&gt; bad_data_format = 8&lt;BR /&gt; header_not_allowed = 9&lt;BR /&gt; separator_not_allowed = 10&lt;BR /&gt; header_too_long = 11&lt;BR /&gt; unknown_dp_error = 12&lt;BR /&gt; access_denied = 13&lt;BR /&gt; dp_out_of_memory = 14&lt;BR /&gt; disk_full = 15&lt;BR /&gt; dp_timeout = 16OTHERS = 17.IF sy-subrc NE 0.WRITE: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.SKIP.ENDIF.&lt;BR /&gt; END-OF-SELECTION.&lt;/P&gt;
  &lt;P&gt;LOOP AT it_record INTO wa_record.WRITE:/ sy-vline,(10) wa_record-name1, sy-vline,(10) wa_record-name2, sy-vline,(10) wa_record-age, sy-vline.ENDLOOP.i&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906865#M1962793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-06-18T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dump with GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906866#M1962794</link>
      <description>&lt;P&gt;Please use the code button to format your code. Also it looks like it's not your complete code. I see an 'i' after the last loop.&lt;/P&gt;&lt;P&gt;It might also be useful to mention what dump you're actually getting.&lt;/P&gt;&lt;P&gt;Having said this it is most likely a type mismatch.&lt;/P&gt;&lt;P&gt;Instead of p_infile for the Filename parameter, try moving it to a string variable and use that variable.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906866#M1962794</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2019-06-18T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dump with GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906867#M1962795</link>
      <description>&lt;P&gt;Please use the CODE button to format your code so that it's more user-friendly.&lt;/P&gt;&lt;P&gt;Please provide the full short dump.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906867#M1962795</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-06-18T11:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dump with GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906868#M1962796</link>
      <description>&lt;P&gt;change p_infile with gd_file below.&lt;/P&gt;&lt;P&gt;*** begin&lt;/P&gt;&lt;P&gt;gd_file = p_infile.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'EXPORTING&lt;BR /&gt;filename = gd_file&lt;/P&gt;&lt;P&gt;*** end&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906868#M1962796</guid>
      <dc:creator>former_member612421</dc:creator>
      <dc:date>2019-06-18T11:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dump with GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906869#M1962797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I modify your code kindly look at the attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nawa. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 19:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-with-gui-upload/m-p/11906869#M1962797</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-06-18T19:39:19Z</dc:date>
    </item>
  </channel>
</rss>

