SAP Scripting in Code Stage
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-02-19 04:00 PM
Hi All,
I know the SAP GUI scripting works well with Microsoft Excel.
Is there a way to execute SAP scripts in code stage in Blue Prism?
If Yes, What needs to be done in this case?
Regards,
Daniel
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-02-19 04:38 PM
I want to Know the same.
Please could somebody helps us?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-02-19 06:01 PM
Hi,
it is possible either by spying exact way as you would start SAP script manually.. OR faster way is to start SAP script via Utility - Environment --> ""Start process"" where you insert script path.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-03-19 01:10 PM
I know it, but i don´t want to put code in files to execute it, i want to develop the code in Blueprism
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
31-05-19 09:31 AM
This can be achieved using Code Stage.
Step 1: Have your script ready. In my case , I use the SAP recording feature (Customize Layout - > Script Recording and Play Back) to generate script.
From the generated script Recording take code starting from "session.findById("wnd[0]").maximize ......"
Step 2: Go to Initialize action in BO- under code options add the below name space
"Microsoft.VisualBasic.Interaction"
Step 3: Open your code stage in any action and add these lines in it :
Dim SapGuiAuto As Object
Dim session As Object
Dim Application As Object
Dim Connection As Object
SapGuiAuto = GetObject("SAPGUI")
Application = SapGuiAuto.GetScriptingEngine
Connection = Application.Children(0)
session = Connection.Children(0)
Step 4: Now add your code from Step 1 in the after above line in code stage.
It will work fine.
------------------------------
Sharath Kumar Pennada
Consultant
Deloitte Consulting India Private Limited
Asia/Kolkata
------------------------------
Step 1: Have your script ready. In my case , I use the SAP recording feature (Customize Layout - > Script Recording and Play Back) to generate script.
From the generated script Recording take code starting from "session.findById("wnd[0]").maximize ......"
Step 2: Go to Initialize action in BO- under code options add the below name space
"Microsoft.VisualBasic.Interaction"
Step 3: Open your code stage in any action and add these lines in it :
Dim SapGuiAuto As Object
Dim session As Object
Dim Application As Object
Dim Connection As Object
SapGuiAuto = GetObject("SAPGUI")
Application = SapGuiAuto.GetScriptingEngine
Connection = Application.Children(0)
session = Connection.Children(0)
Step 4: Now add your code from Step 1 in the after above line in code stage.
It will work fine.
------------------------------
Sharath Kumar Pennada
Consultant
Deloitte Consulting India Private Limited
Asia/Kolkata
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-02-20 11:53 AM
Hi Sharath Kumar Pennada,
When I use
------------------------------
Hoài Anh Ngô Vi
Technical Consultant
NTT DATA
Europe/Berlin
------------------------------
When I use
If Not IsObject(session) Then session = Connection.Children(0) End If
then Blue Prism complained that IsObject is not declared. Do you know which namespace I have to import for that to work?
Thank you and best regards
------------------------------
Hoài Anh Ngô Vi
Technical Consultant
NTT DATA
Europe/Berlin
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-02-20 01:04 PM
Hi Hoài Anh Ngô Vi ,
Please follow the steps mentioned above.
Step 2: have the namespace.
Step 3: You have to use entire code mentioned there.
Thanks,
Sharath
------------------------------
Sharath Kumar Pennada
Consultant
Deloitte Consulting India Private Limited
Asia/Kolkata
------------------------------
Please follow the steps mentioned above.
Step 2: have the namespace.
Step 3: You have to use entire code mentioned there.
Thanks,
Sharath
------------------------------
Sharath Kumar Pennada
Consultant
Deloitte Consulting India Private Limited
Asia/Kolkata
------------------------------
