<?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>Question Re: Extract  Components from Transaction CS03 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaa-p/12469301#M4671187</link>
    <description>&lt;P&gt;Hi and welcome to
the SAP Community!&lt;/P&gt;&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. Since you're
asking a question here for the first time, I recommend that you familiarize
yourself with &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;
(if you haven't already), as it provides tips for preparing questions that draw
responses from our members. &lt;/P&gt;&lt;P&gt;Should
you wish, you can revise your question by selecting Actions, then Edit
(although once someone answers your question, you'll lose the ability to edit
the question -- but if that happens, you can leave more details in a comment).&lt;/P&gt;&lt;P&gt;Finally,
if you're hoping to connect with readers, please consider adding a picture to
your profile. Here's how you do it: &lt;A href="https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS"&gt;https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS&lt;/A&gt;.
By personalizing your profile with a photo of you, you encourage readers to
respond.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julia&lt;BR /&gt;
SAP Community Moderator&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 06:46:48 GMT</pubDate>
    <dc:creator>former_member30</dc:creator>
    <dc:date>2021-04-20T06:46:48Z</dc:date>
    <item>
      <title>Extract  Components from Transaction CS03</title>
      <link>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaq-p/12469300</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
  &lt;P&gt;I am new to SAP GUI Scripting and Excel VBA. I have a time recurring and timeconsuming Action and I wanted to automize it as soon as possible. &lt;/P&gt;
  &lt;P&gt;I have to select the Transaction CS03 (BOM) and extract all the components for the BOM. I know How to extract single Values from SAP GUI to Excel but not all the Values from the Table: &lt;/P&gt;
  &lt;P&gt;This is the problematic Part I think:&lt;/P&gt;
  &lt;P&gt; For x = 0 To AnzahlPositionen ' From SAP &lt;/P&gt;
  &lt;P&gt; ThisWorkbook.Worksheets("Components").Activate 'select Map &lt;/P&gt;
  &lt;P&gt; last = Cells(Rows.Count, 1).End(xlUp).Row + 1 'SElect free row Cells(last, 1).Value = session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-POSNR[0,0]").Text session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-POSNR[0,0]").caretPosition = 2 &lt;/P&gt;
  &lt;P&gt;Cells(last, 2).Value = session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/ctxtRC29P-POSTP[1,0]").Text session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/ctxtRC29P-POSTP[1,0]").caretPosition = 1 &lt;/P&gt;
  &lt;P&gt;Cells(last, 3).Value = session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/ctxtRC29P-IDNRK[2,0]").Text session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/ctxtRC29P-IDNRK[2,4]").caretPosition = 6 &lt;/P&gt;
  &lt;P&gt;Cells(last, 4).Value = session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-KTEXT[3,0]").Text session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-KTEXT[3,0]").caretPosition = 14 &lt;/P&gt;
  &lt;P&gt;Cells(last, 5).Value = session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-MENGE[4,0]").Text session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-MENGE[4,0]").caretPosition = 3 &lt;/P&gt;
  &lt;P&gt;Cells(last, 6).Value = Stueckliste &lt;/P&gt;
  &lt;P&gt; Next x&lt;/P&gt;
  &lt;P&gt;If I change ...[0,0]").Text to ...[0,x]").Text it does not work. I just receive the first Row. I want to get every Row in the Table from the Transaction. &lt;/P&gt;
  &lt;P&gt;I hope someone can help me. &lt;/P&gt;
  &lt;P&gt;Thank You. &lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaq-p/12469300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-04-20T06:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract  Components from Transaction CS03</title>
      <link>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaa-p/12469301#M4671187</link>
      <description>&lt;P&gt;Hi and welcome to
the SAP Community!&lt;/P&gt;&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. Since you're
asking a question here for the first time, I recommend that you familiarize
yourself with &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;
(if you haven't already), as it provides tips for preparing questions that draw
responses from our members. &lt;/P&gt;&lt;P&gt;Should
you wish, you can revise your question by selecting Actions, then Edit
(although once someone answers your question, you'll lose the ability to edit
the question -- but if that happens, you can leave more details in a comment).&lt;/P&gt;&lt;P&gt;Finally,
if you're hoping to connect with readers, please consider adding a picture to
your profile. Here's how you do it: &lt;A href="https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS"&gt;https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS&lt;/A&gt;.
By personalizing your profile with a photo of you, you encourage readers to
respond.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julia&lt;BR /&gt;
SAP Community Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaa-p/12469301#M4671187</guid>
      <dc:creator>former_member30</dc:creator>
      <dc:date>2021-04-20T06:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract  Components from Transaction CS03</title>
      <link>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaa-p/12469302#M4671188</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;iamhamza420&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hello Hamza,&lt;/P&gt;&lt;P&gt;welcome in the SAP Community.&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...[0," &amp;amp; CStr(x) &amp;amp; "]").Text&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here an example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;For x = 0 To 5
  MsgBox session.findById("wnd[0]/usr/tblSAPMBIBSTC535/txtLOOP510-F1[0," &amp;amp; CStr(x) &amp;amp; "]").Text
Next
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;x is an integer variable and to use it inside an Id, which is a string, it is necessary to convert it.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 03:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/extract-components-from-transaction-cs03/qaa-p/12469302#M4671188</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2021-04-21T03:04:40Z</dc:date>
    </item>
  </channel>
</rss>

