cancel
Showing results for 
Search instead for 
Did you mean: 

Transactions VA41 different position types

former_member93250
Discoverer
0 Kudos

Dear Personas Experts,

I'm currently struggeling with a script topic that has the goal to switch the flavors between each position types:

ZMV1 and ZMV2 are the position types

following script is set on after refresh:

{ if (session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4013/ctxtVBAP-PSTYV").text === "ZMV1") { session.utils.changeFlavor("005056A0286E1ED6A1CB0DF48BC9CFCA"); } else { session.utils.changeFlavor("005056A0286E1ED6A6BED90819548209"); } } { if (session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4013/ctxtVBAP-PSTYV").text === "ZMV2") { session.utils.changeFlavor("005056A0286E1ED6A6BED90819548209"); } else { session.utils.changeFlavor("005056A0286E1ED6A1CB0DF48BC9CFCA"); } }

any ideas?

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

You say that you're struggling with this. What exactly is the problem?