<?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: Cycling through a table? in SAP CodeJam Discussions</title>
    <link>https://community.sap.com/t5/sap-codejam-discussions/cycling-through-a-table/m-p/502506#M134</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is your question related to the CodeJam program? You might want to update the associated tags to get your answer.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 07:45:03 GMT</pubDate>
    <dc:creator>AbdelhalimDadouche</dc:creator>
    <dc:date>2019-01-17T07:45:03Z</dc:date>
    <item>
      <title>Cycling through a table?</title>
      <link>https://community.sap.com/t5/sap-codejam-discussions/cycling-through-a-table/m-p/502505#M133</link>
      <description>&lt;P&gt;I am trying to create a macro within excel to copy over data (from the excel file) into the SAP table.&lt;/P&gt;
  &lt;P&gt;Using the script recording tool, I get the following to identify the first cell of the SAP table.&lt;/P&gt;
  &lt;P&gt;session.findById("wnd[0]/usr/tblSAPLCPDITCTRL_3400/txtPLPOD-VORNR[0,0]").Text&lt;/P&gt;
  &lt;P&gt;I pass my excel data through by equating that line with whatever cell I need.&lt;/P&gt;
  &lt;P&gt;I can cycle through my excel data with a for loop.&lt;/P&gt;
  &lt;P&gt;I do not know how to cycle through the SAP rows. If I change the first 0 above to a variable within my VBA code, I get an error when I try to execute the code.&lt;/P&gt;
  &lt;P&gt;How can I cycle through this? Or is there a way to paste a data array into SAP?&lt;/P&gt;
  &lt;P&gt;Any help would be appreciated. Apologize as I am new to this.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; For i = 2 To LastRow Step 1 

Op = Sheets("Output").Cells(i, "A") 

session.findById("wnd[0]/usr/tblSAPLCPDITCTRL_3400/txtPLPOD-VORNR[0,0]").Text = Op 

y = y + 1  

Next i&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2017 06:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-codejam-discussions/cycling-through-a-table/m-p/502505#M133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-14T06:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cycling through a table?</title>
      <link>https://community.sap.com/t5/sap-codejam-discussions/cycling-through-a-table/m-p/502506#M134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is your question related to the CodeJam program? You might want to update the associated tags to get your answer.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 07:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-codejam-discussions/cycling-through-a-table/m-p/502506#M134</guid>
      <dc:creator>AbdelhalimDadouche</dc:creator>
      <dc:date>2019-01-17T07:45:03Z</dc:date>
    </item>
  </channel>
</rss>

