cancel
Showing results for 
Search instead for 
Did you mean: 

Approve Purchase order - Define SAPUI5 Version

TomVanDoo
Active Contributor
0 Kudos

Hi all,

At one of our clients, we installed the approve purchase order application, but we're faced with a quirky problem.

On the detail page, at header level, you have a tabcontainer with multiple tabs (header info, notes, attachments).

I have a purchase order containing both notes and attachments, however, the tabs in question appear, but display "no data".

I checked the service, and all related data is available in there. In fact, the tabs (having icons) correctly display the number of notes and attachments in the icon Badge.

We have the same application running on multiple other systems, without any issues.

The only difference I could find, was the version of SAPUI5 libraries.

on the problematic system, there are 4 version (1.14, 1.16, 1.18 and 1.20)

on the working systems, we have version 1, 1.10, 1.12 and 1.14

Upon closer inspection, I noticed that the sap.me.tabContainer is actually deprecated as from version 1.16, and the implementation of the select-action is different from version 1.14.

a) Can this have to do with the issue I'm facing?

b) The mime handlers always take the latest version, is there a way to force a different version per app?

Tags edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

TomVanDoo
Active Contributor
0 Kudos

I made a temporary fix by adding an implicit enhancement point to get_libraries of the UI5 HTTP HANDLER class.

In there, I simply remove all versions from the table parameter ET_VERSIONS, that are not equal to 1.14...

It's a temporary fix, but it does the trick. Now I can start looking for a better solution.

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

if your UI5 application is hosted on SAP ABAP AS then you can force it to execute on version as defined by you.

Please refer my reply from thread

and yes your issue is related with different UI versions.

Regards,

Chandra

TomVanDoo
Active Contributor
0 Kudos

Thanks for your input.

unfortunately, that approach does not work in this case.

The approval app is a standard app, so I can't change the script tags.

On top of that: the approval app has been written in such a spaghetti entwined manner, that both local resources, as global resources, use the same base path. So if I change the bootstrap path to 1.14/resources/core... in debug mode, the local resources also attempt to follow that path, which doesn't exist, so I get a 404 on those resources.

I thought of renaming the folders for the other versions to something like 'disabled-v1.20' just to try it out, but because it's a SAP standard folder, I can't rename it either...

If there are any other ideas I can try, I'm happy to hear them.