Populating XLS file using ODI
Hi,
I have a requirement i will receive on a daily basis a file from SAP having some data.I need to integrate the data coming in a XLS file.
What i know till now is i can create Oracle table from the Text file.
Now i would like to know if there is any way to create Excel file from that database?
If yes how could i achieve that?
Thanks,
Mahesh
Hi Mahesh
This is already given in oracle blog ( Using Microsoft Excel as a Target in an Interface ).
https://blogs.oracle.com/dataintegration/entry/using_microsoft_excel_as_a_sou
Thanks.
Similar Messages
-
Reading DBF & XLS files from ODI-AIX
Hi all
I need to read DBF (Foxpro) and XLS files from ODI 10.1.3.5 for AIX 6.x
Anyone knows what drivers we need to install or any other kind of method to read them?
Thanks in advance
Ernest !Ernest,
To load DBF on AIX, you will need to use a DBF Foxpro jdbc driver. One of the drivers can be purchased from http://www.csv-jdbc.com/stels_dbf_jdbc.htm
or
http://www.hxtt.com/dbf.html
Copy the driver in the $ODI_HOME/oracledi/drivers directory and restart the agent if you have any.
Then you need to configure a Dbase physical dataserver + physical schema with the following JDBC URL
jdbc:jstels:dbf:/yourserverpath/dir_containing_dbf_files
Obviously, you will also need to define the corresponding logical schema
And after you define a model based on the logical schema, you will define the datastore. The "resource name" will contain name of the dbf file without the .dbf.
For XLS, you can try the drivers from the listed above.
HTH -
How to get Header in Downloaded .xls file using GUI_Download function
How to get Header in Downloaded .xls file using GUI_Download function ???
How to use the the Header parameter available in GUI_Download function .HI,
see this sample code..
data : Begin of t_header occurs 0,
name(30) type c,
end of t_header.
data : Begin of itab occurs 0,
fld1 type char10,
fld2 type char10,
fld3 type char10,
end of itab.
DATA: v_pass_path TYPE string.
append itab.
itab-fld1 = 'Hi'.
itab-fld2 = 'hello'.
itab-fld3 = 'welcome'.
append itab.
append itab.
append itab.
append itab.
append itab.
t_header-name = 'Field1'.
append t_header.
t_header-name = 'Field2'.
append t_header.
t_header-name = 'Field3'.
append t_header.
CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
EXPORTING
default_extension = 'XLS'
IMPORTING
fullpath = v_pass_path.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = v_pass_path
filetype = 'DBF'
TABLES
data_tab = itab
FIELDNAMES = t_header
Cheers,
jose. -
How to extract data from Essbase to Flat File using ODI
Hi,
Anyone know how to extract data from Essbase to Flat File using ODI?
Thanks in advance.
Regards,
SumardiHi,
Have you read through :-
Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
If you have read them and are still have a problem at what stage are you having the issues?
Cheers
John
http://john-goodwin.blogspot.com/ -
Export Chinise data in XLS file using toad
Hii..
I have one table which have chinise data
All data is correct .
I am exporting chinese data from Oracle table,I am facing problem
I export data through toad in flat file
and import it in XLS file using UTF character set .
After importing all character gets converted to ???? marks.
I cant see the data properly in the XLS file .
my guess data base is not exporting file as unicode and hence charactger gets converted
How I export data which I show correct data in chinise?Hi
I am using 8.5 version of toad .I tried with sql developer also but no vail..
can I set like this
ALTER SESSION SET NLS_LANGUAGE='SIMPLIFIED CHINESE';
ALTER SESSION SET NLS_TERRITORY='CHINA';
ALTER SESSION SET NLS_CHARACTER_SET='AMERICAN_AMERICA.UTF8';
and my NLS_LANG in windows for 10g client is AMERICAN_AMERICA.WE8MSWIN1252
PLz suggest mi
My NLS_SESSION_PARAMETERS in database are as follows
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE -
Merge xls files using powershell
is there any way to merge xls files using powershell ?
What does "merge" mean? Copy cells? Copy Sheets? Copy formulas? Copy Data?
"Merge"is way too vague.
¯\_(ツ)_/¯ -
Table to File using ODI Procedure
Pls help me ...describing what are the steps in ODI need for loading a RDBMS table to File using ODI Procedure....not using Interface and OdiSqlUnload
Thanks in AdvanceYou can use Java Beanshell or Jython to load data in to a file. The only thing is that you need to create a connection so that you can run the select query and get the resultset. Now write it using your rest code.
If i would have been in your situtation i would prefer Java Beanshell ( not good in jython ;) . Dev can help you on this.). The readymade query is already here
http://odiexperts.com/generate-column_name-header-for-odisqlunload/
Thanks. -
How to execute .sql file using ODI
Hi All,
I need to execute .sql file using ODI.
I tried @{path}{file} command in ODI procedure selecting oracle technology.but it is failing.
Do any one have any other idea to execute .sql file.
Thanks in advanceOhk...I think you can try creating batch file(.bat) if its Windows & call that from ODIOSCommand.
The bat file should contain scripts which call .sql file using sqlplus & there you can use @{path}{file} format.
See if this helps.
Regards,
Santy -
DB2 Version 8 to Flat Files using ODI
Hi,
We are trying to load data from DB2 V8 to flat files using ODI.
Can anybody help me in this to configure server in Topology.
Thanks
AshwiniHi,
How are you? Let me try contribute a little...
A)
1) The OS isn't a problem, once you link it at topology will be OK.
2) If you have a fix name just create a datastore to it, if not, there are techniques to got dynamic file names
3) When you say "*.dat, *.cvs" maybe you refer to the internal format of file (record separator, decimal point, etc) all of this is configurable on datastore that represents the file at ODI.
B) Yes, the only requisite is to have the write and read rights.
C) The most simple way is create a refresh variable that get the data in any format you wish..
Does it make any sense to you?
Cezar Santos -
Import CSV data to an existing populated XLS file
Hi Guys,
Looking for some assistance, with some powershell I have never done before.. and don't know where to start..
I have a CSV file that contains some data - Several items exported from a standard powershell command.
I also have an XLS file that has been manually populated for the last 6 months with data.
What I want to get to (and have started with exporting the data to csv) is for the script to run, and add the data from the CSV to the XLS in the already exisiting colum heading.
SO in the first row - we need to add the date, followed by adding data under each subsequent column that already has a heading..
Anyone got any suggestions on where to start with this? Any advice greatly appreciated.
Thanks
Allan HardingI think your question is a bit too broad and vague.
If you are not a scripter then I recommend asking in the Exxcel forum. THey will help you learn how to use Excel tomerge data tables.
If you want to scrpt this then youneed to start by learning how to write a script. YOu will want to use Import-Csv and the Excel object model.
If this is critical then I recommend contacting a consultant.
http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx
¯\_(ツ)_/¯ -
How to specify path to read E$ tab records into .xls file using odisqlunlod
Hi
Can any one help me how to specify specific path in odisqlunload tools which is useful for both windows and linux.
I am developing and testing in windows and moving generated scenario into linux box to test for testing people
If in case any error out records are populated in E$ table then how that records will populated on xls file, later I am sending that attachement for email notification to concern people
Below code is present in odisqlunload tool
OdiSqlUnload "-FILE=d:\ODI_Error_Out_Files\Notification_Error_Records.xls" "-DRIVER=oracle.jdbc.OracleDriver" "-URL=jdbc:oracle:thin:@10.75.114.146:1521:POCWCDS" "-USER=wcds" "-PASS=h2yXeih4hFlXXV,QaMeRR2Fy" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
select * from E$_notification
Please help how to make a single code which is useful and work on both windows and linux
Any sugession willl help me
Thanks in advance
Regards,
PhanikanthHi Bhabani,
I have written below code in KM itself and select technology as Java BeanShall
Code:
<@
String OS = System.getProperty("os.name").toLowerCase();
String v_path="";
if((OS.indexOf("win") >= 0))
v_path="D:\Unload_Dir\<%=snpRef.getSession("SESS_NO")%>.xlsx";
else if (OS.indexOf("mac") >= 0)
v_path="path details";
else if (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 )
v_path="/odi_a/Middleware/logs/wcds/odi_logs/<%=snpRef.getSession("SESS_NO")%>.xlsx";
else if (OS.indexOf("sunos") >= 0)
v_path="soliaris path";
@>
OdiSqlUnload "-FILE=<@=v_path@>" "-DRIVER=<%=odiRef.getInfo("DEST_JAVA_DRIVER")%>" "-URL=<%=odiRef.getInfo("DEST_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("DEST_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("DEST_ENCODED_PASS")%>" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
select * from <%=odiRef.getTable("L","ERR_NAME", "W")%>
It was executed well and below is the Execution code of the above code
Execution Code:
<@
String OS = System.getProperty("os.name").toLowerCase();
String v_path="";
if((OS.indexOf("win") >= 0))
v_path="D:\Unload_Dir\1341360.xlsx";
else if (OS.indexOf("mac") >= 0)
v_path="path details";
else if (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 )
v_path="/odi_a/Middleware/logs/wcds/odi_logs/1341360.xlsx";
else if (OS.indexOf("sunos") >= 0)
v_path="soliaris path";
@>
OdiSqlUnload "-FILE=<@=v_path@>" "-DRIVER=oracle.jdbc.OracleDriver" "-URL=jdbc:oracle:thin:@10.75.114.146:1521:POCWCDS" "-USER=wcds" "-PASS=<@=snpRef.getInfo("DEST_ENCODED_PASS") @>" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
select * from WCDS.E$_CDS_COMPANY
Please confirm me if the above Code is correct or not, if Not, please correct it and DESC_ENCODE_PASS is not encoding the password
Regards
Phanikanth
Edited by: Phanikanth on Feb 18, 2013 1:09 AM -
Problem downloading .doc, .xls file using servlet
i have a servlet which downloads the files to client(browser). It works file for .txt file but .doc, .xls files are opend but they contain garbage.
plz letr me know if u know problem!!!!!
-amitProbably because you output them using the Writer you got from getWriter instead of using the OutputStream you can get from getOutputStream.
-
Hello All,
I am using Visual studio 2008 R2 and i have file which is in xls format.I tried to import the file but i am getting error like "external table is not in the expected format".I tried in different ways like use IMEX = 1 and debug property set 64bit
= false.
while importing i used 97-2003 in excel source .
My altered connection string is " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Computer\Mathew\MYFile.xls;Extended Properties="EXCEL 8.0;HDR=YES;IMEX = 1 ;MAXSCANROWS = 15;READONLY = FALSE";"
If i manually open the file and save as the same extension (97-2003) no issues for importing.But my file is dynamic and it picks everyday and use the data flow task to import xls from source ,getting the error which i mentioned above.
But still i am facing the same issue. Do anyone face this kind of issue before and please help me or suggest me to overcome this issue.
Thanks,
Mathew GeorgeHi Mathew,
The error "External table is not in the expected format" usually occurs because the format of the Excel file is not supported by the Excel driver, for example, it will occur if we try to connect to a .xlsx file using the Microsoft JET 4.0 OLE DB Provider.
Given the situation that the issue appears after you resave the Excel file as .xls, it seems the source .xls file is not the exact Excel 97-2003 format.
One possible solution is to use the Microsoft ACE 12.0 OLE DB Provider other than the Microsoft JET 4.0 OLE DB Provider. Besides, I saw that you encounterred the error "Could not find installed ISAM" when using the Microsoft ACE 12.0 OLE DB Provider.
This error may occur because of the extra space between Excel 12.0 and the following semi-colon in the Extended Properties. For example, "Excel 12.0 ;HDR=YES;" will cause this error, and we should use "Excel 12.0;HDR=YES;". Be sure to use the Excel 12.0 other
than Excel 8.0 extended property because the Excel 12.0 works with both .xls format file and .xlsx format file. Here is a screenshot for your reference:
Regards,
Mike Yin
TechNet Community Support -
How to write LOGO(SE78 CREATE) TO XLS FILE(USING OLE2 METHOD!
HI
FYI!
i put a logo into sap!
and i will download this logo into XLS file !
how to do it!
please give some demo code!
thank you very much!Hi,
Do you know the Bapi for qp02 .I am working on uploading changing inspection plan using bdc .I am only updating last screen details like Decimals and measurement and lower value and high value .
I saw your post in sdn before 3 month .I think you have solution . Can you please give suggestion to me .
How can we prepare flat file .
Regards
Nandan. -
Creating .xls file Using Java I/O
Hi,
I am crearting a .xls file from a oracle database that support japanese charsets(i.e it has data in UTF-8 format). I am creating the file using below java statements:
1. Writer out = new OuputStreamWriter(new FileOutputStream("temp.xls"));
2. out.write(data);
So using above statements I am reading data in UTF-8 format and writing it a file using UTF-8 format.
But my created .xls files does not allow me to see japanese characters as they visible in a browser. But in place of temp.xls if I use temp.txt or temp.doc , then I am able to see the japanese characters when those files are view using TEXTPAD OR MS-WORD APPLICATIONS.
I have japanese font installed on my machine. So I am not understanding where the actual problem is with my way of file writing or with MS-EXCEL APPLICATION ....
Please suggest me some solution ....
Thanks in advance......
kumar.Actually the way u have told result in the same. Even the file is .csv or .xls I am not able to see some japanese characters in my excel application provided I have japanese fonts installed on my machine. But when using the same servlet if i create an .doc or .txt file i am able to see japanese characters when i open .doc or .txt using MS-WORD OR TEXTPAD LIKE APPLICATIONS.
Maybe you are looking for
-
I have owned my MacBook Pro for several months without having any problems with it. Recently I am having trouble with my Yahoo Mail. I can open it fine, but 2 out of 3 times when I try to actually open a message, the spinning ball comes on the scree
-
How can I see if iChat AV 3.1 certificate has been set up?
When I got the upgrade to either iChat AV 3.1 or OS 10.4.3, it told me that I would be receiving an email with a certificate in it for iChat AV to use to do encryption, since I am a .Mac member. The problem is, I never received such an email. In my i
-
VISTA color management and monitor calibration
Elements 7.0 VISTA Home Premium SP1 Nvidia 8600 Samsung SyncMaster 213T Canon XSi Multiple printers Since getting new system with Vista, I haven't been able to get a print that looks like my screen. I tried Costco today and everything was much darker
-
# Question Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets differ
-
Black and white with a touch of colour
Hey Folks, I need your help again please. I need to amend a shot in my film so that most of it is in black and white and only a part of it is in colour. This is the shot: Five guys walk into a room. The shot so far is in full colour. What I need to d