<?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: file error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640728#M607913</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 that the file which you are uploading is not open .. and also check the sy-subrc value to get the exact problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 14:01:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T14:01:12Z</dc:date>
    <item>
      <title>file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640727#M607912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Here my problem i am trying to get the data from flatfile which contains material number, average price, standard price, valutation type.... to update the records in MR21 Transaction.&lt;/P&gt;&lt;P&gt;when i used gui_upload function module to get that data into my internal table, it is fetching only first record, and comeout of the program then showing file error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one help me ...&lt;/P&gt;&lt;P&gt;it is very urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640727#M607912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640728#M607913</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 that the file which you are uploading is not open .. and also check the sy-subrc value to get the exact problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 14:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640728#M607913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T14:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640729#M607914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using following Concept... I gave contents of the .txt file in comments... Copy and Paste those contents in the file TEST.TXT on desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zssr_bdc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF g_t_itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;        maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;      END OF g_t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_t_bdcdata TYPE TABLE OF bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: path TYPE string,&lt;/P&gt;&lt;P&gt;      path1 type string.&lt;/P&gt;&lt;P&gt;path = 'C:\Documents and Settings\ssr3kor\Desktop\test.txt'.&lt;/P&gt;&lt;P&gt;path1 = 'C:\Documents and Settings\ssr3kor\Desktop\test1.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************&lt;/P&gt;&lt;P&gt;*contents of test.txt    *&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*TEST1             ,BOT  *&lt;/P&gt;&lt;P&gt;*TEST2             ,BOT  *&lt;/P&gt;&lt;P&gt;*TEST3             ,BUT  *&lt;/P&gt;&lt;P&gt;**************************&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 = path&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = g_t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT g_t_itab.&lt;/P&gt;&lt;P&gt;  WRITE:/1(18) g_t_itab-matnr, 20(40) g_t_itab-maktx.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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 = path1&lt;/P&gt;&lt;P&gt;   filetype                      = 'ASC'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = g_t_itab.&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;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 14:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640729#M607914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T14:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640730#M607915</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 for your reply, but here i have giving DAT format in gui_download while downloading the data into flatfile..&lt;/P&gt;&lt;P&gt;now i am taking that file into gui_upload function module by specifying that ASC format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is uploading only one record into my internal table. then it is showing sy-subrc value 8 and giving error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if i given ASC format in Gui_Download function Moudule i am unable to get the file tab delimited format. so only i have given DAT format there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so plz..can anybody can help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REgards,&lt;/P&gt;&lt;P&gt;Venakt N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-error/m-p/2640730#M607915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:29:57Z</dc:date>
    </item>
  </channel>
</rss>

