<?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: Function module for data from excel 2007 to sap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191734#M1625293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try using like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--Uploading xls sheet
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = p_locin    "Path
      has_field_separator     = 'X'
    TABLES
      data_tab                = li_text_data

  lv_file  = p_locin.
*--Converting the xls to readable format
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
      i_field_seperator    = 'X'
      i_tab_raw_data       = li_text_data
      i_filename           = lv_file
    TABLES
      i_tab_converted_data = i_locfile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 10:00:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-08T10:00:29Z</dc:date>
    <item>
      <title>Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191733#M1625292</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 have a requirement to upload data from excel 2007 to sap. I tried the function module TEXT_CONVERT_XLS_TO_SAP, but it is failing. I have not used ALSM_EXCEL_TO_INTERNAL_TABLE as it has limitation of uploading data upto 10K records only. So, can anyone please provide a function module name that can support both excel 2007 and 2003 formats. Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N.M.S.M.Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 09:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191733#M1625292</guid>
      <dc:creator>nmsmk</dc:creator>
      <dc:date>2011-09-08T09:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191734#M1625293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try using like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--Uploading xls sheet
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = p_locin    "Path
      has_field_separator     = 'X'
    TABLES
      data_tab                = li_text_data

  lv_file  = p_locin.
*--Converting the xls to readable format
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
      i_field_seperator    = 'X'
      i_tab_raw_data       = li_text_data
      i_filename           = lv_file
    TABLES
      i_tab_converted_data = i_locfile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 10:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191734#M1625293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191735#M1625294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check as Vinraj suggested. If there is any issue then post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191735#M1625294</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-09-08T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191736#M1625295</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;You can try using the FM KCD_EXCEL_OLE_TO_INT_CONVERT which uploads both Excel 2007 and Excel 2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Excel" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Excel&lt;/A&gt;&lt;EM&gt;Upload&lt;/EM&gt;Alternative&lt;EM&gt;function&lt;/EM&gt;module+KCD_EXCEL_OLE_TO_INT_CONVERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191736#M1625295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191737#M1625296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna&lt;/P&gt;&lt;P&gt;I tried, This is working for Excel 2007.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  t_raw TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;  p_infile TYPE localfile OBLIGATORY.  " File path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Load EXCEL file into internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_field_seperator    = 'X'&lt;/P&gt;&lt;P&gt;      i_line_header        = 'X'&lt;/P&gt;&lt;P&gt;      i_tab_raw_data       = t_raw " work table&lt;/P&gt;&lt;P&gt;      i_filename           = p_infile&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      i_tab_converted_data = t_upload[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_failed    = 1&lt;/P&gt;&lt;P&gt;      OTHERS               = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;   ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 07:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191737#M1625296</guid>
      <dc:creator>former_member186055</dc:creator>
      <dc:date>2011-09-09T07:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191738#M1625297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried by implementing your code snippet method. It was going to runtime error in FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But anyway, the FM TEXT_CONVERT_XLS_TO_SAP is working for me. Probably there might be a system specific some problem when previously I tried. Only thing is, when I provide the .xlsx file and press execute, an message window pops up with message, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file you are now trying to open, '~SAP{CCA4CB7F-3C79-425C-ADAC-665BBA7A55AC}.tmp ', is in a different format than specified by the file extension. Verify that the file is not corrupt and is from a trusted source before opening the file.Do you want to open the file now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                    YES                 NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i press on YES, it is uploading. if i click on NO, its stopping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately is working. But my doubt is, is there a way to avoid this error message from displaying and upload data directly when executed?&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;N.M.S.M.Krishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: N.M.S.M.Krishna on Sep 9, 2011 4:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 14:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191738#M1625297</guid>
      <dc:creator>nmsmk</dc:creator>
      <dc:date>2011-09-09T14:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for data from excel 2007 to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191739#M1625298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post is old but I just want to let you know that this could be resolved if you use the following SAP note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/sap/support/notes/1517552" style="font-family: Arial, Helvetica, sans-serif; background-color: #cbdbea;" title="1517552  - The file you are trying to open is in a different format..."&gt;&lt;SPAN class="title" style="color: #000000; font-weight: bold;"&gt;1517552 - The file you are trying to open is in a different format...&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="title" style="color: #000000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="title" style="color: #000000; font-weight: bold;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="title" style="color: #000000; font-weight: bold;"&gt;Carlos&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 13:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-data-from-excel-2007-to-sap/m-p/8191739#M1625298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-03T13:54:29Z</dc:date>
    </item>
  </channel>
</rss>

