<?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 in upload excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736111#M34915</link>
    <description>&lt;P&gt;Can you mention inside your question that you debugged and that the error is triggered at that line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT application 'Excel.Application'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(otherwise people may ask you the solution although they have unrelated issues)&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 16:21:42 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-08-16T16:21:42Z</dc:date>
    <item>
      <title>Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736102#M34906</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I'm receiving an error when i use fm ALSM_EXCEL_TO_INTERNAL_TABLE to upload excel, the system return UPLOAD_OLE = 2 error.&lt;/P&gt;
  &lt;P&gt;Pls help me.....&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;My Ms Office Version is 2016 ; and SAP GUI version is SAP GUI 750 ,Patch 7.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/234966-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 01:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736102#M34906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-26T01:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736103#M34907</link>
      <description>&lt;P&gt;Please check the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/1267508" target="test_blank"&gt;https://archive.sap.com/discussions/thread/1267508&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/236880-upload-ole.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 06:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736103#M34907</guid>
      <dc:creator>prad_k</dc:creator>
      <dc:date>2018-10-26T06:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736104#M34908</link>
      <description>&lt;P&gt;I have checked this link， it's  not this issue, thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/234977-2018-10-26-15-09-28.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736104#M34908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-26T07:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736105#M34909</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you share the code how it is written.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 16:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736105#M34909</guid>
      <dc:creator>TMSingh_SAP</dc:creator>
      <dc:date>2018-10-26T16:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736106#M34910</link>
      <description>&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;When I use SAP GUI 740 , It's OK. so.. t think the code is not  relevant , thanks. the code as below. &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;PRE&gt;&lt;CODE&gt;

SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S32 {
color: #3399FF;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}

      PERFORM FRM_UPLOAD_DATA_FROM_EXCEL

        TABLES GT_LIST

        USING P_FNAME 1 1 50000 16

        CHANGING GS_UPLOAD

        .


SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S32 {
color: #3399FF;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}

FORM FRM_UPLOAD_DATA_FROM_EXCEL

   TABLES PT_UPLOAD

   USING PV_IP_FNAME PV_IP_BEGIN_ROW PV_IP_BEGIN_COL PV_IP_END_ROW

   PV_IP_END_COL

   CHANGING CV_PS_UPLOAD  "LIKE GS_UPLOAD

   .



  CONSTANTS:

    C_BEGIN_ROW TYPE I VALUE 2 ,

    C_END_ROW TYPE I VALUE 50000 ,

    C_BEGIN_COL TYPE I VALUE 1 ,      "起始列

    C_END_COL TYPE I VALUE 18.        "结束列



  DATA: LT_EXCEL TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.

  FIELD-SYMBOLS: &amp;lt;LV_F&amp;gt; TYPE ANY.



  CLEAR: PT_UPLOAD.

  REFRESH:PT_UPLOAD.



  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'

    EXPORTING

      FILENAME                = PV_IP_FNAME

      I_BEGIN_COL             = PV_IP_BEGIN_COL

      I_BEGIN_ROW             = PV_IP_BEGIN_ROW

      I_END_COL               = PV_IP_END_COL

      I_END_ROW               = PV_IP_END_ROW

    TABLES

      INTERN                  = LT_EXCEL

    EXCEPTIONS

      INCONSISTENT_PARAMETERS = 1

      UPLOAD_OLE              = 2

      OTHERS                  = 3.

  IF SY-SUBRC &amp;lt;&amp;gt; 0.

*IF NOT ( SY-MSGTY IS INITIAL OR SY-MSGID IS INITIAL OR SY-MSGNO IS

*INITIAL ).

*    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

*    ENDIF.

    MESSAGE E001(00) WITH TEXT-029 '' '' ''.

  ENDIF.





  LOOP AT LT_EXCEL.

    CONDENSE LT_EXCEL-VALUE.

* TRANSLATE LT_EXCEL-VALUE TO UPPER CASE.

    ASSIGN COMPONENT LT_EXCEL-COL OF STRUCTURE CV_PS_UPLOAD TO &amp;lt;LV_F&amp;gt;.

    IF SY-SUBRC = 0.

      &amp;lt;LV_F&amp;gt; = LT_EXCEL-VALUE.

      UNASSIGN &amp;lt;LV_F&amp;gt;.

    ENDIF.

    AT END OF ROW.

      MOVE-CORRESPONDING CV_PS_UPLOAD TO PT_UPLOAD.

      APPEND PT_UPLOAD.

      CLEAR: PT_UPLOAD ,

             CV_PS_UPLOAD .

    ENDAT.

  ENDLOOP.



ENDFORM.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 01:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736106#M34910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-29T01:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736107#M34911</link>
      <description>&lt;P&gt;Have a look at OSS note 933420&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 04:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736107#M34911</guid>
      <dc:creator>Lakshmipathi</dc:creator>
      <dc:date>2018-10-29T04:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736108#M34912</link>
      <description>Thanks, but may be is not this issue, i debug into this function module, change the rows and cols ,the system error in row "&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT application 'Excel.Application'.  "as below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/236979-2018-10-29-14-24-24.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736108#M34912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-29T06:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736109#M34913</link>
      <description>&lt;P&gt;In GUI 740, anything is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736109#M34913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-29T06:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736110#M34914</link>
      <description>&lt;P&gt;Hi Ming,&lt;/P&gt;&lt;P&gt;Did you manage to resolve your problem. I am also facing the same error with the FM ALSM_EXCEL_TO_INTERNAL_TABLE while the program runs fine in others' PC.&lt;/P&gt;&lt;P&gt;I even tried reinstalling MS office and SAP GUI still no luck.&lt;BR /&gt;Appreciate your valuable feedback.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 13:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736110#M34914</guid>
      <dc:creator>jayaraj2018</dc:creator>
      <dc:date>2019-08-16T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736111#M34915</link>
      <description>&lt;P&gt;Can you mention inside your question that you debugged and that the error is triggered at that line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT application 'Excel.Application'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(otherwise people may ask you the solution although they have unrelated issues)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 16:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736111#M34915</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-08-16T16:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736112#M34916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you check error message ? sy-msgv1,sy-msgv2,sy-msgv3. or debug it, you will find the issue. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 17:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736112#M34916</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-08-16T17:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736113#M34917</link>
      <description>&lt;P&gt;If its not work, try to use FM TEXT_CONVERT_XLS_TO_SAP&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 17:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-upload-excel/m-p/736113#M34917</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-08-16T17:58:36Z</dc:date>
    </item>
  </channel>
</rss>

