07-02-23 05:19 PM
08-02-23 03:49 PM
Hi Flavio,
Disabling accessibility is not an option? We don't have it enabled and are using BluePrism since 2017 without any problems.
Otherwise you could try code like this instead of sending Keystrokes.
(Line is a variable that is incremented)
dim oSession as Object
oSession = GetObject("SAPGUI").GetScriptingEngine.Children(0).Children(0)
oSession.findById("wnd[0]/usr/cntlCUSTOM_SPLITTER/shellcont/shell/shellcont[2]/shell/shellcont[0]/shell").firstVisibleRow = Line
oSession = Nothing
09-02-23 11:53 AM
Hi Michael!
Unfortunately, disabling accessibility is not an option. As accessibility changes some SAP screens (mainly popups, search helps, etc), disable it will bring more problems because of the number of robots we have running. In the past, We've decided to follow the BP instructions and activate it... now we cannot change without refactoring our bots (and they are many!)
About your code, I've tried it. It works perfectly!
We're waiting for an answer from our SAP Support... if they don't find an alternative, We'll adopt your code as a solution for these cases.
I'll post the answer from SAP Team here.
Thank you very much!
------------------------------
Flavio Lara
System Analyst
Vallourec Tubos do Brasil
Belo HorizonteBrazil
------------------------------
09-02-23 04:37 PM
Hi Flavio,
the solution may depend on what you need to do with the data in ALV report.
If you need to examine all records and get to a particular record in SAP after reviewing the report data, one option may be saving report to CSV and working with text rather than SAP page scrolling.
If you need to perform actions on the screen itself, then recording a macro would be an alternative. Bot account logged on to SAP would need access to Server Scripting for that.
09-02-23 04:52 PM
Hi Konstantin,
Thank you for your answer.
The requirement is to read all lines from an ALV grid without exporting the list. For that, we use "Get All Items" in Read stage.
The issue is: we need to force SAP to return all lines to the screen before using "Get All Items". If not, the read stage returns blank lines.
Your suggestion of downloading the list to an external file will work, but it will add a lot of steps to the process. Additionally, not all screens with an SAP GridView element have the "export" option available.
Thank you again!
Regards,
15-03-23 01:04 PM
Hello @michael.wulf and @kkazantsev
Just to give you feedback. Our SAP Support suggested creating the registry key below. We tried values 1 and 2 for this key without success.
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP\SAPGUI Front\SAP Frontend Server\Customize]
"AlvInitialFocusPosition"=dword:00000001
The final decision is to downgrade SAP Gui to version 770 Patch 6 if using accessibility options.
Thank you again for your help.
Best regards!