Hi Joao -
If once the Else condition is run and none of the fields are populating, that indicates that the screen number contained in the script vs the screen number that is showing up during the run is not the same, hence it does not know what to do on the screen. Does that screen work in the separate recording by itself outside of any IF condition?
So in using this CJ20, you are entering the project number initially, and then positioning on the WBS element to go into its details. What if you went into the WBS directly from the main CJ20 screen instead? So you would not need positioning. Then if you go into the details do you always end up on screen 0999 or will there also be cases where you end up on screen 1999? I am unable to replicate a situation where I end up on that "flexible" screen 1999 so I cannot test your script.
My only other thought is that even though screen 1999 is showing up during the recording process because you are doing a manual run during the recording, when it runs it since it's being run in the background it shows screen 0999 instead.
Have you also tried recording in Batch mode to see if it works differently there?
If you continue to have issues after troubleshooting it might make more sense to open up a Support ticket so that they can go over this with you with more details in a web session. Good luck!
Thank you!
------------------------------
JENNIFER HWANG | SE
Winshuttle North America
------------------------------
Original Message:
Sent: 04-02-2020 11:26
From: joao.rino
Subject: Invalid Value Error
Hi Jennifer,
I'm facing other issue. In this same script I have to put an if condition because, although i'm using wbs editing, the SAP menu differs depending on the type of wbs.
I came up with an if condition, as is in the attached script, winshuttle is identifying well which menu it has to open, but then, in the "else" procedure it doesn't populate the fields. It leaves them blank. I made a script recording separately and copy to new one. One works, the other not.
Is this because I'm using the same columns? I don't get it.
This is a chain of 5 scripts. This specifi parte takes info from Q column until AB.
Thanks.
Joao
------------------------------
joao.rino |
SIEMENS SA (GSS A&F CENTER Lisbon) |
Original Message:
Sent: 04-02-2020 08:48
From: JENNIFER HWANG
Subject: Invalid Value Error
Hi Joao -
The Start SAP Gui is not necessarily checked automatically, only sometimes. But you are correct, any time you have checkboxes, having the box checked should be a capital X and not a lower case x. This applies for all checkboxes in SAP.
Thank you!
------------------------------
JENNIFER HWANG | SE
Winshuttle North America
Original Message:
Sent: 04-02-2020 05:43
From: joao.rino
Subject: Invalid Value Error
Hi Jennifer,
sure, but that's only to run SAP automatically, right? I always put that before the run. But that was not my problem.
Anyway I think it's working now. Is it possible that we have to use X in caps to select those two options?
Thanks
Joao
------------------------------
joao.rino |
SIEMENS SA (GSS A&F CENTER Lisbon) |
Original Message:
Sent: 03-31-2020 09:40
From: JENNIFER HWANG
Subject: Invalid Value Error
Hi Joao -
Can you first try clicking the "Start SAP GUI" checkbox on the Run tab?
Thank you!
------------------------------
JENNIFER HWANG | SE
Winshuttle North America
Original Message:
Sent: 03-31-2020 06:21
From: joao.rino
Subject: Invalid Value Error
Good morning,
I'm doing a script which I had already tested and it worked.
I'm changing a wbs element after creating the basic structure. My 3rd level lines should have the account assignment element and planning element selected (operative indicators) as per image:
------------------------------
joao.rino |
SIEMENS SA (GSS A&F CENTER Lisbon) |
------------------------------