Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Screen Personas 3 Error in Script - no control with id...

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:


CAA3>SAPLBUSS>5005>wnd[0]/scrptPersonas_0

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


Tags:
Former Member
Former Member replied

i solved it.

You have set the line with the value after the "execute"-Button but before the "back"-Button:

var vk = session.findById("wnd[0]/usr/subA01P01:SAPLFKKC:0100/ctxtFKKVKP-VKONT").text; /*Vertragskonto*/

session.findById("wnd[0]/tbar[0]/okcd").text = "caa3";

session.findById("wnd[0]").sendVKey(0);

session.findById("wnd[0]/usr/subA01P01:SAPLFKKC:0100/ctxtFKKVKP-VKONT").text = vk;

session.findById("wnd[0]/tbar[0]/btn[0]").press(); // Ausführen-Button

--> var vktyp = session.findById("wnd[0]/usr/subGENSUB_HD:SAPLBUSS:1003/subA01P01:SAPLFKKC:0250/ctxtFKKVK-VKTYP").text;

session.findById("wnd[0]/tbar[0]/btn[3]").press(); // Zurück-Button; um auf den Anfangsscreen zurück zu springen

// Allgemeine Daten

session.findById("wnd[0]/usr/boxPersonas_1445258671332/txtPersonas_1445258853411").text = vktyp;

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question