Skip to Content
0

SAP Personas 3.0 SP06 - onAfterRefresh script no longer working

Feb 20 at 12:57 AM

39

avatar image

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.

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

1 Answer

Tamas Hoznek
Feb 20 at 02:02 AM
0

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.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

0

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.

0

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

0