<?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 format problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457630#M216239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your excel as tab delimited text file (or Text (Unicode).&lt;/P&gt;&lt;P&gt;Then upload to sap. All will be ok then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 07:37:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-25T07:37:18Z</dc:date>
    <item>
      <title>FILE format problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457629#M216238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I want to  use excel file as source file in my BDC. I am using GUI_UPLOAD for this, but if I select .XLS file it is picking junk values. Here I am using fuletype as ASC. After saving this file as .CSV the values of column 01 is replaced as 1 that is not required. Same is happening when TAB DELIMITTED is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest solution for this?&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;Dilip Gupchup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 07:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457629#M216238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T07:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: FILE format problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457630#M216239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your excel as tab delimited text file (or Text (Unicode).&lt;/P&gt;&lt;P&gt;Then upload to sap. All will be ok then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 07:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457630#M216239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T07:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: FILE format problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457631#M216240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dilip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code.Use your Excel file for the Uploading purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;types: begin of ttab ,&lt;/P&gt;&lt;P&gt;      fld1(30) type c,&lt;/P&gt;&lt;P&gt;      fld2(30) type c,&lt;/P&gt;&lt;P&gt;      fld3(30) type c,&lt;/P&gt;&lt;P&gt;      fld4(30) type c,&lt;/P&gt;&lt;P&gt;      fld5(30) type c,&lt;/P&gt;&lt;P&gt;      end of ttab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: itab type table of ttab with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters: p_file type localfile default&lt;/P&gt;&lt;P&gt;            'C:\test.txt'.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;  call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            static    = 'X'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            file_name = p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear itab. refresh itab.&lt;/P&gt;&lt;P&gt;  perform upload_data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    write:/ itab-fld1, itab-fld2, itab-fld3, itab-fld4, itab-fld5.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload_Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&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;  data: file type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;  data: xcel type table of alsmex_tabline with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  file = p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            filename                = file&lt;/P&gt;&lt;P&gt;            i_begin_col             = '1'&lt;/P&gt;&lt;P&gt;            i_begin_row             = '1'&lt;/P&gt;&lt;P&gt;            i_end_col               = '200'&lt;/P&gt;&lt;P&gt;            i_end_row               = '5000'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            intern                  = xcel&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;            upload_ole              = 2&lt;/P&gt;&lt;P&gt;            others                  = 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at xcel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    case xcel-col.&lt;/P&gt;&lt;P&gt;      when '0001'.&lt;/P&gt;&lt;P&gt;        itab-fld1 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0002'.&lt;/P&gt;&lt;P&gt;        itab-fld2 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0003'.&lt;/P&gt;&lt;P&gt;        itab-fld3 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0004'.&lt;/P&gt;&lt;P&gt;        itab-fld4 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0005'.&lt;/P&gt;&lt;P&gt;        itab-fld5 = xcel-value.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    at end of row.&lt;/P&gt;&lt;P&gt;      append itab.&lt;/P&gt;&lt;P&gt;      clear itab.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 07:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457631#M216240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: FILE format problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457632#M216241</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;U can use this way here split wont work so try s follows-&lt;/P&gt;&lt;P&gt;DATA: TEMP_TAB LIKE ALSMEX_TABLINE OCCURS 5 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE TEMP_TAB-COL.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;record-LIFNR_001 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;record-BSART_002 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;record-BEDAT_003 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 4.&lt;/P&gt;&lt;P&gt;record-EKORG_004 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 5.&lt;/P&gt;&lt;P&gt;record-EKGRP_005 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 6.&lt;/P&gt;&lt;P&gt;record-LPEIN_006 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 7.&lt;/P&gt;&lt;P&gt;record-WERKS_007 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 8.&lt;/P&gt;&lt;P&gt;record-EMATN_01_008 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 9.&lt;/P&gt;&lt;P&gt;record-MENGE_01_009 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;WHEN 10.&lt;/P&gt;&lt;P&gt;record-EBELP_010 = TEMP_TAB-VALUE.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 08:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-format-problem/m-p/1457632#M216241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T08:36:48Z</dc:date>
    </item>
  </channel>
</rss>

