# Pass variable into SAP Script

**URL:** <https://forum.uipath.com/t/pass-variable-into-sap-script/266909>\
**Category:** Help\
**Tags:** question, studio, sap, uiautomation, activities\
**Created:** [November 4, 2020, 2:22pm UTC](https://forum.uipath.com/t/pass-variable-into-sap-script/266909 "2020-11-04T14:22:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hara\_Gopal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hara_gopal/32/80027_2.png) [@Hara\_Gopal](https://forum.uipath.com/u/Hara_Gopal)\
**Post date:** [November 4, 2020, 2:22pm UTC](https://forum.uipath.com/t/pass-variable-into-sap-script/266909/1 "2020-11-04T14:22:46Z")

</div>

Hello There,

I have a simple script recorded in SAP that mimics calling a transaction. I wish to replace this hard coded transaction number in the .vbs file with a variable (for passing the TCode) while calling the script from UiPath. Any ideas how to do this.

Thanks in advance  
Hara

---

<div class="post-metadata">

**Author:** ![moenk](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/moenk/32/207276_2.png) [@moenk](https://forum.uipath.com/u/moenk)\
**Post date:** [November 4, 2020, 7:46pm UTC](https://forum.uipath.com/t/pass-variable-into-sap-script/266909/2 "2020-11-04T19:46:02Z")

</div>

You can pass arguments to VBS and use it in the script then:

> **[Invoke VBScript](https://docs.uipath.com/activities/docs/invoke-vb-script)**
>
> UiPath.Core.Activities.InvokeVBScript Invokes a VBScript file and executes the commands it contains. For more information on VBScript, check the official documentation here. Properties Common DisplayName - The display name of the activity.Timeout -...
