title: Gettig text out of SAP confirmation Box with vba
body: <p>I'm automating a process with VBA, and I'm using SAP GUI Scripting to do so.</p>
  <p>The macro is to create dispute cases and it works fine but I want to know if it's possible to extract a text from a confirmation box when the case is duplicated.</p>
  <p><a href="https://i.stack.imgur.com/r4LE4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r4LE4.jpg" alt="enter image description here" /></a></p>
  <p>I have the code to get the text from a information box but doesn't work with this window.</p>
  <pre><code>session.FindById(&quot;wnd[1]/usr/txtMESSTXT1&quot;).Text
  </code></pre>
  <p>This is the part of the code where I'm trying to get the text:</p>
  <blockquote>
  <p>If session.ActiveWindow.Name = &quot;wnd<a href="https://i.stack.imgur.com/r4LE4.jpg" rel="nofollow noreferrer">1</a>&quot; Then
  'copy text from pop up
  rn(I, 11) = session.findById(&quot;wnd<a href="https://i.stack.imgur.com/r4LE4.jpg" rel="nofollow noreferrer">1</a>&quot;).Text 'This only returns the name of the box.</p>
  </blockquote>