<?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 uploding the data from two or more sheets in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886731#M52656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all! My name is Ashish Nagar and iam new to this group joined few days back. First of happy new year. My problem is that i am unable to convert the data into flat file (or Sap understand able file)  given in two excel sheet from the client it is only converting the active sheet data. I am using the function ALSM_EXCEL_TO_INTERNAL_TABLE to convert the data . I request you to please help me up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye &lt;/P&gt;&lt;P&gt;(Ashish V Nagar)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Jan 2005 19:01:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-08T19:01:46Z</dc:date>
    <item>
      <title>uploding the data from two or more sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886731#M52656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all! My name is Ashish Nagar and iam new to this group joined few days back. First of happy new year. My problem is that i am unable to convert the data into flat file (or Sap understand able file)  given in two excel sheet from the client it is only converting the active sheet data. I am using the function ALSM_EXCEL_TO_INTERNAL_TABLE to convert the data . I request you to please help me up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye &lt;/P&gt;&lt;P&gt;(Ashish V Nagar)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2005 19:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886731#M52656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-08T19:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: uploding the data from two or more sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886732#M52657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use the FM GUI_UPLOAD, then you will have the data from the excel file into a internal table in SAP, later you can do anything with that &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2005 22:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886732#M52657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-09T22:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: uploding the data from two or more sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886733#M52658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have any problem just get notice!! ok!?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2005 22:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886733#M52658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-09T22:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: uploding the data from two or more sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886734#M52659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;OLE automation&amp;lt;/b&amp;gt; within ABAP. However, you should know the data area to consider performance. The code below may need some rework since I did not try it on the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA gs_excel TYPE ole2_object .
DATA gs_wbooks TYPE ole2_object .
DATA gs_wbook TYPE ole2_object .
DATA gs_worksheet TYPE ole2_object .


CREATE OBJECT gs_excel 'EXCEL.APPLICATION' .
SET PROPERTY OF gs_excel 'Visible' = 1 .
GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooks .

*--Opening the existing document
CALL METHOD OF gs_wbooks 'Open' = gs_wbook
     EXPORTING #1 = &amp;lt;file_path_var&amp;gt; .

"* &amp;lt;&amp;lt; ---- BEGIN OF BLOCK A

*--Activating sheet #1
GET PROPERTY OF gs_excel 'WorkSheets' = gs_worksheet
    EXPORTING #1 = &amp;lt;the_name_of_the_worksheet_1&amp;gt; .
CALL METHOD OF gs_worksheet 'Activate' .

*--Construct a loop according to your data area
DO n TIMES .
*--exit condition
  DO m TIMES .
*--exit condition

    CALL METHOD OF gs_excel 'Cells' = gs_cell
         EXPORTING #1 = m
                   #2 = n .
    GET PROPERTY OF gs_cell 'Value' = &amp;lt;variable&amp;gt; .

*--Assign the variable to the proper internal table field
  ENDDO .

*--A possible append to the intenal tablehere.
ENDDO .
"* &amp;gt;&amp;gt; ---- END OF BLOCK A

"*--And do the similar coding of "block A" for the second sheet."
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;&lt;/P&gt;&lt;P&gt;- one 10 points (solved)&lt;/P&gt;&lt;P&gt;- two 6 points (very helpful answer)&lt;/P&gt;&lt;P&gt;- many 2 points (helpful answer)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2005 23:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploding-the-data-from-two-or-more-sheets/m-p/886734#M52659</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-09T23:21:20Z</dc:date>
    </item>
  </channel>
</rss>

