Solved Blueprism-Select menu item in SAP

Hi Suresh.thank you.

The problem is not writing the filepath but I need to fist select system then select list then file then save option to save the file.

How do I do this.

In the screenshot you can see I have an option of action selection menu but how do I pass the parameters
 

Sukesh Kumaru

Active Member
Hello,

As in SAP some of the work can be done by sending keystrokes(make sure sap is highlighted),
for in this scenario,

NB:don't spy those what you showed in screenshot.

first send a keystroke "s" to open system and "t" to select list and finally "a" to select save.

Good Luck.
 

Sasi

New Member
Hi Bharathrhegde, How do you pass this code %pc to SAP application, Through navigate stage ?
 

gayatri

New Member
Hi All,
I am also having same requirement to export data to excel. I have to navigate through List->Export->Spreadsheet. How can we do this using blueprism.
Could you please help me on this.
 

sunortap

Member
Hi, gayatri
1) create a code stage with input ObjectID as text:

Dim SapGuiAuto as object
Dim SAPApp as object
Dim SAPCon as object
Dim session as object

SapGuiAuto = Microsoft.VisualBasic.Interaction.GetObject("SAPGUI") 'Get the SAP GUI Scripting object
SAPApp = SapGuiAuto.GetScriptingEngine 'Get the currently running SAP GUI
SAPCon = SAPApp.Children(0) 'Get the first system that is currently connected
session = SAPCon.Children(0) 'Get the first session (window) on that connection

session.findById(ObjectID).Select

2) to get ID please use application navigator (in application modeller use list in button Identify and choose Open Application Navigator)
go for cup of tea - it will loads some time
scroll down to bottom
scroll up until you find SAP Menubar
below you can find all Menu and Menu Items (see picture attached)
copy ID starting from "wnd"
/app/con[0]/ses[0]/wnd[0]/mbar/menu[0]/menu[3]/menu[1]
use this id as input for code stage

Please remember that you can choose spreadsheet directly, you do not need click List, export, spreadsheet.
 

Attachments

  • Sap.png
    18.7 KB · Views: 100
Top