Capture result from VBScript (SAP automation through scripting)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-09-19 03:30 PM
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
------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------
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
Best,
Nanne
------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-09-19 06:25 AM
Have you tried using Utility - Environment : Start Process Read Std Err Std Out
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-09-19 08:20 AM
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
------------------------------
------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-09-19 09:25 AM
Try Program name as cscript, argument as path to vbs followed by arguments for vbs.
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-09-19 09:43 AM
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
------------------------------
------------------------------
Nanne van der Wal
Advisor
EY
Europe/Amsterdam
------------------------------
