<?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: GUI_UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892475#M53653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;Thanks foryour reply.&lt;/P&gt;&lt;P&gt;if i want to save date as date format in table no other way.?&lt;/P&gt;&lt;P&gt;then whats the use of "Dats" data element in data dictionary.&lt;/P&gt;&lt;P&gt;when we display records of table the values are displayed in "2005/01/11" format in the list.&lt;/P&gt;&lt;P&gt;if i use char(10) to store date, then when we use "Dats" date type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2005 09:04:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-11T09:04:59Z</dc:date>
    <item>
      <title>GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892473#M53651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;I wrote program to upload text file to internal table(referred by ADDON TABLE)using FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;while uploading i have one field with date value '2005/01/05' in text file.&lt;/P&gt;&lt;P&gt;where as in ADDON TABLE i have defined standard date element as DATS with 8char for date field.&lt;/P&gt;&lt;P&gt;so while uploading it gets mismatched and displaying date output wrongly.&lt;/P&gt;&lt;P&gt;if i input 20050108 as input from text file it works fine. how to solve this?&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 07:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892473#M53651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T07:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892474#M53652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chandra, define the date element as char(10), then, when you have the internal table with the file upload you can get it modify later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 07:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892474#M53652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T07:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892475#M53653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;Thanks foryour reply.&lt;/P&gt;&lt;P&gt;if i want to save date as date format in table no other way.?&lt;/P&gt;&lt;P&gt;then whats the use of "Dats" data element in data dictionary.&lt;/P&gt;&lt;P&gt;when we display records of table the values are displayed in "2005/01/11" format in the list.&lt;/P&gt;&lt;P&gt;if i use char(10) to store date, then when we use "Dats" date type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 09:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892475#M53653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T09:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892476#M53654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's a possible solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA digit(11) VALUE '0123456789 '.&lt;/P&gt;&lt;P&gt;DATA x_date(10) VALUE '2005/01/05' .&lt;/P&gt;&lt;P&gt;DATA ok_date TYPE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PREPARE_STRING'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          i_valid_chars  = digit&lt;/P&gt;&lt;P&gt;          i_xvalid_check = 'X'&lt;/P&gt;&lt;P&gt;          i_xchar_repl   = 'X'&lt;/P&gt;&lt;P&gt;          i_xtoupper     = 'X'&lt;/P&gt;&lt;P&gt;     CHANGING&lt;/P&gt;&lt;P&gt;          c_string       = x_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE x_date NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE x_date TO ok_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-&amp;gt; go on processing with ok_date !&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 09:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892476#M53654</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-01-11T09:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892477#M53655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;Thanks for your assistance.&lt;/P&gt;&lt;P&gt;I think we are in diff track.&lt;/P&gt;&lt;P&gt;my requirement is, I have one datefield in text file as '2005/02/11'.&lt;/P&gt;&lt;P&gt;Now i want to insert this field(ie record) in to addon table&lt;/P&gt;&lt;P&gt;where this field is declared as "DATS" in dateelement.&lt;/P&gt;&lt;P&gt;Now i guess we want to convert this textfile datefield into&lt;/P&gt;&lt;P&gt;ABAP DATS(8 char) field.&lt;/P&gt;&lt;P&gt;how to convert this? does ur before code suits this requirement&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 21:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892477#M53655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T21:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892478#M53656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are uploading the file, there is no alternative to you except to declare the internal table fields to be of the same length as it is in the file. So, if the file is coming with date as 10 characters length, you have to have your internal table field length as 10 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you upload the data, you can then do as follows&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*-- internal table to be used for upload of the file
DATA: BEGIN OF itab1 OCCURS 0,
*-------all other fields of the internal table
        date1(10).
*-- all other fields of the internal table
DATA: END OF itab1.

*-- internal table to be used after upload of the file
DATA: BEGIN OF itab2 OCCURS 0,
*-------all other fields of the internal table
        date2 LIKE sy-datum.
*-- all other fields of the internal table
DATA: END OF itab2.

*-- upload the file using itab1

LOOP AT itab1.
*-- move all other fields of itab1 to itab2.
*-- assuming that the date is always coming in the format YYYY/MM/DD
  SPLIT itab1-date1 AT '/' INTO itab2-date2+0(4)
                                itab2-date2+4(2)
                                itab2-date2+6(2).
  APPEND itab2.
  CLEAR itab2.
ENDLOOP.

Hope this helps, if not let me know.

Srinivas
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 22:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/892478#M53656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T22:09:25Z</dc:date>
    </item>
  </channel>
</rss>

