<?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: Excel to internal table formatting errors. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241985#M1382317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Samrat,
Try this way to upload excel to Internal table .\
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_program.
TYPES: BEGIN OF t_itab,
        bpid TYPE string,
       END OF t_itab.
DATA:lt_file_table   TYPE filetable,
     ls_file_table   TYPE file_table,
     ls_window_title TYPE string VALUE 'Data Conversion',
     lv_rc           TYPE i,
     lt_itab         TYPE TABLE OF t_itab,
     ls_itab         TYPE t_itab.

PARAMETERS: p_file   TYPE string.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      window_title = ls_window_title
    CHANGING
      file_table   = lt_file_table
      rc           = lv_rc.
  READ TABLE lt_file_table INTO ls_file_table INDEX 1.
  IF sy-subrc = 0.
    p_file = ls_file_table-filename.
  ENDIF.

START-OF-SELECTION.
  TYPE-POOLS:TRUXS.
  DATA:it_text    TYPE TRUXS_T_TEXT_DATA.
  DATA:i_filename LIKE  rlgrap-filename.
  i_filename = p_file.
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
      i_tab_raw_data       = it_text
      i_filename           = i_filename
    TABLES
      i_tab_converted_data = lt_itab
    EXCEPTIONS
      conversion_failed    = 1
      OTHERS               = 2.
  IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ELSE.
    LOOP AT lt_itab INTO ls_itab.
      WRITE:/ ls_itab-bpid.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Oct 2009 09:31:19 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-10-04T09:31:19Z</dc:date>
    <item>
      <title>Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241976#M1382308</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 a requirement where I need to take data from an excel doc and put it into an internal table.&lt;/P&gt;&lt;P&gt;The excel doc has got  only one active sheet and one column . I am using the methods FILE_OPEN_DIALOG and GUI_UPLOAD for the same. However the data that is getting stored in the internal table is some garbage data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing the following parameters in GUI_UPLOAD:-&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     FILENAME                = p_file&lt;/P&gt;&lt;P&gt;     FILETYPE                = 'ASC'&lt;/P&gt;&lt;P&gt;     HAS_FIELD_SEPARATOR     = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER_LENGTH           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   READ_BY_LINE            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DAT_MODE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CODEPAGE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IGNORE_CERR             = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   REPLACEMENT             = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   VIRUS_SCAN_PROFILE      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILELENGTH              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    DATA_TAB                = lt_itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_OPEN_ERROR         = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_READ_ERROR         = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NO_BATCH                = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   INVALID_TYPE            = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NO_AUTHORITY            = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   UNKNOWN_ERROR           = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   BAD_DATA_FORMAT         = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER_NOT_ALLOWED      = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED   = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER_TOO_LONG         = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   UNKNOWN_DP_ERROR        = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ACCESS_DENIED           = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DP_OUT_OF_MEMORY        = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DISK_FULL               = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DP_TIMEOUT              = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NOT_SUPPORTED_BY_GUI    = 17&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR_NO_GUI            = 18&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   others                  = 19&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The excel file that I am using is a tab delimited one.I am working in CRM 6.0 so as such cannot use the function module 'ALSM_EXCEL_TO_INTERNAL_TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide some idea how to go sbout this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samrat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 06:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241976#M1382308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-03T06:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241977#M1382309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this Fm to upload exel to internal table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KCD_EXCEL_OLE_TO_INT_CONVERT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kartik Tarla on Oct 3, 2009 11:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 06:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241977#M1382309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-03T06:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241978#M1382310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dutta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Check this --&amp;gt;&lt;/STRONG&gt; &lt;SPAN __jive_macro_name="thread" id="1170968"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 06:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241978#M1382310</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-10-03T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241979#M1382311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try other FMs.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/advancedsearch?query=excel" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/advancedsearch?query=excel&lt;/A&gt;&lt;EM&gt;to&lt;/EM&gt;internal+table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 06:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241979#M1382311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-03T06:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241980#M1382312</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;Use this FM-&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_READ_AND_CONVERT_SAP_DATA'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_FILENAME                 = PATH&lt;/P&gt;&lt;P&gt;      I_SERVERTYP                = 'PRS'&lt;/P&gt;&lt;P&gt;      I_FILEFORMAT               = 'XLS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_FIELD_SEPERATOR          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      I_LINE_HEADER              = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_BIN_FILELENGTH           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     I_TAB_RECEIVER             = IUPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 07:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241980#M1382312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-03T07:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241981#M1382313</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;what is the structure of your DATA_TAB and what is the data type in your excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried whatr you described and everything works fine, even with Microsoft Office Excel 2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 17:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241981#M1382313</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-03T17:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241982#M1382314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. Below is the code that I am using:-&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;types: begin of t_itab,
bpid(10) type c, 
 end of t_itab. 
data: lt_file_table type FILETABLE,
      ls_file_table type file_table,
      ls_window_title type string value 'Data Conversion',
      lv_rc type i,
      lt_itab type table of t_itab,
      ls_itab type t_itab.

