I’m currently automating some SAP transactions.
Unfortunately our current SAP Setup contains many Dynpro views and as well
nested Dynpros. When trying to create Element Selectors for items inside those
Dynpros, I can’t get any reliable results. Maybe someone of you encountered already
a similar problem and could share your solutions/ideas for this problem.
I already tried OCR or Image Recognition but since we use differenty SAP themes and
languanges this creates (unnecessarily) complex flows.
thanks for your quick response. Sure I can try to explain as good as possible,
tbh I’m not a SAP dev but I’ll try my best.
A Dynpro in SAP is a dynamic application inside an SAP Transaction. It is based on
an UI that is connected to an underlying ABAP code. In my project I need to check
and update information about new components for our product. Therefore we have
a Transaction that contains all information about the component, including the materials used for the component. To display the information from other transactions based on the information
I passed into the Transaction our SAP Devs created a Dynpro.
I did follow and checke all steps. Everything is setup fine.
Sever scripting is enabled (checked ALL variables, all are set to false)
Client scripting is enabled
Modals are enabled
Highspeed connection is enabled
Authorization Rights are not possible, since sapgui/user_scripting_per_user is set to false
I’ve already automated some other SAP Transactions without a problem, there the Studio gets
the correct selectors. Only the transactions that contain Dynpro interfaces are my problem, so
I’m pretty sure that is not a configuration issue.
The correct SAP selector has SAP TAG inside (see bloew), on the screenshots above you see a lot of “AFX*”, it means the SAP scripting is not correctly enabled.
Hmm ok, I will have a look at the authorization and will check the server configuration with our
SAP Administrator and will check the Dynpro stuff again with some SAP developer. Maybe there
is an implementation issue or something