1. 首页
  2. 文档
  3. SAP element identification problem

白皮书下载

实在智能Agent产品白皮书(7.2.0).pdf

SAP element identification problem

发刊日期:
2021/10/15

编辑团队:
实在学院

There are four common and known solutions that cause unrecognized SAP elements:

• Scripting is not enabled

• Script permission is not turned on

• No VC + + 2015 ~ 2019 environment

• Factory or sap & ldquo; Run as administrator & rdquo;

In case of failure to pick up, please check one by one according to the following contents. If you still can't pick up after the investigation of type 4, please contact relevant colleagues with the investigation results.

1、 Scripting is not enabled

To check and enable scripts, refer to See the figure below. There may be some differences in button icons due to version differences. Note: & ldquo; Enable Script & rdquo; Don't check the three options below.

2、 Script permission is not turned on

error analysis

1. Error log:

The enumerator of the collection cannot find en element with the specified index

2. Analyze the causes:

The direct cause session cannot be obtained, and the root cause script permission is not enabled

3. Current phenomenon (before 5.7.2):

SAP elements are recognized as windows elements. (see pickup status small window)

4. After optimization, a prompt will be given: & ldquo; Script execution permission is not enabled & rdquo;.

5. Script permission opening method:

Enter rz11 system parameter setting (the account needs to have corresponding permission. If not, please contact the administrator to explain the reason and obtain permission), and enter the parameter sapgui / user_ Scripting, modify the current value to true (modification permission is required)

6. Supplementary notes:

This is the modification method of SAP client, which will be restored after the server is restarted. SAP server needs to be adjusted by customers

3、 No VC + + 2015 ~ 2019 environment

In & ldquo; Programs and functions & rdquo; The interface view shows that there are installed programs as shown in the figure below. If not, install.

4、 Factory or sap & ldquo; Run as administrator & rdquo;

1. If factory or sap & ldquo; Run & rdquo; as an administrator;, There may be a problem that SAP elements cannot be picked up.

2. If you need to use the administrator's permission to start the step of false in the operation process, please give priority to other methods instead. Examples are as follows:

In a user's computer, using the component to start the browser requires administrator permission (the reason for the client's computer permission), which conflicts with the operation of SAP. This situation We can click the component with the mouse, double-click the browser shortcut to start the browser, and then obtain the hweb variable by obtaining the tab page component. As long as the hweb variable is obtained, the subsequent operation is the same as that of starting the browser component.

5、 Supplement: the left menu bar cannot be picked

1. Explanation: the pickup function cannot be realized at present

3. Solution: log in through the menu transaction code

4. Method of obtaining transaction code:

Manually select and double-click the menu item to operate the function, and then open the function interface. Find the transaction code information as shown in the following figure at the bottom right of the window.
Note: the information here may shrink and hide. Click the small triangle icon in the lower right corner to open the information. If you haven't seen the transaction code, do you see the small downward arrow on the right of the transaction code in the figure? Click it and select or view

Transaction code! Click to view the transaction code

5. Enter transaction code

Enter the transaction code obtained in the previous step into the text box shown in the afternoon, and click green on the left√Open the function interface.
It is recommended to use the component: [set text] + [element click] to complete the above operations.

企业培训
技术支持
加入社群
公众号
实在智能Agent学习群
扫码关注微信公众号