<?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 upload Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345692#M174216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SOORYA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  CALL TRANSACTION 'FK02' USING it_bdcdata MODE 'A' messages into it_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform format_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM format_messages .&lt;/P&gt;&lt;P&gt;  DATA: l_msg(100).&lt;/P&gt;&lt;P&gt;  LOOP AT it_messages.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        id        = it_messages-msgid&lt;/P&gt;&lt;P&gt;        lang      = sy-langu&lt;/P&gt;&lt;P&gt;        no        = it_messages-msgnr&lt;/P&gt;&lt;P&gt;        v1        = it_messages-msgv1&lt;/P&gt;&lt;P&gt;        v2        = it_messages-msgv2&lt;/P&gt;&lt;P&gt;        v3        = it_messages-msgv3&lt;/P&gt;&lt;P&gt;        v4        = it_messages-msgv4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        msg       = l_msg&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    WRITE:/ l_msg.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2006 12:46:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-01T12:46:48Z</dc:date>
    <item>
      <title>Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345690#M174214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) i am uploading 500 to 5000 records from excel to tcode using call tranction&lt;/P&gt;&lt;P&gt;   i need to  retreive error message which particular record and field is &lt;/P&gt;&lt;P&gt;   having error&lt;/P&gt;&lt;P&gt;   if there is any Function Module let me know r any logic which will &lt;/P&gt;&lt;P&gt;   solve my problem&lt;/P&gt;&lt;P&gt;2)before uploading data from excel i should validate the field &lt;/P&gt;&lt;P&gt;   eg.Value must exist in table t370k&lt;/P&gt;&lt;P&gt;   eg. only if value exist signs left aligned &lt;/P&gt;&lt;P&gt;    where and how should i validate [can i validate before perform bdc_field ]&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;[plz suggest me with sample code]&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;soorya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345690#M174214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345691#M174215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Once you upload the data from the excel into the internal table, you can validate the records of the internal table as to whether they exist in that particular table. Now to display the error message you can make use of FM &amp;lt;b&amp;gt;FORMAT_MESSAGE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;use &amp;lt;b&amp;gt;CALL TRANSACTION MODE&amp;lt;/b&amp;gt; as A (fro All) and E (for Error) and put message into an internal table IT_MESSAGES type &amp;lt;b&amp;gt;BDCMSGCOLL&amp;lt;/b&amp;gt;.That is done this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION '&amp;lt;trans name&amp;gt;' USING ITAB MODE 'A' UPDATE 'S' MESSAGE INTO IT_MESSAGES&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. Then loop at it_messages and call the above FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aswin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345691#M174215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345692#M174216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SOORYA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  CALL TRANSACTION 'FK02' USING it_bdcdata MODE 'A' messages into it_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform format_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM format_messages .&lt;/P&gt;&lt;P&gt;  DATA: l_msg(100).&lt;/P&gt;&lt;P&gt;  LOOP AT it_messages.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        id        = it_messages-msgid&lt;/P&gt;&lt;P&gt;        lang      = sy-langu&lt;/P&gt;&lt;P&gt;        no        = it_messages-msgnr&lt;/P&gt;&lt;P&gt;        v1        = it_messages-msgv1&lt;/P&gt;&lt;P&gt;        v2        = it_messages-msgv2&lt;/P&gt;&lt;P&gt;        v3        = it_messages-msgv3&lt;/P&gt;&lt;P&gt;        v4        = it_messages-msgv4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        msg       = l_msg&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    WRITE:/ l_msg.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345692#M174216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345693#M174217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi soorya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. while using CALL TRANSACTION&lt;/P&gt;&lt;P&gt;   there is an extension to it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MESSAGES BDCMSGCOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When any errors/warnings occurs,&lt;/P&gt;&lt;P&gt;   while simulating the transaction,&lt;/P&gt;&lt;P&gt;   all such messages (E/W/S) get&lt;/P&gt;&lt;P&gt;   accumulated in this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. From there u can detect and show messges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. eg.Value must exist in table t370k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For this purpose,&lt;/P&gt;&lt;P&gt;   first of all,&lt;/P&gt;&lt;P&gt;   we need to upload data from excel file to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. After that we can LOOP at this internal table&lt;/P&gt;&lt;P&gt;   and do all necessary validations like :&lt;/P&gt;&lt;P&gt;Value must exist in table t370k&lt;/P&gt;&lt;P&gt;only if value exist signs left aligned &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;6. If all is ok, then we can use CALL TRANSACTION.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345693#M174217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345694#M174218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : it_msg like bdcmsgcoll occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'PA30' using it_bdcdata mode 'A'&lt;/P&gt;&lt;P&gt;                                           update 'S'&lt;/P&gt;&lt;P&gt;                             &amp;lt;b&amp;gt;messages into it_msg.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        id        = it_msg-msgid&lt;/P&gt;&lt;P&gt;        lang      = sy-langu&lt;/P&gt;&lt;P&gt;        no        = it_msg-msgnr&lt;/P&gt;&lt;P&gt;        v1        = it_msg-msgv1&lt;/P&gt;&lt;P&gt;        v2        = it_msg-msgv2&lt;/P&gt;&lt;P&gt;        v3        = it_msg-msgv3&lt;/P&gt;&lt;P&gt;        v4        = it_msg-msgv4&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        msg       = v_msg&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        others    = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345694#M174218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345695#M174219</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;How you are uploading data from Excel to TCODE.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if i am wrong in understanding the scenario.&lt;/P&gt;&lt;P&gt;Also i am providing the Solution along with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: You want to upload data from Excel and post that  data in some R/3 Transaction say ME21n(PO Creation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create a Z Program for Function Module, Wherein Use FM GUI_UPLOAD for uploading data from EXCEl to Internal Table.&lt;/P&gt;&lt;P&gt;2)Now Remove the Records from Internal table after applying all validations..using LOOP AT or other Internal Table Operation.&lt;/P&gt;&lt;P&gt;3)Now write BDC code within same Program, which will read data from Internal Table and post it in ME21n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;Revert back, if some more elaborations is required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;VIJAY RAHEJA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345695#M174219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345696#M174220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following COde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  z_bdctest&lt;/P&gt;&lt;P&gt;no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_final occurs 0,&lt;/P&gt;&lt;P&gt;kschl_001(004),&lt;/P&gt;&lt;P&gt;werks_002(004),&lt;/P&gt;&lt;P&gt;lifnr_003(010),&lt;/P&gt;&lt;P&gt;matnr_01_004(018),&lt;/P&gt;&lt;P&gt;kbetr_01_005(016),&lt;/P&gt;&lt;P&gt;mwsk1_01_006(002),&lt;/P&gt;&lt;P&gt;end of it_final.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;* Selection Screen....................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters: p_file like rlgrap-filename&lt;/P&gt;&lt;P&gt;default '' obligatory. " File Name&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At Selection Screen Event...........................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;program_name = syst-cprog&lt;/P&gt;&lt;P&gt;dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;field_name = ' '&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform upload_file tables it_final&lt;/P&gt;&lt;P&gt;using p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMV13A' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RV13A-KSCHL'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=ANTA'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RV13A-KSCHL'&lt;/P&gt;&lt;P&gt;it_final-kschl_001.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLV14A' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RV130-SELKZ(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WEIT'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMV13A' '1363'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'KONP-KBETR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KOMG-WERKS'&lt;/P&gt;&lt;P&gt;it_final-werks_002.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KOMG-LIFNR'&lt;/P&gt;&lt;P&gt;it_final-lifnr_003.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KOMG-MATNR(01)'&lt;/P&gt;&lt;P&gt;it_final-matnr_01_004.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KONP-KBETR(01)'&lt;/P&gt;&lt;P&gt;it_final-kbetr_01_005.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KONP-MWSK1(01)'&lt;/P&gt;&lt;P&gt;it_final-mwsk1_01_006.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMV13A' '1363'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'KOMG-MATNR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=SICH'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'FV11'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form upload_file tables p_table&lt;/P&gt;&lt;P&gt;using p_file.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Declarations.......................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : l_index type i.&lt;/P&gt;&lt;P&gt;data : l_start_col type i value '1',&lt;/P&gt;&lt;P&gt;l_start_row type i value '2',&lt;/P&gt;&lt;P&gt;l_end_col type i value '256',&lt;/P&gt;&lt;P&gt;l_end_row type i value '65536'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field Symbols...........................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = '100'&lt;/P&gt;&lt;P&gt;i_end_row = '40000'&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;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&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_table 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_table.&lt;/P&gt;&lt;P&gt;clear p_table.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-error/m-p/1345696#M174220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:53:14Z</dc:date>
    </item>
  </channel>
</rss>

