Skip to Content

Screen Personas 3.0 Switching flavor error / fail/bug

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
session.findById("wnd[0]/tbar[1]/btn[32]").press();

//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,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 07, 2016 at 01:36 PM

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

    Add comment
    10|10000 characters needed characters exceeded