<?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: VBA Code - Automation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13658981#M4824232</link>
    <description>&lt;P&gt;Hello&amp;nbsp;@Former Member&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I don't understand your question right... but have you already tried google?&lt;/P&gt;&lt;P&gt;E.g:&amp;nbsp;&lt;A href="https://www.wallstreetmojo.com/vba-message-box-yes-no/" target="_blank"&gt;https://www.wallstreetmojo.com/vba-message-box-yes-no/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your case you need to use "&lt;SPAN&gt;vbYesNoCancel"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR, Martin&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 11:19:42 GMT</pubDate>
    <dc:creator>MKreitlein</dc:creator>
    <dc:date>2024-04-04T11:19:42Z</dc:date>
    <item>
      <title>VBA Code - Automation</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaq-p/13645558</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to insert an IF function into SAP VBA Code so that IF a pop up comes up&amp;nbsp;&lt;SPAN&gt;"Data has been changed:", "Do you want to save the changes?" Yes, No or Cancel and I want to Press Yes and enter to continue but I can't seem to figure this out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaq-p/13645558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-04-04T11:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Code</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13657416#M4824058</link>
      <description>Can I get some help for this please?</description>
      <pubDate>Wed, 03 Apr 2024 12:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13657416#M4824058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-04-03T12:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Code - Automation</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13658981#M4824232</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Former Member&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I don't understand your question right... but have you already tried google?&lt;/P&gt;&lt;P&gt;E.g:&amp;nbsp;&lt;A href="https://www.wallstreetmojo.com/vba-message-box-yes-no/" target="_blank"&gt;https://www.wallstreetmojo.com/vba-message-box-yes-no/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your case you need to use "&lt;SPAN&gt;vbYesNoCancel"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR, Martin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13658981#M4824232</guid>
      <dc:creator>MKreitlein</dc:creator>
      <dc:date>2024-04-04T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Code - Automation</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13659019#M4824234</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes I've tried to google loads but nobody seems to have a similar issue across most forums I've checked and searched.&lt;/P&gt;&lt;P&gt;My code below from when it goes into SAP below:&lt;/P&gt;&lt;P&gt;This is when a that pop up I've just attached to my original post comes up and it just completely bugs out as it doesn't always come up when I run the full code.&lt;/P&gt;&lt;P&gt;session.StartTransaction "DE9"&lt;BR /&gt;session.findById("wnd[0]").maximize&lt;BR /&gt;session.findById("wnd[0]/tbar[0]/okcd").Text = "ZVP1A"&lt;BR /&gt;session.findById("wnd[0]").sendVKey 0&lt;BR /&gt;session.findById("wnd[0]/usr/tabsTABSTR/tabpVOR").Select&lt;BR /&gt;session.findById("wnd[0]/tbar[1]/btn[31]").press&lt;BR /&gt;session.findById("wnd[1]/usr/ctxtDY_PATH").Text = "C:\folder\setup\"&lt;BR /&gt;session.findById("wnd[1]/usr/ctxtDY_FILENAME").Text = "Preallocation.txt"&lt;BR /&gt;session.findById("wnd[1]/usr/ctxtDY_FILENAME").caretPosition = 17&lt;BR /&gt;session.findById("wnd[1]/tbar[0]/btn[0]").press&lt;BR /&gt;session.findById("wnd[0]/tbar[0]/btn[11]").press&lt;BR /&gt;session.findById("wnd[0]/tbar[0]/btn[0]").press&lt;BR /&gt;session.findById("wnd[0]/usr/tabsTABSTR/tabpBAS").Select&lt;BR /&gt;session.findById("wnd[0]/tbar[1]/btn[31]").press&lt;BR /&gt;session.findById("wnd[1]/usr/ctxtDY_PATH").Text = "C:\folder\setup\"&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13659019#M4824234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-04-04T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Code - Automation</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13665883#M4825130</link>
      <description>&lt;P&gt;Solved it with an extra few lines of code to auto save before it requests to save.&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]/tbar[0]/btn[0]").press&lt;BR /&gt;session.findById("wnd[0]/tbar[0]/btn[11]").press&lt;BR /&gt;session.findById("wnd[0]").sendVKey 0&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 13:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-code-automation/qaa-p/13665883#M4825130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-04-10T13:16:57Z</dc:date>
    </item>
  </channel>
</rss>

