<?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: How to execute one sap gui script in different SAP system component versions. in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192579#M119273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the very cool tip &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The snippet is fantastic solved lots of things. Can i ask one little question &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set oLastName = session.findById("wnd[0]").findByName("&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;SUID_ST_NODE_PERSON_NAME-NAME_LAST&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;","GuiTextField"). &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i set the highlighted unique name (table name of field data) as input not by giving manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 11:58:16 GMT</pubDate>
    <dc:creator>khagendra_padhy</dc:creator>
    <dc:date>2014-04-11T11:58:16Z</dc:date>
    <item>
      <title>How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaq-p/10192568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a task to write a script which can be executed in different SAP systems , explained as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a script to do password reset for mass users in one system (TC6) &amp;amp; it's working fine. But when i load same script in other system(QR5) to do the same activity , the system unable to execute the same script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing i found that by comparing in the two systems that the screen-ids in QR5 system is different than TC6 system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-&amp;gt; why it is different even though the scripting language is same.&lt;/P&gt;&lt;P&gt;2-&amp;gt; How can i overcome it &amp;amp; make a common script for all the systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaq-p/10192568</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-01T13:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192569#M119263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Khagendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this solution to solve your problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'-Begin-----------------------------------------------------------------

&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not IsObject(application) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set SapGuiAuto = GetObject("SAPGUI")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set application = SapGuiAuto.GetScriptingEngine
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not IsObject(connection) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set connection = application.Children(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not IsObject(session) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set session = connection.Children(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Info = session.Info()
&amp;nbsp;&amp;nbsp;&amp;nbsp; If Info.SystemName() = "QR5" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Here you can set a variable for the screen ID of QR5
&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf Info.SystemName() = "TC6" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Here you can set a variable for the screen ID of TC6
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Here your code, with the variable of the screen ID

'-End-------------------------------------------------------------------&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192569#M119263</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-01T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192570#M119264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your nice reply. But still i can't solve my complete problem. Because in the landscape i can't find which systems is upgraded one &amp;amp; which is not. Can you please help me for any other solution like platform independent methods which can be called for a certain task or can we make regular expression for GUICOMPONENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other solution if having also welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 17:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192570#M119264</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-01T17:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192571#M119265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope any body will reply my question to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192571#M119265</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-03T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192572#M119266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way will be create an own script for each System where you find differences (your original script is not working).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Holger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 11:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192572#M119266</guid>
      <dc:creator>holger_khn</dc:creator>
      <dc:date>2014-04-04T11:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192573#M119267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Holger &amp;amp; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late response first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have attached the recorded program-me for two systems for SU01 (simple user maintenance) with highlighted the text. I have highlighted both for easy understanding .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In system QR5 (upgraded one)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;session.findById("wnd[0]").maximize&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/tbar[0]/okcd").text = "/nsu01"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/&lt;STRONG&gt;ctxtSUID_ST_BNAME-&lt;/STRONG&gt;BNAME").text = "test"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/tbar[1]/btn[18]").press&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-&lt;/STRONG&gt;NAME_LAST").text = "rest"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME&lt;/STRONG&gt;-NAME_LAST").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME&lt;/STRONG&gt;-NAME_LAST").caretPosition = 4&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-&lt;/STRONG&gt;NAME_FIRST").text = "user"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME&lt;/STRONG&gt;-NAME_FIRST").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME&lt;/STRONG&gt;-NAME_FIRST").caretPosition = 4&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_COMM_DATA&lt;/STRONG&gt;&lt;SPAN&gt;-SMTP_ADDR").text = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:test.user@noreply.com"&gt;test.user@noreply.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_COMM_DATA&lt;/STRONG&gt;-SMTP_ADDR").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_COMM_DATA&lt;/STRONG&gt;-SMTP_ADDR").caretPosition = 21&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO").select&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1101/cmbSUID_ST_NODE_LOGONDATA&lt;/STRONG&gt;-USTYP").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1101/cmbSUID_ST_NODE_LOGONDATA&lt;/STRONG&gt;-USTYP").key = "A"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT&lt;/STRONG&gt;-PASSWORD").text = "********"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT&lt;/STRONG&gt;-PASSWORD2").text = "********"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT&lt;/STRONG&gt;-PASSWORD2").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT&lt;/STRONG&gt;-PASSWORD2").caretPosition = 9&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG").select&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell").modifyCell 0,"AGR_NAME","Z:T5_UK_WIPRO_DEV_NONBASIS"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell").currentCellColumn = "AGR_NAME"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell").pressEnter&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 11&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In system DR0 (Not upgraded)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;session.findById("wnd[0]").maximize&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/tbar[0]/okcd").text = "/nsu01"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/&lt;STRONG&gt;ctxtUSR02-&lt;/STRONG&gt;BNAME").text = "test"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/&lt;STRONG&gt;ctxtUSR02&lt;/STRONG&gt;-BNAME").caretPosition = 4&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/tbar[1]/btn[18]").press&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtADDR3_DATA&lt;/STRONG&gt;-NAME_LAST").text = "test"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtADDR3_DATA&lt;/STRONG&gt;-NAME_LAST").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtADDR3_DATA&lt;/STRONG&gt;-NAME_LAST").caretPosition = 4&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtADDR3_DATA&lt;/STRONG&gt;-NAME_FIRST").text = "user"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtADDR3_DATA&lt;/STRONG&gt;-NAME_FIRST").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtADDR3_DATA&lt;/STRONG&gt;-NAME_FIRST").caretPosition = 4&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtSZA5_D0700&lt;/STRONG&gt;&lt;SPAN&gt;-SMTP_ADDR").text = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:test.user@noreply.com"&gt;test.user@noreply.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtSZA5_D0700&lt;/STRONG&gt;-SMTP_ADDR").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;STRONG&gt;SAPLSZA5:0900/txtSZA5_D0700&lt;/STRONG&gt;-SMTP_ADDR").caretPosition = 21&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO").select&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUU5:0101/cmbUSLOGOND&lt;/STRONG&gt;-USTYP").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUU5:0101/cmbUSLOGOND&lt;/STRONG&gt;-USTYP").key = "A"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUU5:0101/pwdG&lt;/STRONG&gt;_PASSWORD1").text = "********"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUU5:0101/pwdG&lt;/STRONG&gt;_PASSWORD2").text = "********"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUU5:0101/pwdG&lt;/STRONG&gt;_PASSWORD2").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:&lt;STRONG&gt;SAPLSUU5:0101/pwdG&lt;/STRONG&gt;_PASSWORD2").caretPosition = 9&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG").select&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUU5:0106/tblSAPLSUU5TC_AGR/ctxtUSAGR-AGR_NAME[1,5]").text = "Z:T5_UK_WIPRO_DEV_NONBASIS"&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUU5:0106/tblSAPLSUU5TC_AGR/ctxtUSAGR-AGR_NAME[1,5]").setFocus&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUU5:0106/tblSAPLSUU5TC_AGR/ctxtUSAGR-AGR_NAME[1,5]").caretPosition = 26&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 0&lt;/LI&gt;&lt;LI&gt;session.findById("wnd[0]").sendVKey 11&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above it's clear that the screen IDs in both the systems are different as the program-me name is different for the same TA (SU01) in both the systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can you please advise how i will go with both to handle in one script (I can't put a check condition to call different scripts for the specific systems as in my landscape there are more that 100 systems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 09:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192573#M119267</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-07T09:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192574#M119268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Khagendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a possible solution could be to check the existence of an object. Look &lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-49101"&gt;here&lt;/A&gt; for a way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the sub routine C to a function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Sub C---------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Function C(ByVal Cmd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Check&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Check = New cCheck : Check.Exe Cmd : Set Check = Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If QuitFlag Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;And your call like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;If C("session.findById(""wnd[0]/usr/&lt;STRONG&gt;ctxtSUID_ST_BNAME-&lt;/STRONG&gt;BNAME"").text = ""test""") = 0 Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 'Do this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 'Do that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;With this way you can differentiate &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;whether an object&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;exists or not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and then go&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;different paths, depending from the result and independent from the system&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 05:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192574#M119268</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-08T05:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192575#M119269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the valuable reply. This way can be processed with my objective. But when i dig more on my project landscape today , i found 3 more different systems with different upgrade version &amp;amp; different screen IDs for each.For this i need to define individual screen-ID path check in each case But i found one common pattern SAP follows as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:&lt;SPAN style="font-family: 'Calibri','sans-serif';"&gt;&lt;STRONG&gt;SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-&lt;/STRONG&gt;&lt;/SPAN&gt;NAME_LAST").text&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/427974" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="color: red; text-decoration: underline;"&gt;session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA&lt;/SPAN&gt;:&lt;SPAN style="font-family: 'Calibri','sans-serif';"&gt;&lt;STRONG&gt; &lt;SPAN style="color: #4f81bd; text-decoration: underline;"&gt;SAPLSUID_MAINTENANCE:1900&lt;/SPAN&gt;/&lt;SPAN style="color: red;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: #9bbb59; text-decoration: underline;"&gt;SUID_ST_NODE_PERSON_NAME&lt;/SPAN&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;NAME_LAST&lt;/SPAN&gt;").text&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;RED letters- common in every system&lt;/P&gt;&lt;P&gt;BLUE letters- Program name &amp;amp; screen number from the image &lt;/P&gt;&lt;P&gt;GREEN letters- Table name &amp;amp; field name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Program name-screen number &amp;amp; Field name varies only for each system (different version). We can see it by putting F1 over the field of a TA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No doubt the way you gave can be proceeded but if we can find any method that SAP follows (if available in SAP GUI Scripting API) that will be more versatile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Please put your ideas. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks in Advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Khagendra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 12:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192575#M119269</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-08T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192576#M119270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-family: Calibri, sans-serif; font-size: 15px;"&gt;Khagendra&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I normally use the "findbyname" to solve these problems of possible changes ids in different systems. Normally a field in SAP has a unique name, which can facilitate in time to make the script. In your example I would do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-family: calibri, verdana, arial, sans-serif;"&gt;set oLastName = session.findById("wnd[0]").findByName("SUID_ST_NODE_PERSON_NAME-NAME_LAST","GuiTextField")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;msgbox oLastName.text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; I believe that the above three expressions in their work environments without the need to know the "id" fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; To use findbyname you need to pass the field name and type (in the case GuiTextField) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example that I use in my scripts: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set scrx = session.children.item (session.children.length-1) 'Define a window0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oINSPETORA = scrx.findByName("CI_EKKODB-YY_ENT_INSPETORA", "GuiCTextField")&lt;/P&gt;&lt;P&gt;Set oGERENTE&amp;nbsp;&amp;nbsp; = scrx.findByName("CI_EKKODB-YYGERENTE", "GuiCTextField")&lt;/P&gt;&lt;P&gt;Set oCCUSTOGER = scrx.findByName("CI_EKKODB-YYCENTRO_CUSTO", "GuiCTextField")&lt;/P&gt;&lt;P&gt;Set oACUSTO&amp;nbsp;&amp;nbsp;&amp;nbsp; = scrx.findByName("CI_EKKODB-YYAREA_CONT", "GuiTextField")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox oINSPETORA.text&lt;/P&gt;&lt;P&gt;msgbox oGERENTE.text&lt;/P&gt;&lt;P&gt;msgbox oCCUSTOGER.text&lt;/P&gt;&lt;P&gt;msgbox oACUSTO.text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oINSPETORA = Nothing&lt;/P&gt;&lt;P&gt;Set oGERENTE&amp;nbsp;&amp;nbsp; = Nothing&lt;/P&gt;&lt;P&gt;Set oCCUSTOGER = Nothing&lt;/P&gt;&lt;P&gt;Set oACUSTO&amp;nbsp;&amp;nbsp;&amp;nbsp; = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Hope this helps, &lt;/P&gt;&lt;P&gt;Evando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 05:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192576#M119270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T05:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192577#M119271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cool tip &lt;SPAN __jive_emoticon_name="cool" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/cool.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 06:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192577#M119271</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-11T06:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192578#M119272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stephan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evando &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 06:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192578#M119272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T06:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192579#M119273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the very cool tip &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The snippet is fantastic solved lots of things. Can i ask one little question &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set oLastName = session.findById("wnd[0]").findByName("&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;SUID_ST_NODE_PERSON_NAME-NAME_LAST&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;","GuiTextField"). &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i set the highlighted unique name (table name of field data) as input not by giving manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 11:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192579#M119273</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-11T11:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192580#M119274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-size: 12px;"&gt;khagendra&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name field is information that needs to be informed. Typically the stages of preparation of the script requirement, we investigate the actions that the script will run. This time is that the fields are identified using the recording tool of SAP own scripts. What can be done is to use a variable instead of the literal, but anyway mapping name field is required. In my opinion is much more "elegant" map the field names than ids (even because they can sometimes change). &lt;/P&gt;&lt;P&gt;Another interesting tip yet on this issue is that sometimes on the same screen, we have more than one field with the same name. At this time we use the commad FindAllByname with the same syntax. The difference is that in FindAllByname a collection is returned with all fields with the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192580#M119274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192581#M119275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Evando&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 08:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192581#M119275</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-04-12T08:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192582#M119276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By following your idea, I try to modify some code about controlling the value in the table lines, but no idea how to change it, such as below one, I don't know where can I put the code to change the line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;Session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT14/ssubTABSTRIPCONTROL1SUB:SAPLMEVIEWS:1101/subSUB2:SAPLMEGUI:1332/subSUB0:SAPLEINB:0300/tblSAPLEINBTC_0300/ctxtRM06E-EEIND[2," &amp;amp; l &amp;amp; "]").Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;Session.findById("wnd[0]").findByName("RM06E-EEIND", "GuiTextField").Text&amp;nbsp; '??? always point to line one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192582#M119276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-29T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192583#M119277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #787878;"&gt;Peikun Chen,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #787878;"&gt;Your example is a (RM06E-EEIND) field that is inside a GuiTableControl. For each line you need to access a different object to be able to handle the same. If you directly use the findByName, the return will be the first field in the table and not the entire contents. In these cases I use a different form which is traverse the entire table and read line by line, accessing the field using the GetCell function. Following example of how to read a table control, making the paging control:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #787878;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #787878;"&gt;&lt;A href="https://docs.google.com/document/d/1xnPgLxCfYKu4tjLFnYlE0SjdN9irmrGd1IWm7bPok74/edit?usp=sharing" title="https://docs.google.com/document/d/1xnPgLxCfYKu4tjLFnYlE0SjdN9irmrGd1IWm7bPok74/edit?usp=sharing"&gt;ReadTableControl - Google Docs&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #787878;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 05:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192583#M119277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-30T05:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute one sap gui script in different SAP system component versions.</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192584#M119278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peikin Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to change the value of a table line by line , than you need to traverse the whole table line by line.&lt;BR /&gt;1-&amp;gt; count no. of rows in the table , otherwise after paging table line number will reset to first.&lt;BR /&gt;2-&amp;gt; then traverse thorugh it with a for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Khagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 10:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-execute-one-sap-gui-script-in-different-sap-system-component/qaa-p/10192584#M119278</guid>
      <dc:creator>khagendra_padhy</dc:creator>
      <dc:date>2014-08-04T10:16:52Z</dc:date>
    </item>
  </channel>
</rss>

