<?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 ALSM_EXCEL_TO_INTERNAL_TABLE gives error while uploading data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641685#M1443528</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;There is a report which uses ALSM_EXCEL_TO_INTERNAL_TABLE to upload the data from the excel sheet and then process it further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the development we had successfully done the testing at our end.&lt;/P&gt;&lt;P&gt;We are using GUI 710 patch level 12 and microsoft excel 2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the customer end they are using GUI 710 patch level 7 and microsoft excel 2003.&lt;/P&gt;&lt;P&gt;The user is unable to upload the file in their system and the FM raises an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest what may be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;taher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 03:40:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-10T03:40:04Z</dc:date>
    <item>
      <title>ALSM_EXCEL_TO_INTERNAL_TABLE gives error while uploading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641685#M1443528</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;There is a report which uses ALSM_EXCEL_TO_INTERNAL_TABLE to upload the data from the excel sheet and then process it further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the development we had successfully done the testing at our end.&lt;/P&gt;&lt;P&gt;We are using GUI 710 patch level 12 and microsoft excel 2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the customer end they are using GUI 710 patch level 7 and microsoft excel 2003.&lt;/P&gt;&lt;P&gt;The user is unable to upload the file in their system and the FM raises an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest what may be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;taher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 03:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641685#M1443528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T03:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALSM_EXCEL_TO_INTERNAL_TABLE gives error while uploading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641686#M1443529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any specific reason for using ALSM_EXCEL_TO_INTERNAL_TABLE instead of FM 'GUI_UPLOAD' ?&lt;/P&gt;&lt;P&gt;Also please let us know the details about exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the template which you are using for upload &amp;amp; which the customer is using.. Looks like some problem with the template/date format/quantity etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 03:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641686#M1443529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T03:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALSM_EXCEL_TO_INTERNAL_TABLE gives error while uploading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641687#M1443530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u declare like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF l_intern OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE alsmex_tabline.&lt;/P&gt;&lt;P&gt;DATA: END OF l_intern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE  TEXT-001.&lt;/P&gt;&lt;P&gt;PARAMETERS:    dataset LIKE RLGRAP-FILENAME default 'C:\FK05.txt'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on value-request for dataset.&lt;/P&gt;&lt;P&gt;    perform get_file_name.&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;P&gt;FORM get_file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_NAME        = SYST-REPID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STATIC              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    file_name           = dataset&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;  MASK_TOO_LONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS              = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_file_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM data_upload TABLES itab USING dataset.&lt;/P&gt;&lt;P&gt;****************************************************************************************************&lt;/P&gt;&lt;P&gt;form data_upload TABLES   p_it_tab&lt;/P&gt;&lt;P&gt;                   USING    p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS : &amp;lt;fs&amp;gt;.&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                = p_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = '1'&lt;/P&gt;&lt;P&gt;      i_begin_row             = '2'&lt;/P&gt;&lt;P&gt;      i_end_col               = '256'&lt;/P&gt;&lt;P&gt;      i_end_row               = '10000'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = l_intern&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;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR COL_BACKGROUND INTENSIFIED.&lt;/P&gt;&lt;P&gt;    WRITE : / 'File Error'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF l_intern[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR COL_BACKGROUND INTENSIFIED.&lt;/P&gt;&lt;P&gt;    WRITE : / 'No Data Uploaded'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SORT l_intern BY row col.&lt;/P&gt;&lt;P&gt;    LOOP AT l_intern.&lt;/P&gt;&lt;P&gt;      MOVE l_intern-col TO l_index.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT l_index OF STRUCTURE p_it_tab TO  &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      MOVE l_intern-value TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      AT END OF row.&lt;/P&gt;&lt;P&gt;        APPEND p_it_tab.&lt;/P&gt;&lt;P&gt;        CLEAR p_it_tab.&lt;/P&gt;&lt;P&gt;      ENDAT.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 06:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alsm-excel-to-internal-table-gives-error-while-uploading-data/m-p/6641687#M1443530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T06:51:21Z</dc:date>
    </item>
  </channel>
</rss>

