<?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 SAPGUI - Loop thru the GUI Element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapgui-loop-thru-the-gui-element/m-p/7334464#M1538639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to read some of the values from a particular column in an ALV table in transaction MD04.  I'm using the loop to read the first 5 rows within the Do loop. I have changed the ID element within the loop as below to read the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
do 5.
  GETGUI ( MD04_710_STEP_42  ).
  log ( getval ) .
enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have changed the GUI Element ID as below in the above GETGUI recording and capture that value in a local variable getval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
'wnd[0]/usr/subINCLUDE1XX:SAPMM61R:0750/tblSAPMM61RTC_EZ/txtMDEZ-EXTRA [ 5, &amp;amp;LPC ]'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does return only empty though in the alv table in the screen it has values. if I hard coded the number 1 or 2 or 3 etc., in the above field it does retrieve the correct values from ALV table. But If I give the &amp;amp;LPC or any other local variable for iteration it returns empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to read the values within the loop by changing the GUI ID dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat on Oct 14, 2010 11:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Oct 2010 21:22:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-14T21:22:00Z</dc:date>
    <item>
      <title>SAPGUI - Loop thru the GUI Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapgui-loop-thru-the-gui-element/m-p/7334464#M1538639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to read some of the values from a particular column in an ALV table in transaction MD04.  I'm using the loop to read the first 5 rows within the Do loop. I have changed the ID element within the loop as below to read the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
do 5.
  GETGUI ( MD04_710_STEP_42  ).
  log ( getval ) .
enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have changed the GUI Element ID as below in the above GETGUI recording and capture that value in a local variable getval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
'wnd[0]/usr/subINCLUDE1XX:SAPMM61R:0750/tblSAPMM61RTC_EZ/txtMDEZ-EXTRA [ 5, &amp;amp;LPC ]'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does return only empty though in the alv table in the screen it has values. if I hard coded the number 1 or 2 or 3 etc., in the above field it does retrieve the correct values from ALV table. But If I give the &amp;amp;LPC or any other local variable for iteration it returns empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to read the values within the loop by changing the GUI ID dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat on Oct 14, 2010 11:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 21:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapgui-loop-thru-the-gui-element/m-p/7334464#M1538639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T21:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAPGUI - Loop thru the GUI Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapgui-loop-thru-the-gui-element/m-p/7334465#M1538640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have figured out this on how to change the ID names of the GUIELEMENT with the help of SAP help document as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nwpi71/helpdata/en/49/6d3d78e0221ec6e10000000a42189b/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nwpi71/helpdata/en/49/6d3d78e0221ec6e10000000a42189b/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above link for very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I consider this issue has been resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 18:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapgui-loop-thru-the-gui-element/m-p/7334465#M1538640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-15T18:18:28Z</dc:date>
    </item>
  </channel>
</rss>

