I am automating SAP Logon 750 application. There are multiple systems within that and the click and data fetching methods need to be dynamic. i tries several activities like click, get visible text, get text, click text, etc but no luck in stability. I am working only with SU01 tcode. i have enabled scripting on both the sides. i even enabled that in RZ11. i have changed theme to sap signature theme from blue crystal theme to enable scripting and accessibility. Hotkeys are not working. Screen layouts are also different.selectors are also changing. i tried making that dynamic but there is no such attribute in that which i can change. How can i proceed? anyone who faced this issue? Please help.
@schwarzp
i have uploaded the images of the sap screen. I need to click on logon data tab. then i need to fetch date from valid to and valid through box. I have to click on that glass icon and lock buttons etc. These are not that stable.
ok, thanks. At first did you checked the new SAP activities from UiPath?
So for the tabs, try selecting them via the âSelect Itemâ activity. Otherwise you can go with âClick Textâ for the tabs.
For the glass and lock icon try using the Acitivity âClick Toolbar Buttonâ of the SAP Activities. Or check if there is a hotkey short cut available for these buttons.
For the valid fields a normal âGet Textâ should be fine.
Ah but i think i got your problem. You are performing the same process on several SAP systems? Then i think you have to create a own selector for each system. Try using regex selectors and just put in there the several possibilities of selectors that can appear. E.g. A button in german language has the aaname=âJaâ. in english it is aaname=âYesâ. Then you can use a regex selector like that: aaname=âJa|Yesâ matching:aaname=âregexâ
Can you show me how you send the hotkey F7? Which acitivity and which selector? Usually i send hotkeys for such buttons to the whole window.
you can use regex selectors for many other paramters in your selector. Just check the selector of the same field in both sap systems. Check what paramter is different and combine it in a regex selector with â|â. Thats like an âorâ. E.g. you can find âYesâ or you can find âJaâ.
Maybe you can just send the exact selectors you are using.
i have changed the approach now. I am using SAP table to fetch values as the layout will be the same there for all the systems. But when i am fetching the fieldâs value it is taking the selectorâs value for the whole table. any idea how can i modify that ?
Furthermore i think your selector is not stable at all. Open it in UiExplorer and Check for something like tableRow and tableColumn. Only with that you will get the value of a specific cell. Otherwise i can recommend using Data scraping to read Out a while Data table. For a few tables in SAP its not working, but you can give it a try.
Or Check if there is a export to Excel functionality. Export it to a Excel File and read it as Data table from there.
@this is the kind of selector i am getting in ui explorere. no table no column row.
i will try once with data scraping and reading it from the excel sheet.
@schwarzp I tried with data scraping but no luck. it is showing that the control does not support data scraping. then i tried with relative scraping and screen scraping. in screen scraping the selector is getting changed from
to
.
in case of relative scraping it is unstable. not working for all the systems.
can you explain me what is export to excel that you have suggested above?
yes. i tried with this one. currently i am using SAP table to fetch the value which will be same for all the systems. hope it works as it would be easier if it doesnât work then i will go with excel export solution.