PARAMETERS: p_file type string.
at SELECTION-SCREEN on VALUE-REQUEST FOR p_file.
CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG
  EXPORTING
     WINDOW_TITLE            = ls_window_title
*    DEFAULT_EXTENSION       =
*    DEFAULT_FILENAME        =
*    FILE_FILTER             =
*    WITH_ENCODING           =
*    INITIAL_DIRECTORY       =
*    MULTISELECTION          =
  CHANGING
    FILE_TABLE              = LT_FILE_TABLE
    RC                      = lv_RC
*    USER_ACTION             =
*    FILE_ENCODING           =
*  EXCEPTIONS
*    FILE_OPEN_DIALOG_FAILED = 1
*    CNTL_ERROR              = 2
*    ERROR_NO_GUI            = 3
*    NOT_SUPPORTED_BY_GUI    = 4
*    others                  = 5
        .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

read table lt_file_table into ls_file_table index 1.
if sy-subrc = 0.
 p_file = ls_file_table-FILENAME.
endif.
START-OF-SELECTION.

CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD
  EXPORTING
     FILENAME                = p_file
     FILETYPE                = 'ASC'
     HAS_FIELD_SEPARATOR     = 'X'
*    HEADER_LENGTH           = 0
*    READ_BY_LINE            = 'X'
*    DAT_MODE                = SPACE
*    CODEPAGE                = SPACE
*    IGNORE_CERR             = ABAP_TRUE
*    REPLACEMENT             = '#'
*    VIRUS_SCAN_PROFILE      =
*  IMPORTING
*    FILELENGTH              =
*    HEADER                  =
  CHANGING
    DATA_TAB                = lt_itab
*  EXCEPTIONS
*    FILE_OPEN_ERROR         = 1
*    FILE_READ_ERROR         = 2
*    NO_BATCH                = 3
*    GUI_REFUSE_FILETRANSFER = 4
*    INVALID_TYPE            = 5
*    NO_AUTHORITY            = 6
*    UNKNOWN_ERROR           = 7
*    BAD_DATA_FORMAT         = 8
*    HEADER_NOT_ALLOWED      = 9
*    SEPARATOR_NOT_ALLOWED   = 10
*    HEADER_TOO_LONG         = 11
*    UNKNOWN_DP_ERROR        = 12
*    ACCESS_DENIED           = 13
*    DP_OUT_OF_MEMORY        = 14
*    DISK_FULL               = 15
*    DP_TIMEOUT              = 16
*    NOT_SUPPORTED_BY_GUI    = 17
*    ERROR_NO_GUI            = 18
*    others                  = 19
        .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samrat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SAMRAT DUTTA on Oct 4, 2009 10:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 08:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241982#M1382314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-04T08:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241983#M1382315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dutta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Check this one too --&amp;gt; &lt;SPAN __jive_macro_name="thread" id="1319756"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 08:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241983#M1382315</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-10-04T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241984#M1382316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samrat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try again, use the Preview button before posting, and finally: First use google before annoying people here, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: I used the SE37 Test function to try the upload, may be that's a way for you to try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 08:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241984#M1382316</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-04T08:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241985#M1382317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Samrat,
Try this way to upload excel to Internal table .\
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_program.
TYPES: BEGIN OF t_itab,
        bpid TYPE string,
       END OF t_itab.
DATA:lt_file_table   TYPE filetable,
     ls_file_table   TYPE file_table,
     ls_window_title TYPE string VALUE 'Data Conversion',
     lv_rc           TYPE i,
     lt_itab         TYPE TABLE OF t_itab,
     ls_itab         TYPE t_itab.

PARAMETERS: p_file   TYPE string.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      window_title = ls_window_title
    CHANGING
      file_table   = lt_file_table
      rc           = lv_rc.
  READ TABLE lt_file_table INTO ls_file_table INDEX 1.
  IF sy-subrc = 0.
    p_file = ls_file_table-filename.
  ENDIF.

START-OF-SELECTION.
  TYPE-POOLS:TRUXS.
  DATA:it_text    TYPE TRUXS_T_TEXT_DATA.
  DATA:i_filename LIKE  rlgrap-filename.
  i_filename = p_file.
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
      i_tab_raw_data       = it_text
      i_filename           = i_filename
    TABLES
      i_tab_converted_data = lt_itab
    EXCEPTIONS
      conversion_failed    = 1
      OTHERS               = 2.
  IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ELSE.
    LOOP AT lt_itab INTO ls_itab.
      WRITE:/ ls_itab-bpid.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 09:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241985#M1382317</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-04T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241986#M1382318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samrat, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may try reading about desktop office integration or better yet check out the demos in transaction DWDM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 10:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241986#M1382318</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2009-10-04T10:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to internal table formatting errors.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241987#M1382319</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;sometimes it really makes sense to read the question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"The excel file that I am using is a tab delimited one"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating an excel and saved it as  tab delimited text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 10:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-internal-table-formatting-errors/m-p/6241987#M1382319</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-04T10:30:03Z</dc:date>
    </item>
  </channel>
</rss>

