Skip to Content

Screen Personas 3.0 Switching flavor error / fail/bug

Dec 01, 2016 at 02:11 PM


avatar image

Hi all,

When I try to automatically switch the flavors from A to B, with session.utils.changeFlavor("..."), only the first time it works, and after that i got an error, where also it breaks my flavor B and makes it useless. Can anybody help me to find the correct way to switch flavor after pressing the script button? (after passing the values in flavor A).

the error message after pressing the script button with session.utils.changeFlavor.:
Running Personas script could have caused this error. Please check your active scripts. Received "control serialization failed" on batch step: {"get":"state/ur"}

the whole script is:
session.utils.put("MATNR", session.findById("wnd[0]/usr/txtPersonas_148041405515048").text); session.utils.put("WERKS", session.findById("wnd[0]/usr/txtPersonas_148041407766587").text); session.utils.put("QUANTITY", session.findById("wnd[0]/usr/txtPersonas_148041410509916").text);

//Click Item Overview Button

//Enter Contract Item Data and hit Enter to Validate Data session.findById("wnd[0]/usr/subSCREEN:SAPLWB2A:*/tabsSTRIPT_AH_HEAD/tabpOALL/ssubHEADER_SUB:SAPLWB2A:0122/ssubFAST_ENTRY:SAPLWB2A:0119/tblSAPLWB2AITEM_OVER/ctxtKOMWBHI-MATNR[2,0]").text = session.utils.get("MATNR"); session.findById("wnd[0]/usr/subSCREEN:SAPLWB2A:*/tabsSTRIPT_AH_HEAD/tabpOALL/ssubHEADER_SUB:SAPLWB2A:0122/ssubFAST_ENTRY:SAPLWB2A:0119/tblSAPLWB2AITEM_OVER/ctxtKOMWBHI-WERKS_NAME[8,0]").text = session.utils.get("WERKS"); session.findById("wnd[0]/usr/subSCREEN:SAPLWB2A:*/tabsSTRIPT_AH_HEAD/tabpOALL/ssubHEADER_SUB:SAPLWB2A:0122/ssubFAST_ENTRY:SAPLWB2A:0119/tblSAPLWB2AITEM_OVER/txtKOMWBHI-MENGE[11,0]").text = session.utils.get("QUANTITY"); session.findById("wnd[0]").sendVKey(0);

//go to flavor GTP1 2 session.utils.changeFlavor("005056AA5EC51ED6ADF7E1A27F231517");

It is for t-code WB21.

I hope one of you can help me.

Kindly Regards,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mustafa Gilic Dec 07, 2016 at 01:36 PM

problem is solved by updating the kernel pkg lvl to 300.

10 |10000 characters needed characters left characters exceeded