Skip to Content

SAP Personas 3.0 SP06 - onAfterRefresh script no longer working

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 20 at 02:02 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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