cancel
Showing results for 
Search instead for 
Did you mean: 

Updating standard SAP file sapbi_comp.js

Former Member
0 Kudos

Hi Experts,

We need to overwrite a standard SAP .js file which exists in the war

file com.sap.ip.bi.web.portal.mimes.war file.The sapbi_comp.js is the

file that is to be overwriten in the component.We have been updating

the .js file successfully in NW 7.0 by making the changes in the js

file in par file and deploying on the server.

But in NWDS 7.3 we imported the war file in NWDS 7.3 and updated the js

file.Post that created an ear file and while deploying the ear file the

following excpetion is thrown:

"Cannot deploy two applications with identical application aliases

(context roots). Your application

[sap.com/com.sap.ip.bi.web.portal.mimes.ear] defines an application

alias (context root) [com.sap.ip.bi.web.portal.mimes] that is already

in use by application [sap.com/com.sap.ip.bi.web.portal.mimes]. There

are two possibilities in order to proceed with deployment: 1) Define

different application alias (context root) for your application

[sap.com/com.sap.ip.bi.web.portal.mimes.ear] (this is the preferred

option). 2) Undeploy the application "

We are not able to deploy the com.sap.ip.bi.web.portal.mimes.war file

as it says the alias already exists but in NW 7.0 we could overwrite

the par file for the same component thus updating the js file.

Please let us know how can we overwrite a standard SAP .js file.

Regards

Radhika

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186017
Active Participant
0 Kudos

Hello Radhika,

It might not be the most recommended thing to do, but,

Since the file you wish to change is a Java Script, you can change it locally on each and every server node by opening the deployed file on the file system and replacing the JS file with a file with the same name.

That way you will avoid the deployment exception.

Best Regards,

Nadav.

Former Member
0 Kudos

Hi Nadar,

In NW 7.0 we could deploy a standard par file after making hte changes in the components but in NW 7.3 is it not possible to change the standard file without undeploying the same ?

Also what is the standard way of  updating SAP standard file in NW 7.3?

Thanks&Regards

Radhika