<?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: VBS skip code when check box missing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363232#M1732416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;You could&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;. . .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="hps"&gt;on error resume next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/chkRV60F-KFREL").selected = false &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if err.number = 0 then&lt;/STRONG&gt; session.findById("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on error goto 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;. . . &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;ScriptMan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 21:48:37 GMT</pubDate>
    <dc:creator>script_man</dc:creator>
    <dc:date>2013-04-03T21:48:37Z</dc:date>
    <item>
      <title>VBS skip code when check box missing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363231#M1732415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with check box which is not always available.&lt;/P&gt;&lt;P&gt;When this check box is present it should be unchecked and then should be pressed ENTER. This will unlock some additional fields which subsequently will be edited. &lt;/P&gt;&lt;P&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/chkRV60F-KFREL").selected = false &lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then is the script which edit available fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s=0&lt;/P&gt;&lt;P&gt;Do &lt;/P&gt;&lt;P&gt;If session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/tblSAPLV60FTCTRL_FPLAN_TEILFA/ctxtFPLT-FKSAF[10,0]").text="A" Then _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/tblSAPLV60FTCTRL_FPLAN_TEILFA/ctxtFPLT-AFDAT[0,0]").text= sht.cells(i,11).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;session.findById("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P&gt;s=s+1&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/tblSAPLV60FTCTRL_FPLAN_TEILFA").verticalScrollbar.position = s &lt;/P&gt;&lt;P&gt;Loop Until session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/tblSAPLV60FTCTRL_FPLAN_TEILFA/ctxtFPLT-FKSAF[10,1]").text=""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to modify the script to skip first two rows( checkbox and "Enter") when chech box does not exist and to continue from s=0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be very thankful if you advise me how to solve this problem.&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;Guero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363231#M1732415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-03T18:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBS skip code when check box missing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363232#M1732416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;You could&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;. . .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="hps"&gt;on error resume next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP/tabpT\05/ssubSUBSCREEN_BODY:SAPLV60F:4203/chkRV60F-KFREL").selected = false &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if err.number = 0 then&lt;/STRONG&gt; session.findById("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on error goto 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;. . . &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;ScriptMan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 21:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363232#M1732416</guid>
      <dc:creator>script_man</dc:creator>
      <dc:date>2013-04-03T21:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBS skip code when check box missing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363233#M1732417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ScriptMan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfect.Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am new with scripting I thought that the script after &lt;STRONG style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="hps" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;on error resume next&lt;/SPAN&gt;&lt;/STRONG&gt; is performed only in case of error but it seems its not true. &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;Guero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 16:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbs-skip-code-when-check-box-missing/m-p/9363233#M1732417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-07T16:19:48Z</dc:date>
    </item>
  </channel>
</rss>

