<?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: error while uploading a textfile into internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541834#M246744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shehryar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Date format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The date in text file is&lt;/P&gt;&lt;P&gt;   dd.mm.yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Hence, upload it in a varaiable&lt;/P&gt;&lt;P&gt;   of type c and length 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Then transfer it in your final internal table&lt;/P&gt;&lt;P&gt;  with field datum.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 12:12:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-07T12:12:51Z</dc:date>
    <item>
      <title>error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541832#M246742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am uploading a textfile into an internal table and i have used the 'CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload' for uploading of the file into the internal table. But instead i am getting sumthing lyke  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CTTL#1001#BANK-0014393-PP-LHR#|#2000#112312#CCL00#29.08.2006#|Cash In &amp;lt;/b&amp;gt;. I have the following internal table,

[code]
 begin of ls_cashrec,
     bukrs type char30,        " company code
     cjnr type char30,         " cash journal number
     cjtranstxt type char30,   " business transaction
     cjamount type wrbtr,      " amount
     dzuonr type char30,       " assignment
     prctr type char6,         " profit center
     budat type sy-datum,      " posting date
     cjpostext type char30,    " text
  end of ls_cashrec.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  gt_cashrec TYPE STANDARD TABLE OF ls_cashrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where am i wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard and Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shehryar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 12:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541832#M246742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T12:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541833#M246743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and the textfile contains sumthing lyke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CTTL	1001	BANK-1234567-PP-XX	2000	112312	CCL00	29.08.2006	Cash In
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 12:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541833#M246743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T12:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541834#M246744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shehryar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Date format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The date in text file is&lt;/P&gt;&lt;P&gt;   dd.mm.yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Hence, upload it in a varaiable&lt;/P&gt;&lt;P&gt;   of type c and length 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Then transfer it in your final internal table&lt;/P&gt;&lt;P&gt;  with field datum.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 12:12:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541834#M246744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541835#M246745</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;Use the paramter &amp;lt;b&amp;gt;HAS_FIELD_SEPARATOR  = 'X'&amp;lt;/b&amp;gt;  of gui_upload&lt;/P&gt;&lt;P&gt;to get in correct format.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: HRA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 12:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541835#M246745</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-09-07T12:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541836#M246746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to pass the exporting parameter:&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 12:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541836#M246746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541837#M246747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.. I'll get back to soon .!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 12:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541837#M246747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T12:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541838#M246748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the date in my textfile be like  08.09.2006 or 08.09.06 or 08092006 or 080906&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The textfile which i will upload into the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shehryar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 07:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541838#M246748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T07:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: error while uploading a textfile into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541839#M246749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The best thing is that the&lt;/P&gt;&lt;P&gt;   data format in text file is&lt;/P&gt;&lt;P&gt;   YYYYMMDD  (8 characters only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (Then in that case, we can directly&lt;/P&gt;&lt;P&gt;  declare our field in internal table type sy-datum.&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;P&gt;2. Other wise,&lt;/P&gt;&lt;P&gt;   we have to declare the field in internal table&lt;/P&gt;&lt;P&gt;   as character format and length&lt;/P&gt;&lt;P&gt;   (based upon the text file field length,&lt;/P&gt;&lt;P&gt;   including DOTS / etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Then we have to finally convert in YYYYMMDD&lt;/P&gt;&lt;P&gt;  format in to other field,&lt;/P&gt;&lt;P&gt;  which we will finally use as sy-datum field.&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;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 09:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading-a-textfile-into-internal-table/m-p/1541839#M246749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T09:07:00Z</dc:date>
    </item>
  </channel>
</rss>

