Hey Folks,
I am newbie in Screen Personas (3.0) and so I have a problem with the scripting.
I want to make a simple view screen in combination with the TA CAA3. In this view I have made a few "Single-line text input box"es. In this boxes I want to show the same values if I enter a number and SAP jumps to the next screen and shows the values.
var vk = session.findById("wnd[0]/usr/subA01P01:SAPLFKKC:0100/ctxtFKKVKP-VKONT").text; /*Vertragskonto*/
session.findById("wnd[0]/usr/subA01P01:SAPLFKKC:0100/ctxtFKKVKP-VKONT").text = vk;
session.findById("wnd[0]/tbar[0]/btn[0]").press(); // Ausführen-Button
session.findById("wnd[0]/tbar[0]/btn[3]").press(); // Zurück-Button; um auf dem gleichen Screen zu bleiben
session.findById("wnd[0]/tbar[0]/okcd").text = "caa3";
session.findById("wnd[0]").sendVKey(0);
var vktyp = session.findById("wnd[0]/usr/subGENSUB_HD:SAPLBUSS:1003/subA01P01:SAPLFKKC:0250/ctxtFKKVK-VKTYP").text;
If I execute the script with my button so I get the error as follows:
Error, 2015-10-20, 09:45:41
Error during script execution:
There is no control with id 'wnd[0]/usr/subGENSUB_HD:SAPLBUSS:1003/subA01P01:SAPLFKKC:0250/ctxtFKKVK-VKTYP' in the current screen state.
Could you help to find the solution?
Thank you in advance.
best regards,
Tim