<?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: function module GUI_UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575263#M1271650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you declared intenral table with header line then change data_tab under tables with body option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES
data_tab = itab_item[]
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, are you filling data in text file in a single row by tab delimited of entires records ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 12:43:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T12:43:13Z</dc:date>
    <item>
      <title>function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575258#M1271645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; Iam using GUI_UPLOAD function module to upload file from desktop to the internal table .Iam using more than 1 rows of data in text TAB delimated file .But when iam using the function module , it always take first record from the file and put it into internal table.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    Start-of-selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  IF p_ppath IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_filenm = p_ppath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = l_filenm&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                = itab_item&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575258#M1271645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575259#M1271646</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;&lt;/P&gt;&lt;P&gt;gui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whikle formating the table itab_item and moving into another internal table..&lt;/P&gt;&lt;P&gt; ignore the first line it contains header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_item.&lt;/P&gt;&lt;P&gt;  if sy-tabix &amp;gt; 1.&lt;/P&gt;&lt;P&gt;   split and move into another internal table..&lt;/P&gt;&lt;P&gt;  Endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or pass...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"pass this field in exporting it will solve u r problem

HEADER_LENGTH = 1

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on May 21, 2009 5:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575259#M1271646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575260#M1271647</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;You can create a seperate work area in which you can populate the Table for the Data and then you can pass the same to the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to loop the table. Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into WA.&lt;/P&gt;&lt;P&gt;fill the data tab.&lt;/P&gt;&lt;P&gt;clear WA.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help. Just fill the work area and the internal Table properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575260#M1271647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575261#M1271648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;               Iam dooing the same but iam still facing the problem .The code is as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_item INTO wa_item.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING wa_item TO wa_final.&lt;/P&gt;&lt;P&gt;       wa_final-zcre_date   = sy-datum.&lt;/P&gt;&lt;P&gt;       wa_final-zcre_by     = sy-uname.&lt;/P&gt;&lt;P&gt;       wa_final-zlast_chon  = sy-datum.&lt;/P&gt;&lt;P&gt;       wa_final-zlast_chby  = sy-uname.&lt;/P&gt;&lt;P&gt;       wa_final-d1= 'X'.&lt;/P&gt;&lt;P&gt;       wa_final-d2  = 'X'.&lt;/P&gt;&lt;P&gt;       wa_final-d3   = 'X'.&lt;/P&gt;&lt;P&gt;       wa_final-d4   = 'X'.&lt;/P&gt;&lt;P&gt;       wa_final-d5   = 'X'.&lt;/P&gt;&lt;P&gt;   APPEND wa_final TO itab_final.&lt;/P&gt;&lt;P&gt;    CLEAR: wa_item, wa_final.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575261#M1271648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575262#M1271649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab_item occurs 0,&lt;/P&gt;&lt;P&gt;       name(30),&lt;/P&gt;&lt;P&gt;       address(30),&lt;/P&gt;&lt;P&gt;       end of itab_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = 'c:\test.txt'&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 = itab_item&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;just take text file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Devolpment        quality&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;production          quality&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575262#M1271649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575263#M1271650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you declared intenral table with header line then change data_tab under tables with body option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES
data_tab = itab_item[]
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, are you filling data in text file in a single row by tab delimited of entires records ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575263#M1271650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575264#M1271651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Dont know why it is not working for me .&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;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575264#M1271651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575265#M1271652</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;Can you debug your code and see what exactly is getting filled in the table that is being passed?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that will tell you the true picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575265#M1271652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575266#M1271653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you able to show your declarations...&lt;/P&gt;&lt;P&gt;for me it is working fine.&lt;/P&gt;&lt;P&gt;please send your declarations data then we will with that structure only...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575266#M1271653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575267#M1271654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAT_MODE  = 'X'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575267#M1271654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575268#M1271655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;    The decleration  is as of below ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: Begin of T_Record,&lt;/P&gt;&lt;P&gt;MANDT           type MANDT,&lt;/P&gt;&lt;P&gt;ZITEM       TYPE ZTEST_STAGING-ZITEM,&lt;/P&gt;&lt;P&gt;END OF ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575268#M1271655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575269#M1271656</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;Can you debug and check after calling functinal module,how many records are getting into internal table.&lt;/P&gt;&lt;P&gt;if only one record is getting fetched then, check the flat file, sometimes spaces in the flat file will make difference,in particular after the end of first record's last field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 13:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575269#M1271656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T13:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575270#M1271657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sekar,&lt;/P&gt;&lt;P&gt;             Wether decleration is correct which i send ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 13:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575270#M1271657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T13:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575271#M1271658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this once...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: Begin of ty_item,&lt;/P&gt;&lt;P&gt;MANDT type MANDT,&lt;/P&gt;&lt;P&gt;ZITEM TYPE ZTEST_STAGING-ZITEM,&lt;/P&gt;&lt;P&gt;END OF ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab_item type standard table of ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start-of-selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;IF p_ppath IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_filenm = p_ppath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = l_filenm&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 = itab_item&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;&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>Thu, 21 May 2009 13:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575271#M1271658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T13:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575272#M1271659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;      Still facing problem,&lt;/P&gt;&lt;P&gt;                                   When iam chaning decleration of some other structure , it is working .But it is not working for my structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 13:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575272#M1271659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T13:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575273#M1271660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post your full program code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 13:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575273#M1271660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575274#M1271661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: Begin of Ty_item,&lt;/P&gt;&lt;P&gt;MANDT           type MANDT,&lt;/P&gt;&lt;P&gt;ZITEMrr           TYPE Zdata-ZITEMrr,&lt;/P&gt;&lt;P&gt;ZMPNNtt            TYPE Zdata-ZMPNNtt,&lt;/P&gt;&lt;P&gt;ZWERKSrr          TYPE Zdata-ZWERKSrr,&lt;/P&gt;&lt;P&gt;ZCODErr     TYPE Zdata-CODErr,&lt;/P&gt;&lt;P&gt;ZCODEgdg    TYPE Zdata-ZCODEdg,&lt;/P&gt;&lt;P&gt;ZCODEdg1    TYPE Zdata-ZCODEdg1,&lt;/P&gt;&lt;P&gt;ZCODEdg      TYPE Zdata-CODEdg,&lt;/P&gt;&lt;P&gt;ZNOdg     TYPE Zdata-NOdg,&lt;/P&gt;&lt;P&gt;ZPERCENTdg  TYPE Zdata-PERCENTdg,&lt;/P&gt;&lt;P&gt;ZACTIVEdg     TYPE Zdata-activedg,&lt;/P&gt;&lt;P&gt;ZDATEdg       TYPE SY-DATUM,&lt;/P&gt;&lt;P&gt;END OF Ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab_item TYPE STANDARD TABLE OF ty_item INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_item TYPE ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab_final TYPE STANDARD TABLE OF ty_item INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_final TYPE ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_filenm TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;PARAMETERS: p_ppath TYPE char128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          At Selection screen on Value Request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ppath.&lt;/P&gt;&lt;P&gt;  PERFORM sub_get_filename CHANGING p_ppath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    Start-of-selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  IF p_ppath IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_filenm = p_ppath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = l_filenm&lt;/P&gt;&lt;P&gt;        filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;        has_field_separator     = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = itab_item[]&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab_item INTO wa_item.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING wa_item TO wa_final.&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;   APPEND wa_final TO itab_final.&lt;/P&gt;&lt;P&gt;    CLEAR: wa_item, wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REFRESH itab_item.&lt;/P&gt;&lt;P&gt;  IF NOT itab_final[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    MODIFY Zdata  FROM TABLE itab_item.&lt;/P&gt;&lt;P&gt;    COMMIT  WORK.&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_get_filename&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_get_filename  CHANGING p_file TYPE char128.&lt;/P&gt;&lt;P&gt;  DATA : l_path        TYPE string.                 " For Directory&lt;/P&gt;&lt;P&gt;  DATA : l_path1       TYPE string.                 " For Directory&lt;/P&gt;&lt;P&gt;  DATA : l_path2       TYPE string.                 " For Directory&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  = sy-cprog&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name     = p_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 13:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575274#M1271661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T13:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575275#M1271662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check ur declaration once as you have posted earlier as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;TYPES: Begin of T_Record,&lt;/P&gt;&lt;P&gt;MANDT type MANDT,&lt;/P&gt;&lt;P&gt;ZITEM TYPE ZTEST_STAGING-ZITEM,&lt;/P&gt;&lt;P&gt;END OF ty_item.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Begin of dosn't match with End of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 04:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575275#M1271662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T04:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575276#M1271663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;              Fine now it is working.But header record (empty row ) is also updating into data base table .&lt;/P&gt;&lt;P&gt;Can any one tell me how can i skip this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 05:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575276#M1271663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T05:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: function module GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575277#M1271664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As you are clearing the work area dont think it will effect the database and seeing your code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; IF NOT itab_final[] IS INITIAL. MODIFY Zdata FROM TABLE itab_item. COMMIT WORK. ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;guess you should be using,&lt;/P&gt;&lt;P&gt; IF NOT itab_final[] IS INITIAL. MODIFY Zdata FROM TABLE itab_final. COMMIT WORK.ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-gui-upload/m-p/5575277#M1271664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:29:54Z</dc:date>
    </item>
  </channel>
</rss>

