Automate

 View Only
Expand all | Collapse all

Error message 'The control could not be found by id.'

  • 1.  Error message 'The control could not be found by id.'

    Posted 09-02-2021 04:46
      |   view attached
    Hi,

    in transaction MM02 I run a GUI script which worked fine until now.
    it seems that the error is a missing or additional screen, but I can't find out what screen this is.
    The script runs ok until it is on the tab Units of measure.
    Then I have an if statement that looks for CAS and then change some values, but the script quits running before this action is performed.


    Kind regards,
    Tom

    ------------------------------
    Tom Schurink | Manufacturing engineer metal
    Signify Netherlands B.V. | +31 650265650
    ------------------------------

    Attachment(s)

    Txr
    Win-UoM-Box-MM02-copy.Txr   98 KB 1 version


  • 2.  RE: Error message 'The control could not be found by id.'

    Employee
    Posted 09-03-2021 09:19
    Hi Tom

    I tried your script in debug mode, and it's where you go to additional data that it fails.  Are you sure about that function key?
    Yours on the left - mine on the right.
    My version attached, with IF and Loop added.

    HTH
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------

    Attachment(s)

    xlsx
    MM02_20210903_061718.xlsx   5 KB 1 version
    Txr
    MM02_20210903_061718.Txr   98 KB 1 version


  • 3.  RE: Error message 'The control could not be found by id.'

    Posted 09-03-2021 11:03
    Hi Sigrid,

    When I Use your script I'm getting the same error.
    It seems that it has to do with SAP GUI 760 that I'm using, is that the same you are using?




    ------------------------------
    Tom Schurink | Manufacturing engineer metal
    Signify Netherlands B.V. | +31 650265650
    ------------------------------



  • 4.  RE: Error message 'The control could not be found by id.'

    Employee
    Posted 09-03-2021 11:07
    Hi Tom - am using the same - please check your patch level
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 5.  RE: Error message 'The control could not be found by id.'

    Posted 09-04-2021 01:53
    Hi Sigrid,

    My patch level is 6, how can I get the 9 version?


    Tom

    ------------------------------
    Tom Schurink | Manufacturing engineer metal
    Signify Netherlands B.V. | +31 650265650
    ------------------------------



  • 6.  RE: Error message 'The control could not be found by id.'

    Employee
    Posted 09-07-2021 10:03
    Hi Tom

    You'd have to download it from the SAP Marketplace.  While I have an "S" id (i.e. access), I don't have permission to download anything.  Only a few people in our organization have this permission, so would suggest you speak to your SAP team to see who has access. 

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 7.  RE: Error message 'The control could not be found by id.'

    Posted 09-07-2021 10:37
    Hi Sigrid,

    It took me a while but I got some help to install patch 12, but the problem is still the same.


    Regards,
    Tom


    ------------------------------
    Tom Schurink | Manufacturing engineer metal
    Signify Netherlands B.V. | +31 650265650
    ------------------------------



  • 8.  RE: Error message 'The control could not be found by id.'

    Employee
    Posted 09-07-2021 13:23
    Hi Jan,

    Glad you could get the upgrade.

    I'm sorry you're still running into issues.  I'd suggest opening a support ticket, so that someone can walk through this with you.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 9.  RE: Error message 'The control could not be found by id.'

    Posted 09-08-2021 10:33
    Hi Sigrid,

    I created a new GUI script, and it seems to me that the identification of the disabled fields has changed with the switch from 740 to 760?
    I clicked the popup button, but then you have to select the field manually and then click the button again.
    So my new script is running again, thanks for your help.


    Regards,
    Tom

    ------------------------------
    Tom Schurink | Manufacturing engineer metal
    Signify Netherlands B.V. | +31 650265650
    ------------------------------



  • 10.  RE: Error message 'The control could not be found by id.'

    Employee
    Posted 09-08-2021 10:39
    Hi Tom

    Glad you got it resolved! :)

    As far as I know, the pop-up for capturing read-only fields with GUI scripting has been there for quite some time.  But you only need that if you are using an Indexed If - so for the ALT UOM field, which is read only.  I never capture the buttons that way, such as reset views. 

    BTW, I much prefer using a BAPI for the maintenance of Alt UOM and other repeating entries in the MM.  I have an example somewhere, if you'd like to see it.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 11.  RE: Error message 'The control could not be found by id.'

    Posted 09-08-2021 11:08
    Hi Sigrid,

    The popup was already there, but if I remember correctly, the field selection was done automatically instead of now manually?
    Anyway, it works fine now.

    I would like to use the BAPI option, but we are not allowed to use it but thanks anyway.

    Regards,
    Tom

    ------------------------------
    Tom Schurink | Manufacturing engineer metal
    Signify Netherlands B.V. | +31 650265650
    ------------------------------



  • 12.  RE: Error message 'The control could not be found by id.'

    Employee
    Posted 09-08-2021 12:07
    Hi Tom

    Yes, the pop-up has been there and captures everything - except a read only field that you want to use with an Indexed If.  That is the only time you really need that pop-up, for the most part.

    For example:
    • if you're trying to position and update material descriptions in different languages, the language code is not read only so that pop-up box is not needed. 
    • if you're trying to capture the Alternate unit of measure, it is read only, and you must use the pop-up to capture it.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------