cancel
Showing results for 
Search instead for 
Did you mean: 

Errors shown in Red Colour in SAP

AartiTyagi
Level 3
Hi All,

I have a requirement to read the error message show in red colour in SAP. How do i detect the text in red colour ?


------------------------------
Aarti Tyagi
Blue Prism Developer
------------------------------
2 REPLIES 2

Hi Aarti,

You can use the Surface Automation to recognize the colour.
Please refer to the Surface Automation user guide.

I hope this helps.


------------------------------
Hossein Azimi
Customer Support Engineer, APAC
Blue Prism
Australia/Sydney
------------------------------

Hi Aarti,

Do You mean Status Bar in SAP? If yes then You can write Your own code stage to read 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(cInt(N_In_Session_Number))

T_Out_Status = session.findById(T_In_ID).messagetype​

Inputs
N_In_Session_Number - number corresponding to sap session being used
T_In_ID - ID of SAP element

As an output in T_Out_Status You should get one of the following values:
S - Success
W - Warning
E - Error
A - Abort
I - Information

Best regards
Michal



------------------------------
Michal Szumski
RPA developer
Rockwell Automation
Europe/Warsaw
------------------------------