How to load properties inner Jdeveloper
Hello,
I'm trying to load properties from some file using something like this
"final URL in = this.getClass().getResource("/jfreereport.resources");"
But this allways returns me null, so this Mean that my properties file was not loaded, I tried add this file to my classpath (throught project properties), and when I run my classpath has the file but my application is not capable to locate my properties, why??
How is the exactly procedure to load this properties files??
Thanks in advanc
Mauricio Alarcon
Try something like:
Properties props = new Properties();
try
InputStream in = ClassLoader.getSystemResourceAsStream("/jfreereport.resources");
props.load(in);
in.close();
catch(Exception ex)
//do something
}
Similar Messages
-
Hello Everyone,
We are experiencing difficulties when trying to load a properties file from a directory other then the one where the servlet is located. We are using the following code for this purpose:
private final String PROP_FILE_NAME = "my.properties";
Properties props = new Properties();
try {
props.load(getClass().getResourceAsStream(codeBase + PROP_FILE_NAME));
} catch(IOException e) {
//handle error ...
where codeBase is either physical directory path to the properties file or the URL. In either case we get a NullPointer exception which means that file is not found. But when we copy the properties file into the same directory where the servlet resides, everything works fine.
Does anybody have an idea as to how to resolve our problem?
Any help will be greatly appreciated!
Thanks in advance!
Y.M.HI,
I always keep my properties in a sub-directory called resources. In this case it is called Aircraft.properties.
* Holds the ResourceBundle of this object.
private static ResourceBundle resources;
static
try
resources = ResourceBundle.getBundle("resources.Aircraft", Locale.getDefault());
catch (MissingResourceException mre)
System.err.println("resources/Aircraft.properties not found");
System.exit(1);
// Here I pick up the data from the properties file
protected String getResourceString(String nm)
String str;
try
str = resources.getString(nm);
catch (MissingResourceException mre)
str = null;
return str;
// In this case I use menubar as key to my properties
String[] menuKeys = tokenize(getResourceString("menubar"));
Hope this will help a bit.
Klint -
How can load properties file for one time and use in entire application
Hi folks,
I dont want to read properties file every time , and want to get property value in any servelet or jsp page.(means i want to read only property file only for once and want to get value in any where ) , how to do this.
Message was edited by:
RajeshwarReddyTmeans we have to read file every time Know but i dont
want to be happen that ??? No you don't . You read the file once. You store it in the hashmap. Then you hand that hashmap to whatever class needing the data.
getProperties() returns the hashmap, doesn't read the file.
Maybe I should have called the method getMap or something.
Message was edited by:
karma-9 -
How to load properties from csv file directly into a .dll parameter in a test step
Hi,
I would like to take values from a property file and plug them directly into parameter used to invoke dll calls.
I have looked at examples on how to use the property loader to input test limits, but I cannot figure out how to pipe into the params.
I have tried. <step name>.Module.<param name>
step.propertieslist[0].
Any ideas?
Thanks,
m
Solved!
Go to Solution.I agree that it would be nice. The difference between limits and parameters though is that parameters are set dynamically. What I mean by that is you never know how many parameters a step will have until you define the module. Whereas the Limits are always set in stone. The only difference is the MultiNumeric Limit Test which is just an array that get's appended too with the same datatype. And the only acess to a parameters value is through the API unless it is a variable.
The other hard part is that you don't know the datatype of parameters. Any step can have any number of parameters as well as any datatype being passed to each individual parameter.
I think if you are set on NOT creating Locals or FileGlobals then you would need to create custom step types with subproperties that get assigned to the parameters. This could be even more painful though because now you have to maintain and support the custom step types.
The other option would be to create your own property loader step that could call in and set things in the API. HMMM now that would be an interesting project...
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
How to load a properties from path that is relative to the classpath
Hello;
I need to load a set of properties from a propertie file from inside and EJB. I need to do so that I don't set the full absoulte path of the property file. In brief I don't want to be dependent on the file system struture instead I want to read the property file relatively to the package path name.
Here is my code:
package packagename.com;
import packagename.com.*;
import java.util.*;
import java.io.*;
public class PropDemo {
public static void main(String[] args) {
public static final String PROP_FILE_NAME
= "configuration.properties";
File inputFile = new File(PROP_FILE_NAME);
Properties prop = new Properties();
try {
FileInputStream fis = new FileInputStream(inputFile);
prop.load(fis);
} catch (Exception e) {
Any body have an idea how to so.
Regards
malI realize that you are trying to be a pain in the arseNot really. I know that I spent about a day figuring it out and that was after skirting around the issue for a about a year.
with that reply, but we can look here:
public void load(InputStream inStream) throws
IOExceptionReads a property list (key and element pairs) from the
input stream. The stream is assumed to be using the
ISO 8859-1 character encoding.
The original post suggests the author already knows how to load from a file. So this doesn't help at all.
And possibly GASP cross reference this entry in
Class:
public InputStream getResourceAsStream(String name)Finds a resource with a given name. This method
returns null if no resource with this name is found.
The rules for searching resources associated with a
given class are implemented by the defining class
loader of the class.
Now you may equivocate that the docs don't
specifically state that the classpath is where
resources are searched for, but I would maintain that
any Java developer worth anything should know this.Really? So where, in the above entry, does it explain the impact of the "/" character at the beginning of the string?
I know how classes are searched for. I know the impact of the class path. How that impacts a 'resource' is less clear. Particularily since the "/" character has nothing to do with loading classes.
>
This should be Java 101. Advanced Topics should be
something that affect people who have programmed Java
for years. (This is usually something that first year
programmers work out). If this is representitive of
the kinds of questions that qualify as "Advanced" then
this forum will become basically useless.So an opposing opinion...this is an advanced topic. Nothing in the java docs makes it clear. And it is even less clear the context of a container. -
How to Load a propety file (resources/toto.properties) in my jnlp ?
Hi,
I have to deploy a java application using JWS for the first time and i encounter a problem with my properties file.
this is the story:
I have a properties file which contains 1 line:
repsrc = X:\\Documents and Settings\\aberghousse\\Bureau\\src\\When I deploy my application the jnlp can't open this file, this is the class that I use to load the properties file:
public class LoadProp extends Properties {
private static final long serialVersionUID = 1L;
final static Logger log1 = Logger.getLogger(LoadProp.class);
public LoadProp() throws IOException {
// Read properties file.
super();
InputStream in = getClass().getResourceAsStream("/pathname.properties");
try {
this.load(in);
} catch (IOException e) {
log1.error("Load properties error", e);
}finally {
in.close();
}the pathname.properties is located in conf/pathname.properties and conf directory is in my CLASSPATH.
In my sources to load a key I use this :
File src = new File(new LoadProp().getProperty("repsrc ")So why this Exception :(
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.experian.IhmFdi.GetFiles.findFiles(GetPdfFiles.java:30)
at com.experian.IhmFdi.GetFiles.<init>(GetPdfFiles.java:26)
at com.experian.IhmFdi.Ihm.<init>(Ihm.java:99)
at com.experian.IhmFdi.Ihm$16.run(Ihm.java:860)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Thank you for your help.
null
nullyes perhaps no one know how we can to do, but i'm using URL class to load my file so I suppose that I have two mode
1- offline : so i search file localy
2- online : using URL
this is a solution that works well for me I hope this help.
aa
Edit :
this is an example : your source:
URL prop = new URL(System.getProperty("propertyFile"));your jnlp file :
<property name="propertyFile" value="http://ip:8080/conf/yourfile.properties"/>Edited by: Aberghouss on Jan 7, 2008 2:33 PM
Edited by: Aberghouss on Jan 7, 2008 2:35 PM -
How to set servlet properties in JDeveloper 3.1?
Hello,
I am using JDeveloper 3.1 and try to develop some servlets, however, when I cannot locate any servlet.properties file to configure my serlvet (basically some init param). For other web server, I know that there are either a servlet.properties file or a admin port for developer to do this? Do anyone know how to do this in JDeveloper?Hello Ting,
I also failed to locate the servlet.properties file for JDeveloper when I try to configure our testing platform, we finally resort to use JWS to test our servlets instead. It seems that JDeveloper is just too immature and incapable of performing this run time servlet configration, or could the JDev Team shed some light on this issue?
Cheers,
Dav.
null -
How to load Java properties file dynamically using weblogic server
Hi,
We are using Java properties file in Java code. Properties in java properties file are frequently modified. If I keep these properties file in project classpath or as part of war, I will have to redeploy application after each change.
We are using Weblogic Server.
Can you please suggest me how can this properties file be loaded at weblogic server startup. Then in that case, how to refer property file in Java code?
What is the best practice for this?
Thanks,
ParshantAnother alternative is, keep the property file in any pre-defined location. Write a class which reads the properties from the file and returns the one which is requested by caller and deploy this class. Whenever you have to change the properties just update the property file on server and next call to fetch the property should return the updated one.
Downside of this approach is file I/O everytime. To overcome that you can actually "cache" the properties in a hashmap. Basically when any property if requested, first check the hashmap, if not found then only read from property file and also update in hash map. Next time same property will be returned from hash map itself. The hash map will be cleared at every server restart since its in the memory. You will also need to build a method to clear the hashmap when you update the values in the property file on server.
This solution would be suitable for small size files and when network overhead of calling a DB needs to be avoided. -
How to load log4j.properties
how to load log4j.properties file in my java code ?
i have put log4j.properties in c:\property\log4j.properties directory.
how do i load this properties file ?Normally you don't have to load it explicitely at
all. Just place it in your classpath and use log4j,
it should be loaded automagically.so, at run time i should use
java -classpath .;c:\property\log4j.properties;c:\log4j.jar; MyClass
is this the syntax ? -
Hi,
I want to use properties file in my application. I have kept properties file inside a directory called properties which is inside myProject(which is the parent directory of my project) i.e "myProject/properties".
My java file where i want to call this properties file is inside the myProject/WEB-INF/src/java.
How can i call the properties file from myProject/WEB-INF/src/java/PropertyReader.java
I wrote java program in myProject/WEB-INF/src/java/PropertyReader.java like:::::
ResourceBundle resBun = ResourceBundle.getBundle("Test", Locale.getDefault()); // Test.properties is inside myProject/properties
resBun..getString("name");
After running the program i am getting the following errors:::::
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name Test, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
at PropertiesReader.main(PropertiesReader.java:4)
What is the issue? How to use properties file?
Waiting for reply.
ThanksStill getting same exception. As you explained i tried like the below:::
1. I am using ant as build tool.
2. My properties file is for database configuration
My properties file is::
database.properties (inside myProject/properties)
JDBCDriver=org.gjt.mm.mysql.Driver
JDBCConnectionURL=jdbc:mysql://pmdbmysql:3306/bandwidthshaper?user=admin&password=admin
My java package structure is
WEB-INF/src/java
WEB-INF/src/classes
For build WEB-INF is the base directory and build.xml is inside the src directory
In my build.xml i wrote the following lines for compilation::
<target name="compile" >
<javac srcdir="src" destdir="src/classes" debug="true" debuglevel="lines,vars,source">
<classpath refid="class.path"/>
</javac>
<copy todir = "src/classes" >
<fileset dir = "../properties" />
</copy>
<jar jarfile="lib/${project.jar.file}" basedir="src/classes"/>
</target>
I am copying properties file to the classes directory.
Now in java file which is inside /WEB-INF/src/java, I wrote::
try {
Properties programProps = new Properties();
InputStream is = getClass().getResourceAsStream("/database.properties");
if(is == null)
throw new IllegalStateException("Properties file missing ");
programProps.load(is);
System.out.println("driver name::::::: "+programProps.getProperty("JDBCDriver"));
is.close();
} catch(Exception e) {
e.printStackTrace();
After compilation in my classes directory i am getting database.properties file and my java file with package.
At the time of running i am getting "java.lang.IllegalStateException: Properties file missing"
Now tell me where is the fault. Why again i am getting exception.
Thanks -
How to load data with carriage return through DRM action script ?
Hello,
We are using DRM to manage Essbase metadata. These metadata contain a field for member formula.
Currently it's a string data type property in DRM so we can't use carriage return and our formula are really hard to read.
But DRM support other data type property : memo or formatted memo where we can use carriage return.
Then in the export file, we have change the record delimiter to an other character than CRLF
Our issue : we are regularly using action script to load new metadata => How to load data properties with carriage return using action script ? There is no option to change the record delimiter.
Thanks!Hello Sandeep
here what I want to do through action script : loading a formula that use more on than one line:
Here, I write my formula using 4 lines but action script cannot load since one line = 1 record.
ChangeProp|Version_name|Hier_name|Node_name|Formula|@round(
qty*price
*m05*fy13 -
WSAD : loading properties file from EBJ project
Hi,
I am trying to load properties file contains database parameters into my EJB project. I am using WSAD as IDE tool
can you please help me with following.
1. where to place the .properties file physically ?
2.how to load the file to my EJB/DAO classes
3.can i use the same location to place log4j.properties file as well ?
I have tried doing in different ways but none is working.
thank you
Narendragot it working , for information pl go to the following page and section "Using log4j in an EJB Application"
i have followd same steps for loading my properties file .
http://sys-con.com/story/?storyid=43413&DE=1 -
Help - Step by Step Material on How to load Data from flatfile to BI 7.0
Hi BI Experts,
Can any one send the document or a pdf file on how to load data from flat file to BI 7.0 in step by step process.
Thanks in Advance
Regards
Ramakrishna Kamurthy
+91-99631010731. On log on you will be placed in the SAP Easy Access Strategic Management/ Business Analytics
1. You see the screen divided in two segments.
2. Follow the left segment.
3. Click on the Business Information Warehouse.
4. Sub Menu  BW Administration.
5. You find various entries in it.
6. Now double click on UG_BW_RSA1-Administrator Workbench
2. Creation of Info Area
1. Click on InfoObjects.
2. Now in the right hand side screen select the InfoObjects (First item on the top). Right click the mouse and select Create InfoArea.
3. A dialog box pops up.
4. Give the InfoArea as ZIVY_Iarea.
5. Give the Long Description as ZIVY Info Area.
3. Create a Catalog:
1. Select the InfoArea just created ZIVY_Iarea.
2. Right click the mouse pointer and select the option Create InfoObject Catalog
3. A dialog box pops up.
4. Give the InfoObjCat = ZIVY_CHCAT
i. Description = ZIVY Character Catalog
ii. InfoObjectType: Check the Character. ( As we are creating the master data, check the Character)
iii. Now at the bottom of this dialog box you see an icon called CREATE. Click this icon.
1.
1. The next screen in front of you is the Edit InfoObject Catalog.
2. Simply click the activate icon present on the Application Toolbar.
2. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_CUST and
i. Description Customer Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_CUST: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
2. Use suitable formats in the fields.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
iv. In the Attributes Tab:
1. We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1  InfoObject  ZIVY_IareaZIVY_CHCAT. This will be delt in the forth coming steps (STEP .
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_CUST, by clicking the icon ACTIVATE
2. Creation of InfoObject: ZIVY_CITY
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_CITY and
i.
Description
Customer
City Name.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_CITY: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 25
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_CITY, by clicking the icon ACTIVATE.
2. Creation of InfoObject: ZIVY_STATE
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_STATE and
i.
Description
Customer
State Name.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_STATE: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 25
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_STATE, by clicking the icon ACTIVATE.
2. Creation of InfoObject: ZIVY_CTRY
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_CTRY and
i. Description Customer Country Name.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_CTRY: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data
2. Check the With Texts and make suitable Text Table Properties.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
1. Creation of Attributes and InfoObject from the ZIVY_CUST InfoObject:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. In this ZIVY_CHCAT, you see the InfoObject ZIVY_CUST. Double click the InfoObject ZIVY_CUST.
6. You find the screen Change Characteristic ZIVY_CUST:Detail.
7. Click on the tab Attributes
8. In the Character Attribute Box, type ZIVY_CITY and enter the ENTER KEY.
9. You see the relevant information regarding this being inserted.
10. Similarly, type ZIVY_STATE, ZIVY_CTRY.
11. Now, we will create another InfoObject ZIVY_TEL, from here.
12. So type ZIVY_Tel and enter the ENTER KEY.
13. A dialog box pops up, and request you If you want to Create an InfoObject
14. Select Create Attribute As Characteristic and click the check mark.
15. Another window pops up. Give the following:
i. In the General Tab:
1. Long Description: ZIVY Telephone Number
2. Short Description: ZIVY Telephone Number
3. DataType : NUMC
4. Length : 10
5. Uncheck Attribute Only
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies
iv. Now click the TICK MARK
1.
1. Click the ACTIVATE
2. A window pops up.
i. Select activate dependent InfoObjects.
ii. Click the Check Mark.
1. Creation of InfoObject: ZIVY_DATE
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_DATE and
i. Description ZIVY Date.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_DATE: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: DATS
2. Length: 8
ii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
2. Create ZIVY Application Component:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Right click the mouse pointer and select the entry Create Application Component
5. A window pops up.
i. Application Component: ZIVY_APPCOMP
ii. Long Description : ZIVY Application Component
iii. Click the check mark.
1. Create InfoSoure:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Right click the mouse pointer and select the entry Create InfoSource
6. A window pops up:
i. Select the Direct Update of Master Data
ii. InfoObject : ZIVY_CUST
iii. Click the CHECK MARK.
1.
1. Now beneath ZIVY Application Component you see the Customer Info Object.
2. Select the Customer Info Object mentioned above.
3. Right click the mouse pointer, and select the entry Assign DataSource.
4. A window pops up.
i. InfoSource: ZIVY_CUST
ii. Source System: FLATFILE
iii. Check the TICK MARK.
iv. Just click yes for the coming window pop ups.
1.
1. Key thing
i. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First field is ZIVY_CUST,
3. Second field is ZIVY_CITY.
4. And so on.
5. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. ii. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
iii. Click the Activate Button. By clicking the ACTIVATE BUTTON you just activated the ZIVY_CUST MASTER DATA.
iv. Now in DataSource : select the text.
v. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First Field : 0LANGUAGE
3. Second field is ZIVY_CUST,
4. Third field is 0TXTMD.
5. Click the Transfer Rule adjacent to 0LANGUAGE
6. A window pops up.
a. Check the CONSTANT and give the value as EN
b. Click the TICK MARK.
7. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant. vi. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
vii. Click the Activate Button. By clicking the ACTIVATE.
1. Create the DATA required for this MASTER DATA
1. Open EXCEL.
2. Type the following data:
1.
1. Save as ZIVY_CUST_MASTER.CSV
2. The file should be saved in COMMA SEPARATED FORMAT.
3. Open EXCEL
4. Type the following data:
5. Save the file *** ZIVY_CUST_TEXT.CSV
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_CUST alias Customer Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_CUST_ATTR.
ii. Select ZIVY_CUST_ATTR
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_MASTER.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_CUST alias Customer Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_CUST_TEXT.
ii. Select ZIVY_CUST_TEXT
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_TEXT.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_MAT and
i. Description ZIVY Material Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_MAT: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
2. Use suitable formats in the fields.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
iv. In the Attributes Tab:
1. We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1  InfoObject  ZIVY_IareaZIVY_CHCAT. This will be delt in the forth coming steps (STEP 17).
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_MAT, by clicking the icon ACTIVATE
2. Creation of InfoObject: ZIVY_GROUP
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_GROUP and
i. Description ZIVY Material Group.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_GROUP: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data
2. Check the With Texts and make suitable Text Table Properties.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_GROUP, by clicking the icon ACTIVATE.
2. Creation of InfoObject: ZIVY_COLOR
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_COLOR and
i. Description ZIVY Material Color.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_COLOR: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_COLOR, by clicking the icon ACTIVATE.
2. Creation of InfoObject from the ZIVY_MAT InfoObject:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. In this ZIVY_CHCAT, you see the InfoObject ZIVY_MAT. Double click the InfoObject ZIVY_MAT.
6. You find the screen Change Characteristic ZIVY_MAT:Detail.
7. Click on the tab Attributes
8. In the Character Attribute Box, type ZIVY_GROUP and enter the ENTER KEY.
9. You see the relevant information regarding this being inserted.
10. Similarly, type ZIVY_COLOR.
11. Click the ACTIVATE
3. Create InfoSoure:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Right click the mouse pointer and select the entry Create InfoSource
6. A window pops up:
i. Select the Direct Update of Master Data
ii. InfoObject : ZIVY_MAT
iii. Click the CHECK MARK.
1.
1. Now beneath ZIVY Application Component you see the ZIVY Material Info Object.
2. Select the ZIVY Material Info Object mentioned above.
3. Right click the mouse pointer, and select the entry Assign DataSource.
4. A window pops up.
i. InfoSource: ZIVY_MAT
ii. Source System: FLATFILE
iii. Check the TICK MARK.
iv. Just click yes for the coming window pop ups.
1.
1. Key thing
i. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First field is ZIVY_MAT,
3. Second field is ZIVY_GROUP.
4. Third field is ZIVY_COLOR.
5. Check the mapping. If you dont see the mapping.
6. Click on the empty row in the group Assign InfoObjectField, the box to the right.
7. Type ZIVY_GROUP, ZIVY_COLOR.
8. Check the transfer rules.
9. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. ii. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
iii. Click the Activate Button. By clicking the ACTIVATE BUTTON you just activated the ZIVY_CUST MASTER DATA.
iv. Now in DataSource : select the text.
v. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First Field : 0LANGUAGE
3. Second field is ZIVY_MAT,
4. Third field is 0TXTSH.
5. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant. vi. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
vii. Click the Activate Button. By clicking the ACTIVATE.
1. Create the DATA required for this MASTER DATA
1. Open EXCEL.
2. Type the following data:
1.
1. Save as ZIVY_Material_MASTER.CSV
2. The file should be saved in COMMA SEPARATED FORMAT.
3. Open EXCEL
4. Type the following data:
5. Save the file *** ZIVY_Material_TEXT.CSV
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_MAT alias ZIVY Material Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_MAT_ATTR.
ii. Select ZIVY_MAT_ATTR
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_Material_MASTER.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_MAT alias ZIVY Material Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_MAT_TEXT.
ii. Select ZIVY_MAT_TEXT
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_MATERIAL_TEXT.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_SPER and
i. Description ZIVY Sales Person Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_SPER: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 20
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
2. Use suitable formats in the fields.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
iv. In the Attributes Tab:
1. We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1  InfoObject  ZIVY_IareaZIVY_CHCAT. This will be delt in the forth coming steps (STEP 24).
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_SPER, by clicking the icon ACTIVATE
2. Creation of InfoObject: ZIVY_SREG
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_SREG and
i. Description ZIVY Sales Region.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_SREG: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 20
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_SREG, by clicking the icon ACTIVATE.
2. Creation of Attributes from the ZIVY_SPER InfoObject:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. In this ZIVY_CHCAT, you see the InfoObject ZIVY_SPER. Double click the InfoObject ZIVY_SPER.
6. You find the screen Change Characteristic ZIVY_SPER:Detail.
7. Click on the tab Attributes
8. In the Character Attribute Box, type ZIVY_SREG and enter the ENTER KEY.
9. You see the relevant information regarding this being inserted.
10. Click the ACTIVATE
3. Create InfoSoure:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Right click the mouse pointer and select the entry Create InfoSource
6. A window pops up:
i. Select the Direct Update of Master Data
ii. InfoObject : ZIVY_SPER
iii. Click the CHECK MARK.
1.
1. Now beneath ZIVY Application Component you see the ZIVY Sales Person Info Object.
2. Select the ZIVY Sales Person Info Object mentioned above.
3. Right click the mouse pointer, and select the entry Assign DataSource.
4. A window pops up.
i. InfoSource: ZIVY_SREP
ii. Source System: FLATFILE
iii. Check the TICK MARK.
iv. Just click yes for the coming window pop ups.
1.
1. Key thing
i. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First field is ZIVY_SPER,
3. Second field is ZIVY_SREG.
4. Check the mapping. If you dont see the mapping.
5. Click on the empty row in the group Assign InfoObjectField, the box to the right.
6. Check the transfer rules.
7. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. ii. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
iii. Click the Activate Button. By clicking the ACTIVATE BUTTON you just activated the ZIVY_SREP MASTER DATA.
iv. Now in DataSource : select the text.
v. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First Field : 0LANGUAGE
3. Second field is ZIVY_SPER,
4. Third field is 0TXTSH.
5. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant. vi. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
vii. Click the Activate Button. By clicking the ACTIVATE.
1. Create the DATA required for this MASTER DATA
1. Open EXCEL.
2. Type the following data:
1.
1. Save as ZIVY_SREP_MASTER.CSV
2. The file should be saved in COMMA SEPARATED FORMAT.
3. Open EXCEL
4. Type the following data:
5. Save the file *** ZIVY_SREP_TEXT.CSV
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_SPER alias ZIVY Sales Person Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_SPER_ATTR.
ii. Select ZIVY_SPER_ATTR
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_MASTER.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_SPER alias ZIVY Sales Person Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_SPER_TEXT.
ii. Select ZIVY_SPER_TEXT
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_TEXT.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii.
Browse the data.
1. Creation of InfoObject Catalog with Key Figures:
1. Select the InfoArea just created ZIVY_Iarea.
2. Right click the mouse pointer and select the option Create InfoObject Catalog
3. A dialog box pops up.
4. Give the InfoObjCat = ZIVY_KEYCAT
i. Description = ZIVY Key Figures Catalog
ii. InfoObjectType: Check the Key Figures.
iii. Now at the bottom of this dialog box you see an icon called CREATE. Click this icon.
1.
1. The next screen in front of you is the Edit InfoObject Catalog.
2. Simply click the activate icon present on the Application Toolbar.
2. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_KEYCAT,which is ZIVY Key Figures Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_AMT and
i. Description ZIVY Amount Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Create Key Figure ZIVY_AMT: Detail.
2. In this screen the following fields have to be modified:
i. In the Type/ Unit Tab
1. DataType: Amount
2. Unit/ Currency = 0Currency
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_AMT, by clicking the icon ACTIVATE.
2. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. -
Exception while loading properties from an xml file
Hi all,
I've got a problem while loading properties from an XML file:
java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl cannot be cast to org.w3c.dom.Element
ERROR - Cannot load properties from the specified file <./conf/login.prop> java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl cannot be cast to org.w3c.dom.Element
at java.util.XMLUtils.importProperties(XMLUtils.java:97)
at java.util.XMLUtils.load(XMLUtils.java:69)
at java.util.Properties.loadFromXML(Properties.java:852)
at g2.utility.HRPMProperties.<init>(HRPMProperties.java:78)
at g2.utility.HRPMProperties.getInstance(HRPMProperties.java:94)
at g2.gui.workers.ApplicationSwingWorker.<init>(ApplicationSwingWorker.java:36)
at g2.main.Main.main(Main.java:37)but this code worked before, and I've got the xerces and xercesImpl packages in the classpath, anyone can give me an hint on how to fix the problem?Here there's the code that instantiates the HRPMProperties object loading the property file:
public class HRPMProperties extends Properties {
* A reference to myself.
protected static HRPMProperties mySelf = null;
* The property file to which load the configuration.
protected static String propertyFile = "./conf/login.prop";
* A set of static strings used as keys in the properties file.
public final static String DATABASE_URL = "database_url";
public final static String DATABASE_USERNAME = "database_username";
public final static String DATABASE_PASSWORD = "database_password";
public final static String REAL_USERNAME = "real_username";
public final static String REAL_PASSWORD = "real_password";
public final static String PHANTOM_LOGIN = "login_thru_phantom_user";
public final static String AUTOCONNECT = "autoconnect";
public final static String TRANSLATION_FILE = "translation_file";
* Builds up an empty properties map.
protected HRPMProperties(){
super();
this.reload();
* Builds up the property map from the specified input file. <B> The file must be in XML format</B>.
* In case of exception and/or problems reading from the specified file, an empty property map is returned.
* @param fileName the path and the name of the file with the XML representation of the properties.
protected HRPMProperties(String fileName){
super();
try{
this.loadFromXML(new FileInputStream(fileName));
}catch(Exception e){
Logger.error("Cannot load properties from the specified file <"+fileName+"> " + e);
e.printStackTrace();
* Provides an instance of the property class loaded from the default configuration file.
* @return the property instance
public static final HRPMProperties getInstance(){
if( HRPMProperties.mySelf != null )
return HRPMProperties.mySelf;
else{
HRPMProperties.mySelf = new HRPMProperties(HRPMProperties.propertyFile);
return HRPMProperties.mySelf;
}The constructor is the one triggering the exception, so there's a problem loading the XML property file. -
How to load aliases to Dimension
Hi,
I have a Dimension Hierarchy like this,
Account_Dim (Dimension)
-------> product1 (Member)
-------> Product2 (Member)
I am able to load aliases for members(product1 & product2) through HspOutlineLoad.sh with csv file. But don not know how to do the same for Dimension Name (Account_Dim).
HspOutlineLoad with " /D " switch seems to be loading only member properties. Please help how to load aliases to Dimension name through HspOutlineLoad. Sample format of csv/or whatever would be of great help.
Thanks
MamathaYou'll have to create 3 alias tables to hold 3 aliases. You cannot have 3 aliases for a dimension with 1 alias table.
After adding you can then load (your header will look like something similar)
Account,Parent,Alias: Default,Alias: French,Alias: German,Alias: Italian,Data Storage,Source Plan Type,Plan Type (Plan1),Aggregation (Plan1),Plan Type (Plan2),Aggregation (Plan2),Plan Type (Plan3),Aggregation (Plan3),Plan Type (Wrkforce),Aggregation (Wrkforce),Plan Type (Capex),Aggregation (Capex)
Regards
Celvin
http://www.orahyplabs.com
Maybe you are looking for
-
Tutorial - how to track user progress in a Captivate movie
I wanted to start working with the new scripting capabilities in Captivate 4 and thought a good first project would be to create a set of variables and custom actions and execute the actions based on the state of the variables. I wrote up a descripti
-
Problems mounting ISOs on Windows Vista SP2
I've been trying for the last few days to try to mount and ISO through Daemon Tools and Magic Disc to try to run a setup of a game. However, whenever I get into the autorun of the disc and click the setup button, all I get is a command prompt line fo
-
I've reinstalled OS X 10.7.5 using the Apple servers but my files were not erased, has the HD been reformatted and 10.7.5 reinstalled?
-
Question - changing the NEXT extend size manually
Hi Guys, I would like to get clarification on the subjected topic. During DB reorg, we have an option to change the next extend size manulay. If I want to change the next extend size , which is the best practise to follow on deciding the next extend
-
Hello! Here's a short description of my problem. I've installed 10gr2 on a Red Hat Linux system and created two Databases by using dbca. OEM connects the first database at port 1158 and the second one at port 5500. My OEM is in german, so I've to tra