Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Scripting Engine - Running reports simultaneously

Ivan_Horvath
Discoverer
0 Likes
545

Hi,

I'm working on a .net core WPF desktop application, which interacts with SAP GUI Scripting Engine to execute reports.

Up to now only one report could be executed, but there are reports, which runs for more then an hour, so users are requested to have the possibilities running the reports parallel.

I believe this could be done with creating additional Sessions. However as I'm studying how sessions works there are some difficulties.

Like

  • GUIApplication.ActiveSession is sometimes null
  • I can create maximum six sessions per connection? or per Application?
  • Once the report data collection from the server is started, the UI is locked, and i can not create new session until the data is displayed in the data grid. Is it possible somehow to force UI unlocking and creating a new session? I haven't found any solution for that so far.
  • Therefore my plan is to create one additional session before the report execution is started. Therefore, if another report must be executed while the first report is getting data from server, that 2nd session can be picked up and run the 2nd report. I can do that simultaneous executions for maximum six reports.
  • If the first report is finished, the result is exported into Excel, that session, which is used to run the report can be destroyed.
  • What is the timeout error for session? I saw sometimes that session is automatically destroyed after some time. Is the Application.destroysession event firing for that case as well?

I have SAPGUI 7.7 release.

thank you!

Ivan

0 REPLIES 0