<?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: upload excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031325#M83897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  see the below sample code to do it.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   DATA : dl_begin_col TYPE i VALUE 1,     " Col No
         dl_begin_row TYPE i VALUE 1,     " Row no
         dl_end_col   TYPE i VALUE 8,     " Col No
         dl_end_row   TYPE i VALUE 65536, " Row no
         dl_index TYPE i.                 " Index
  FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY.     " Field Symbols
* Call function for Upload
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
       EXPORTING
            filename                = p_file
            i_begin_col             = dl_begin_col
            i_begin_row             = dl_begin_row
            i_end_col               = dl_end_col
            i_end_row               = dl_end_row
       TABLES
            intern                  = dt_intern
       EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*   Error Message - Invalid entry
    MESSAGE i999 WITH 'Error in opening File'(004).
    STOP.
  ENDIF.
  IF dt_intern[] IS INITIAL.

*   Error Message - Invalid entry
    MESSAGE i999 WITH 'No data in the file'(005).
    STOP.
  ELSE.
    SORT dt_intern BY row col.
*   Move the data into the internal table.
    LOOP AT dt_intern.
      MOVE dt_intern-col TO dl_index.
*     Assign component index of structure dt_TRUCK_data to field symbol.
      ASSIGN COMPONENT dl_index OF STRUCTURE dt_users TO &amp;lt;fs&amp;gt;.
      IF sy-subrc = 0.
        MOVE dt_intern-value TO &amp;lt;fs&amp;gt;.
      ENDIF.
      AT END OF row.
        APPEND dt_users.
        CLEAR dt_users.
      ENDAT.
    ENDLOOP.
  ENDIF.

  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  What is the length of the filed you are trying to read.&lt;/P&gt;&lt;P&gt;  if it is more than 50 you cant' use this.&lt;/P&gt;&lt;P&gt;  Then ignore my answer.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srilatha T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2005 13:01:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-30T13:01:12Z</dc:date>
    <item>
      <title>upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031323#M83895</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;I have to upload an excel file and i can´t transform it in tabulated file and my excel file has cells that have more than one line, they can have paragraphs, i have tried to use the "gui_upload" but when i use the type 'DAT' it returns me the error INVALID_TYPE, and when i put the type 'ASC' it returns me the error BAD_DATA_FORMAT, how can i upload an excel file in XLS format?, or can i use another Fm for doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 12:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031323#M83895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T12:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031324#M83896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can´t use alsm_excel_to_internal_table because of the length of the cells,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 12:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031324#M83896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T12:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031325#M83897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  see the below sample code to do it.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   DATA : dl_begin_col TYPE i VALUE 1,     " Col No
         dl_begin_row TYPE i VALUE 1,     " Row no
         dl_end_col   TYPE i VALUE 8,     " Col No
         dl_end_row   TYPE i VALUE 65536, " Row no
         dl_index TYPE i.                 " Index
  FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY.     " Field Symbols
* Call function for Upload
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
       EXPORTING
            filename                = p_file
            i_begin_col             = dl_begin_col
            i_begin_row             = dl_begin_row
            i_end_col               = dl_end_col
            i_end_row               = dl_end_row
       TABLES
            intern                  = dt_intern
       EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*   Error Message - Invalid entry
    MESSAGE i999 WITH 'Error in opening File'(004).
    STOP.
  ENDIF.
  IF dt_intern[] IS INITIAL.

*   Error Message - Invalid entry
    MESSAGE i999 WITH 'No data in the file'(005).
    STOP.
  ELSE.
    SORT dt_intern BY row col.
*   Move the data into the internal table.
    LOOP AT dt_intern.
      MOVE dt_intern-col TO dl_index.
