cancel
Showing results for 
Search instead for 
Did you mean: 

Can we automate SAP GUI MRS Planning board Gantt Chat using SAP GUI Scripting API's ?

sapusertest1
Discoverer
228

Hi,
I am working on automating SAP GUI using SAP GUI automation libraries with C# programming language, not able to inspect objects of MRS screen Gantt chart as the elements are GuiShell's.

Is there any way / or any opensource API's that would help to automate MRS screen Gantt chart.

Thanks.

stefan_schnell
Active Contributor

Hello @sapusertest1,

here an excerpt from the SAP GUI Scripting help in the GuiGraphAdaptObject:

"In addition to the new, activeX based controls SAP GUI also comes with a set of external graphics executables, for example to display a GANTT chart. These executables are not supported within the API. If during the execution of a script one of these executables is launched, then the script will be blocked."

As far as I understand it correctly, it is not possible to automate a GANTT chart with SAP GUI Scripting.

The SAP GUI Scripting help continues to say:

"If you need to automate a process during which a graphics executable is displayed, then you need an automation tool then allows you to both manipulate SAP GUI using the Scripting API, and other Windows applications using native methods."

Perhaps a Robotics Process Automation (RPA) approach can help you here.

Best regards
Stefan

sapusertest1
Discoverer

Thanks Stefan

Accepted Solutions (0)

Answers (1)

Answers (1)

FrankKrauseGUI
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

the netchart and barchart controls in SAP GUI for Windows only have a quite small scripting API.
See:
https://help.sap.com/docs/sap_gui_for_windows/b47d018c3b9b45e897faf66a6c0885a8/641f6b2c44164366ad580...
https://help.sap.com/docs/sap_gui_for_windows/b47d018c3b9b45e897faf66a6c0885a8/d47a106b196445248fee8...

I doubt that a useful test can be implemented based on this, but you can try.
And there is no other tool that could help you, because every automation tool would need the scripting API to interact with these components.

Best regards,
Frank

 

stefan_schnell
Active Contributor
0 Kudos

Hello @FrankKrauseGUI,

it is not really necessary to use only SAP GUI Scripting to automate the SAP GUI for Windows. As mentioned, Robotic Process Automation (RPA) can be used for this. If SAP GUI scripting is not available, as in this example for a specific control element, Computer Vision can be used. This may not work so precisely as when you work with specific IDs, but it can be used very well as a complementary tool.

Best regards
Stefan