<?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: uploading legacy data with filetype 'DAT' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320391#M165182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Manas&lt;/P&gt;&lt;P&gt;Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_mara occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       mbrsh like mara-mbrsh,&lt;/P&gt;&lt;P&gt;       mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;       maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;       meins like mara-meins,&lt;/P&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;perform upload_data.&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  upload_data&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM upload_data .&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:\mat_bdc.xls'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;   DAT_MODE                      = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = it_mara.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    SORT IT_MARA BY MATNR.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " upload_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flatfile structure as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRANIT_011	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_012	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_013	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_014	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_015	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2006 11:55:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-09T11:55:43Z</dc:date>
    <item>
      <title>uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320387#M165178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guyz!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u all r growing at a great pace. i am having one doubt. In FM 'GUI_UPLOAD', the supporting file types are 'bin', 'dat', 'asc'. But if you will have a look at the source code of the function module, it has given 2 cases for 'bin' and 'asc'. for other file types it is raising error message stating invalid filetype. but in import tab for filetype, in the long text, it is saying that there is provision for 'dat' filetype. so anybody came accross this situation and found any solution? looking forward to some fruitful reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 11:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320387#M165178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T11:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320388#M165179</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 too faced some prblm while using dat but i have changed it to asc and it worked fine for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 11:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320388#M165179</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-05-09T11:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320389#M165180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. See the GUI_Upload fm works fine with the file types ASC or BIN. And it is mentioned in the code of the fm too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I just wrote a code to upload a file and passed 'DAT' for the parameter Filetype. (Uncomment all the exceptions mentioned in the fm in the main program).&lt;/P&gt;&lt;P&gt;It gave neither compilation error nor runtime error. But no data was uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However , with everything remaining the same when you change the filetype to ASC , the data is successfully uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, conclusively the fm works fine with the two filetypes 'ASC' or 'BIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 11:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320389#M165180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320390#M165181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. See the GUI_Upload fm works fine with the file types ASC or BIN. And it is mentioned in the code of the fm too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I just wrote a code to upload a file and passed 'DAT' for the parameter Filetype. (Uncomment all the exceptions mentioned in the fm in the main program).&lt;/P&gt;&lt;P&gt;It gave neither compilation error nor runtime error. But no data was uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However , with everything remaining the same when you change the filetype to ASC , the data is successfully uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, conclusively the fm works fine with the two filetypes 'ASC' or 'BIN' only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 11:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320390#M165181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320391#M165182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Manas&lt;/P&gt;&lt;P&gt;Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_mara occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       mbrsh like mara-mbrsh,&lt;/P&gt;&lt;P&gt;       mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;       maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;       meins like mara-meins,&lt;/P&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;perform upload_data.&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  upload_data&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM upload_data .&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:\mat_bdc.xls'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;   DAT_MODE                      = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = it_mara.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    SORT IT_MARA BY MATNR.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " upload_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flatfile structure as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRANIT_011	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_012	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_013	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_014	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;PRANIT_015	C	COUP	This is Testing material	Kg&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 11:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320391#M165182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T11:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320392#M165183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not working. it's throwing the same error message: wrong value of the parameter filetype.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 12:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320392#M165183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T12:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: uploading legacy data with filetype 'DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320393#M165184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wont work . this program by Sreenivasulu P also proved this. So the only types that we can work using fun module gui_upload is ASC and BIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this has been mentioned clarely when you go through the code of fm Gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 12:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-legacy-data-with-filetype-dat/m-p/1320393#M165184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T12:36:00Z</dc:date>
    </item>
  </channel>
</rss>

