cancel
Showing results for 
Search instead for 
Did you mean: 

Capture result from VBScript (SAP automation through scripting)

Nannevan_der_Wa
Level 4
Dear all,

I have a question related to SAP automation through usage of VBScript. I have my process in SAP in a vbscript and I 'play' the script through the 'Utility - Environement : Start Process' VBO where my application is the path to my SAP VBScript and the Arguments the variables I want to pass to the script. 

This works like a charm, but the issue I am having is that I am not able to return the result of the script to BluePrism. Whenever there is a success, or more imporatntly an error I want to know for error handling purposes. 

Do you have any suggestions on ways to execute the script while also being able to capture the result of the script? Usually I would use something like 
"WScript.StdOut.WriteLine <SAP_Status>"

Best,
Nanne


------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------
4 REPLIES 4

GopalBhaire
Level 10
Have you tried using Utility - Environment : Start Process Read Std Err Std Out

------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

Yes, I have tried that. Then I get an error message that the program is not suitable for that command. Not sure how to deal with it, or what the issue is.

------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------

GopalBhaire
Level 10
Try Program name as cscript, argument as path to vbs followed by arguments for vbs.

------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

You are the hero of the day!! Works like a charm 😄 Thanks a lot or your help!

------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------