title: How can I download multiple PDF from SAP GUI using VBA
body: <p>I'm trying to download multiple PDF files from SAP GUI display using VBA. But in the last step (<code>AppActivate</code>, please see the code) the code doesn't run. Just, there is a code section.</p>
  <p>Do you have any idea to solve this problem?</p>
  <p>Thank you,
  Jose</p>
  <pre><code>    ...
      session.FindById(&quot;wnd[0]/usr/txtP_FILE&quot;).SetFocus
      session.FindById(&quot;wnd[0]/usr/txtP_FILE&quot;).CaretPosition = 28
      session.FindById(&quot;wnd[0]&quot;).SendVKey 0
      AppActivate &quot;Converting SAPscript (OTF) or ABAP List Spool Job to PDF&quot;
      
      SendKeys &quot;{F8}&quot;
      Application.Wait (Now + TimeValue(&quot;00:00:07&quot;))
      AppActivate &quot;Save as&quot; &lt;- Here is the error ############################
      SendKeys &quot;{ENTER}&quot;
      Application.Wait (Now + TimeValue(&quot;00:00:07&quot;))
      
      ...
     
  End Sub
  </code></pre>