Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get properties file value of one application from another app?


I have a DynPro application called "CommitteesApp".

When I load it the component controller intializes parameters from a properties file located on server using this code:

WDDeployableObjectPart App = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();

IWDConfiguration Configprop = WDConfiguration.getConfigurationByName(App, "Committees");


So far so good.

Now, I've created another application based on the same component called "ProApp". I would like this application to have the getStringEntry "ROLE_URL" as well. The problem is that this properties file is attached on the WAS to the first application so the new application can't "see" it. What do I need to do in order for it to see it? Do I need to create a seperate properites file just for the new app? If yes, than why? and wouldn't it destroy the former properties file?

Former Member
Former Member replied


where have you put your config file? You can use your config file across applications if you put it inside your component folder.

Go to Navigator view in NWDS-><your project>->src->configuration->. Put your file here.

Now use this code:

WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();
IWDConfiguration c = WDConfiguration.getConfigurationByName(d,"<whatever>");
catch(WDConfigurationNotFoundException ex){
catch(WDInvalidConfigParameterException iex){



Message was edited by: Satyajit Chakraborty

Message was edited by: Satyajit Chakraborty

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question