title: SAP GUIXT - Pass Variable and run script
body: <p>I would like to create an &quot;input field&quot; in SAP that uses the passed value within a vb script. To give a specific example, I would like to open <code>FBL5N</code>, pass an invoice into a field and view the invoice in <code>VF03</code>. The script to do that is ready and works for a hardcoded value of invoice or thru VBA.</p>
  <p>Here is the GUI script part</p>
  <pre><code>inputfield (2,35)  &quot;inv&quot; (2,45) size=10 name=&quot;V_inv&quot;
  pushbutton (toolbar)  &quot;print_inv&quot; process=&quot;InvoiceScript.txt&quot;
  using MYINV = &quot;V_inv&quot;
  </code></pre>
  <p>Now, I don't know what to do for the inputscript part. I would like your assistance in this matter. Here is my first attempt:</p>
  <pre><code>Screen SAPLSLVC.0500
  ApplyGuiScript template=&quot;VF03INV.vbs&quot;
  Enter
  </code></pre>
  <p>Thank you for your help and let me know if you need any precision.
  Here are my sources of inspiration to get the above code :
  <a href="http://www.synactive.com/tutor_e/lessonia03.html" rel="nofollow noreferrer">http://www.synactive.com/tutor_e/lessonia03.html</a>
  <a href="http://www.synactive.com/docu_e/docia_process2.html" rel="nofollow noreferrer">http://www.synactive.com/docu_e/docia_process2.html</a></p>
  <p>***if its possible to have a version that reads a value in clipboard, that would even be better.</p>