*     Assign component index of structure dt_TRUCK_data to field symbol.
      ASSIGN COMPONENT dl_index OF STRUCTURE dt_users TO &amp;lt;fs&amp;gt;.
      IF sy-subrc = 0.
        MOVE dt_intern-value TO &amp;lt;fs&amp;gt;.
      ENDIF.
      AT END OF row.
        APPEND dt_users.
        CLEAR dt_users.
      ENDAT.
    ENDLOOP.
  ENDIF.

  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  What is the length of the filed you are trying to read.&lt;/P&gt;&lt;P&gt;  if it is more than 50 you cant' use this.&lt;/P&gt;&lt;P&gt;  Then ignore my answer.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srilatha T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 13:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031325#M83897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T13:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031326#M83898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this link before writing a program for excel upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ezinearticles.com/?Upload-Excel-Data-to-SAP:-7-Best-Practices&amp;amp;id=91258" target="test_blank"&gt;http://www.ezinearticles.com/?Upload-Excel-Data-to-SAP:-7-Best-Practices&amp;amp;id=91258&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this program GREXCEL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILA_HELP_UPLOAD_EXCEL_01&lt;/P&gt;&lt;P&gt;FILA_HELP_UPLOAD_EXCEL_03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rajasekhar Dinavahi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 13:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031326#M83898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031327#M83899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My lines can be up to 1000 characters, so i can´t use alm_excel_to_internal_table and i have tried to upload with ws_upload in DAT format and it upload me unreadable characters in my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 13:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031327#M83899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031328#M83900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this FM code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;Source code for function module: &lt;/P&gt;&lt;P&gt;type-pools: ole2. &lt;/P&gt;&lt;P&gt;types: ty_d_itabvalue type zalsmex_tabline-value, &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal table containing the excel data &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ty_t_itab type zalsmex_tabline occurs 0, &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;line type of sender table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;begin of ty_s_senderline, &lt;/P&gt;&lt;P&gt;line(10000) type c, &lt;/P&gt;&lt;P&gt;end of ty_s_senderline, &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sender table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ty_t_sender type ty_s_senderline occurs 0. &lt;/P&gt;&lt;P&gt;constants: gc_esc value '"'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION z06_ole . &lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface: &lt;/P&gt;&lt;P&gt;*" IMPORTING &lt;/P&gt;&lt;P&gt;*" VALUE(FILENAME) LIKE RLGRAP-FILENAME &lt;/P&gt;&lt;P&gt;*" VALUE(I_BEGIN_COL) TYPE I &lt;/P&gt;&lt;P&gt;*" VALUE(I_BEGIN_ROW) TYPE I &lt;/P&gt;&lt;P&gt;*" VALUE(I_END_COL) TYPE I &lt;/P&gt;&lt;P&gt;*" VALUE(I_END_ROW) TYPE I &lt;/P&gt;&lt;P&gt;*" TABLES &lt;/P&gt;&lt;P&gt;*" INTERN STRUCTURE ZALSMEX_TABLINE &lt;/P&gt;&lt;P&gt;*" EXCEPTIONS &lt;/P&gt;&lt;P&gt;*" INCONSISTENT_PARAMETERS &lt;/P&gt;&lt;P&gt;*" UPLOAD_OLE &lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: excel_tab TYPE ty_t_sender. &lt;/P&gt;&lt;P&gt;DATA: ld_separator TYPE c. &lt;/P&gt;&lt;P&gt;DATA: application TYPE ole2_object, &lt;/P&gt;&lt;P&gt;workbook TYPE ole2_object, &lt;/P&gt;&lt;P&gt;range TYPE ole2_object, &lt;/P&gt;&lt;P&gt;worksheet TYPE ole2_object. &lt;/P&gt;&lt;P&gt;DATA: h_cell TYPE ole2_object, &lt;/P&gt;&lt;P&gt;h_cell1 TYPE ole2_object. &lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;ld_rc TYPE i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE m_message. &lt;/P&gt;&lt;P&gt;case sy-subrc. &lt;/P&gt;&lt;P&gt;when 0. &lt;/P&gt;&lt;P&gt;when 1. &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;when others. raise upload_ole. &lt;/P&gt;&lt;P&gt;endcase. &lt;/P&gt;&lt;P&gt;END-OF-DEFINITION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check parameters &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF i_begin_row &amp;gt; i_end_row. RAISE inconsistent_parameters. ENDIF. &lt;/P&gt;&lt;P&gt;IF i_begin_col &amp;gt; i_end_col. RAISE inconsistent_parameters. ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get TAB-sign for separation of fields &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLASS cl_abap_char_utilities DEFINITION LOAD. &lt;/P&gt;&lt;P&gt;ld_separator = cl_abap_char_utilities=&amp;gt;horizontal_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open file in Excel &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF application-header = space OR application-handle = -1. &lt;/P&gt;&lt;P&gt;CREATE OBJECT application 'Excel.Application'. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;CALL METHOD OF application 'Workbooks' = workbook. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;CALL METHOD OF workbook 'Open' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;#1 = filename. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set property of application 'Visible' = 1. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;GET PROPERTY OF application 'ACTIVESHEET' = worksheet. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mark whole spread sheet &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD OF worksheet 'Cells' = h_cell &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;#1 = i_begin_row &lt;/P&gt;&lt;P&gt;#2 = i_begin_col. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;CALL METHOD OF worksheet 'Cells' = h_cell1 &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;#1 = i_end_row &lt;/P&gt;&lt;P&gt;#2 = i_end_col. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF worksheet 'RANGE' = range &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;#1 = h_cell &lt;/P&gt;&lt;P&gt;#2 = h_cell1. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;CALL METHOD OF range 'SELECT'. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;copy marked area (whole spread sheet) into Clippboard &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD OF range 'COPY'. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read clipboard into ABAP &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;clipboard_import &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;data = excel_tab &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;cntl_error = 1 &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_NO_GUI = 2 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOT_SUPPORTED_BY_GUI = 3 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OTHERS = 4 &lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE a037(alsmex). &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM separated_to_intern_convert TABLES excel_tab intern &lt;/P&gt;&lt;P&gt;USING ld_separator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;clear clipboard &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;REFRESH excel_tab. &lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;clipboard_export &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;data = excel_tab &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;rc = ld_rc &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;cntl_error = 1 &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_NO_GUI = 2 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOT_SUPPORTED_BY_GUI = 3 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OTHERS = 4 &lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;quit Excel and free ABAP Object - unfortunately, this does not kill &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the Excel process &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD OF application 'QUIT'. &lt;/P&gt;&lt;P&gt;m_message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Begin of change note 575877 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to kill the Excel process it's necessary to free all used objects &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FREE OBJECT h_cell. m_message. &lt;/P&gt;&lt;P&gt;FREE OBJECT h_cell1. m_message. &lt;/P&gt;&lt;P&gt;FREE OBJECT range. m_message. &lt;/P&gt;&lt;P&gt;FREE OBJECT worksheet. m_message. &lt;/P&gt;&lt;P&gt;FREE OBJECT workbook. m_message. &lt;/P&gt;&lt;P&gt;FREE OBJECT application. m_message. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; End of change note 575877 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFUNCTION. &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 separated_to_intern_convert &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;I_TAB text &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;I_INTERN text &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;I_SEPARATORtext &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 separated_to_intern_convert TABLES i_tab TYPE ty_t_sender &lt;/P&gt;&lt;P&gt;i_intern TYPE ty_t_itab &lt;/P&gt;&lt;P&gt;USING i_separator TYPE c. &lt;/P&gt;&lt;P&gt;DATA: l_sic_tabix LIKE sy-tabix, &lt;/P&gt;&lt;P&gt;l_sic_col TYPE kcd_ex_col. &lt;/P&gt;&lt;P&gt;DATA: l_fdpos LIKE sy-fdpos. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH i_intern. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_tab. &lt;/P&gt;&lt;P&gt;l_sic_tabix = sy-tabix. &lt;/P&gt;&lt;P&gt;l_sic_col = 0. &lt;/P&gt;&lt;P&gt;WHILE i_tab CA i_separator. &lt;/P&gt;&lt;P&gt;l_fdpos = sy-fdpos. &lt;/P&gt;&lt;P&gt;l_sic_col = l_sic_col + 1. &lt;/P&gt;&lt;P&gt;PERFORM line_to_cell_separat TABLES i_intern &lt;/P&gt;&lt;P&gt;USING i_tab l_sic_tabix l_sic_col &lt;/P&gt;&lt;P&gt;i_separator l_fdpos. &lt;/P&gt;&lt;P&gt;ENDWHILE. &lt;/P&gt;&lt;P&gt;IF i_tab &amp;lt;&amp;gt; space. &lt;/P&gt;&lt;P&gt;CLEAR i_intern. &lt;/P&gt;&lt;P&gt;i_intern-row = l_sic_tabix. &lt;/P&gt;&lt;P&gt;i_intern-col = l_sic_col + 1. &lt;/P&gt;&lt;P&gt;i_intern-value = i_tab. &lt;/P&gt;&lt;P&gt;APPEND i_intern. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDFORM. " SEPARATED_TO_INTERN_CONVERT &lt;/P&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 line_to_cell_separat TABLES i_intern TYPE ty_t_itab &lt;/P&gt;&lt;P&gt;USING i_line &lt;/P&gt;&lt;P&gt;i_row LIKE sy-tabix &lt;/P&gt;&lt;P&gt;ch_cell_col TYPE kcd_ex_col &lt;/P&gt;&lt;P&gt;i_separator TYPE c &lt;/P&gt;&lt;P&gt;i_fdpos LIKE sy-fdpos. &lt;/P&gt;&lt;P&gt;DATA: l_string TYPE ty_s_senderline. &lt;/P&gt;&lt;P&gt;DATA l_sic_int TYPE i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR i_intern. &lt;/P&gt;&lt;P&gt;l_sic_int = i_fdpos. &lt;/P&gt;&lt;P&gt;i_intern-row = i_row. &lt;/P&gt;&lt;P&gt;l_string = i_line. &lt;/P&gt;&lt;P&gt;i_intern-col = ch_cell_col. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;csv Dateien mit separator in Zelle: --&amp;gt; ;"abc;cd"; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF ( i_separator = ';' OR i_separator = ',' ) AND &lt;/P&gt;&lt;P&gt;l_string(1) = gc_esc. &lt;/P&gt;&lt;P&gt;PERFORM line_to_cell_esc_sep USING l_string &lt;/P&gt;&lt;P&gt;l_sic_int &lt;/P&gt;&lt;P&gt;i_separator &lt;/P&gt;&lt;P&gt;i_intern-value. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;IF l_sic_int &amp;gt; 0. &lt;/P&gt;&lt;P&gt;i_intern-value = i_line(l_sic_int). &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;IF l_sic_int &amp;gt; 0. &lt;/P&gt;&lt;P&gt;APPEND i_intern. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;l_sic_int = l_sic_int + 1. &lt;/P&gt;&lt;P&gt;i_line = i_line+l_sic_int. &lt;/P&gt;&lt;P&gt;ENDFORM. "line_to_cell_separat &lt;/P&gt;&lt;P&gt;&lt;/P&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 line_to_cell_esc_sep USING i_string &lt;/P&gt;&lt;P&gt;i_sic_int TYPE i &lt;/P&gt;&lt;P&gt;i_separator TYPE c &lt;/P&gt;&lt;P&gt;i_intern_value . &lt;/P&gt;&lt;P&gt;DATA: l_int TYPE i, &lt;/P&gt;&lt;P&gt;l_cell_end(2). &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;l_cell&amp;gt;. &lt;/P&gt;&lt;P&gt;l_cell_end = gc_esc. &lt;/P&gt;&lt;P&gt;l_cell_end+1 = i_separator . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_string CS gc_esc. &lt;/P&gt;&lt;P&gt;i_string = i_string+1. &lt;/P&gt;&lt;P&gt;IF i_string CS l_cell_end. &lt;/P&gt;&lt;P&gt;l_int = sy-fdpos. &lt;/P&gt;&lt;P&gt;ASSIGN i_string(l_int) TO &amp;lt;l_cell&amp;gt;. &lt;/P&gt;&lt;P&gt;i_intern_value = &amp;lt;l_cell&amp;gt;. &lt;/P&gt;&lt;P&gt;l_int = l_int + 2. &lt;/P&gt;&lt;P&gt;i_sic_int = l_int. &lt;/P&gt;&lt;P&gt;i_string = i_string+l_int. &lt;/P&gt;&lt;P&gt;ELSEIF i_string CS gc_esc. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;letzte Celle &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_int = sy-fdpos. &lt;/P&gt;&lt;P&gt;ASSIGN i_string(l_int) TO &amp;lt;l_cell&amp;gt;. &lt;/P&gt;&lt;P&gt;i_intern_value = &amp;lt;l_cell&amp;gt;. &lt;/P&gt;&lt;P&gt;l_int = l_int + 1. &lt;/P&gt;&lt;P&gt;i_sic_int = l_int. &lt;/P&gt;&lt;P&gt;i_string = i_string+l_int. &lt;/P&gt;&lt;P&gt;l_int = STRLEN( i_string ). &lt;/P&gt;&lt;P&gt;IF l_int &amp;gt; 0 . MESSAGE x001(kx) . ENDIF. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;MESSAGE x001(kx) . "was ist mit csv-Format &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "line_to_cell_esc_sep &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table for function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERN like ZALSMEX_TABLINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters for function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME like rlgrap-filename &lt;/P&gt;&lt;P&gt;I_BEGIN_COL type i &lt;/P&gt;&lt;P&gt;I_BEGIN_ROW type i &lt;/P&gt;&lt;P&gt;I_END_COL type i &lt;/P&gt;&lt;P&gt;I_END_ROW type i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;Alternatively, you can check this link...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_upexcel.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_upexcel.htm&lt;/A&gt;&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 14:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031328#M83900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031329#M83901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why don't you save it as &amp;lt;b&amp;gt;csv&amp;lt;/b&amp;gt;-file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 14:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031329#M83901</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-11-30T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: upload excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031330#M83902</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;I have been watching the methods too, and i can´t be able to find a method that can read so long cell in excel, i am going to convert the file in tabbed separated files or csv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 14:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel/m-p/1031330#M83902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T14:46:38Z</dc:date>
    </item>
  </channel>
</rss>

