<?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: REGARDING UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-upload/m-p/5371081#M1235596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noticed 3 things...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) variable 'p_pcfile' should be declared of type 'String'. &lt;/P&gt;&lt;P&gt;2) Instead of TXT file use ASC. &lt;/P&gt;&lt;P&gt;3) 'TABLES' parameter missed in the function module, it should in the above line of 'DATA_TAB = tbl_infile1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 00:54:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T00:54:32Z</dc:date>
    <item>
      <title>REGARDING UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-upload/m-p/5371080#M1235595</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 HAVE A COMMA DELIMITED FILE on my desktop i want to upload the file into internal table &lt;/P&gt;&lt;P&gt;i used  the below function module with file type txt as on desktop it is txt but iam getting dump please suggest tbl_infile1 is file will be like this&lt;/P&gt;&lt;P&gt;20090203,1145561,0,2,4,12,4&lt;/P&gt;&lt;P&gt;20090203,1145946,0,1,1,5,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tbl_infile1 OCCURS 0,&lt;/P&gt;&lt;P&gt;         budat(10) TYPE c,&lt;/P&gt;&lt;P&gt;         Aufnr(12) type c,&lt;/P&gt;&lt;P&gt;         srap(13) type c,&lt;/P&gt;&lt;P&gt;         tubes(13) type c,&lt;/P&gt;&lt;P&gt;         batches(13) type c,&lt;/P&gt;&lt;P&gt;         runmin(13) type c,&lt;/P&gt;&lt;P&gt;         stopmin(13) type c,&lt;/P&gt;&lt;P&gt;      END OF tbl_infile1.&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                      = p_pcfile&lt;/P&gt;&lt;P&gt;         FILETYPE                      = 'TXT'&lt;/P&gt;&lt;P&gt;         HAS_FIELD_SEPARATOR           = ','&lt;/P&gt;&lt;P&gt;          DATA_TAB                      = tbl_infile1&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 23:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-upload/m-p/5371080#M1235595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T23:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-upload/m-p/5371081#M1235596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noticed 3 things...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) variable 'p_pcfile' should be declared of type 'String'. &lt;/P&gt;&lt;P&gt;2) Instead of TXT file use ASC. &lt;/P&gt;&lt;P&gt;3) 'TABLES' parameter missed in the function module, it should in the above line of 'DATA_TAB = tbl_infile1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 00:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-upload/m-p/5371081#M1235596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T00:54:32Z</dc:date>
    </item>
  </channel>
</rss>

