Skip to Content

IW32 BOM List Button Pop-up - Control Not Found


We have added the BOM list button onto our flavor in IW32. When clicking this button, there is a pop-up window that appears with the title 'Restrict Value Range'.

The next step is to click the 'X' button to close that screen.

The issue is we want the script to automate clicking this button, but it always shows a 'control not found' error. It's odd because the script detects the modal popup, it reads the title of the pop, and I can select the 'X' button with the element selector. But when it comes to pressing that button with the script, it doesn't seem to work. I've tried putting this script on the 'onLoad' event and also the 'onAfterRefresh' event, thinking maybe the control wasn't ready yet, but so far no luck.

Any suggestions? Please see the attached screenshots.

Forgot to add, currently version 3.09
753_REL Patch 501

script.png (18.0 kB)
error.png (31.2 kB)
window.png (12.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 01 at 07:35 AM

    Hi Anthony,

    Please try the following:

    1) SAP Screen Personas only allows the editing of modal F4 helps. Make sure that you have selected the Dialog (Modal) Display mode the under Menu->Help->Settings->F4 Help Tab

    2) Double check the control ID of the close button

    3) To close a modal window, you can leverage the GuiModalWindow.close() method from the Scripting API.

    For example:

    Add a comment
    10|10000 characters needed characters exceeded

    • You can set the system default to modal window and ensure that users cannot change the system default to amodal. This is possible with proper authorization settings, so yes, you need to discuss this with your basis- and security teams.

      Then, all users should be set to use the system default F4 setting.

      Unfortunately it doesn't seem to be possible to prevent a user from deliberately changing the F4 popup back to amodal, but that is probably less likely to happen if it is already set for them to modal.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.