cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Personas 3.0 SP06 - onAfterRefresh script no longer working

jason_rametta
Explorer
0 Kudos

We've upgraded Personas from SP05 to SP06 and I have a flavour that is hanging on execution. I've narrowed it down to a script attached to Screen Events>onAfterRefresh. The script skips the hidden active tab within Transaction IW32>Operations>General:

if (session.findById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/subSUB_AVO_KOMP:SAPLCOIH:1206/tabsTS_1206").selectedTab.id === "wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/subSUB_AVO_KOMP:SAPLCOIH:1206/tabsTS_1206/tabpKPVG") { session.findById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/subSUB_AVO_KOMP:SAPLCOIH:1206/tabsTS_1206/tabpBDZO").select(); }

This helpful tip was provided as per below link:

https://wiki.scn.sap.com/wiki/display/Img/Hiding+the+default+%28active%29+tab+in+a+tab+strip

It has been working without issue with SP03 & SP05 however SP06 seems to have changed something and it is no longer working.

The script also works fine when executing manually however once it has been attached to a Screen Event the issue starts.

Any help would be greatly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

There may be an issue with onAfterRefresh - but in this situation, why did you use this event instead of onLoad like the KBA suggests?

onAfterRefresh is executed after each roundtrip, and this is unnecessary to hide the default tab. It only hampers performance when done repeatedly.

jason_rametta
Explorer
0 Kudos

Hi Tamas,

Are you suggesting this should be raised via OSS?

I tried the onLoad option as per the KBA when I initially built the flavour however it never worked (still doesn't work now in our SP05 system) so I tested the other options and onAfterRefresh was the only option that consistently worked.

Thanks
Jason

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

If the flavor hangs, then yes, I'd create an OSS incident. However, such problems are usually not Personas- but kernel-related. I guess with the SP06 upgrade, probably there was also a kernel patch upgrade too? This could be an explanation why the flavor worked with SP05 but not after upgrading to SP06.

As for the onLoad event not working, that's a little strange... although your scenario is different than the one in the KBA, so that may be the reason.

jason_rametta
Explorer
0 Kudos

Hi Tamas,

Yes, we upgraded Kernel 722 SPL 400 to SPL 500 as part of implementing Personas SP06.

I have tested attaching the Script to the onLoad Script Event and the 'hanging' is still happening.

I will raise a message.

Thanks
Jason