File to csv
Hi,
My name is rambabu.Actually im trying to do a file to csv scenario.In the reciever communication channel im not able to see the document name,document type,recordset structure etc details.
And the source file is picked up but i am not getting the target file.So could u pls solve my probleb??
Thanks in advance
Rambabu M
Naveen,
Can you explain your problem clearly once again? Because it is confusing.
You said you are not seeing <i>In the reciever communication channel im not able to see the document name,document type,recordset structure etc details.</i> You will not see this parameters in receiver communication channel. You will see this in sender communication channel only.
Just go through this blogs. It is explained very clearly the steps need to be done:
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1315 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
---Satish
Similar Messages
-
Dear Friends,
Can anyone share blog to convert file from XML file to CSV.. which can handle multiple records.
my source structure is :
<ROOT>
<HEADER>
A1
B1
</HEADER>
<ITEM>
C1
D1
</ITEM>
</ROOT>
any inputs please ..
Thanks & Regards,
SumanHi,
What is the occurance of Header and Item based on that ur FCC will be decided.
refer the below link
Receiver FCC no need of Endseparator
File Adapter (Receiver) - Are we "really" sure about the concepts?
Receiver-
File Receiver with Content Conversion
chirag -
Need help in writing data to a flat file in .csv format
Hi All,
could you please show with a sample example to write data in .csv format using UTL_file.
The result of the refcursor i want to write to a file in .csv format.
How can i achieve this.
ThxHi,
There are two ways to acheive this.
First and which I prefer is creating a SQL script which will generate csv file at the specified location in CSV format. And then this SQL script can be called from your cron job similar to how you call stored procedure. Following is pseudo code that can be used -
set linesize 500
set echo off
set feedback off
set prompt off
set pagesize 0
spool <name of the csv file>.csv
<Your select statement>;
spool offPut select statement delimiting columns you want to use with ','. E.g. following query should create a CSV file named as abc.csv with one record and 2 columns delimited by comma. First column is ENO and second column is ENAME.
set linesize 500
set echo off
set feedback off
set prompt off
set pagesize 0
spool abc.csv
select ENO || ',' || ENAME from employee;
spool offSecond, you can write a PLSQL procedure and then call this procedure from cron job. There is a generic procedure shared by BluShadow some time back which is a very good example for this. Please refer to following link for this solution -
REF Cursor creating CSV files
I will suggest to use first method above if possible since it will be faster and less complicated in my opinion. Second method is recommended for scenarios where select statement is created dynamically and cannot be written during development.
Hope this solves your purpose.
Cheers,
Anirudha -
Issue while downloading file in .CSV format
Hi,
I need to download the file in .CSV format.
I hade used FM SAP_CONVERT_TO_CSV_FORMAT and then used GUI_Download.
Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the generated file gives the data of all the 5 fields in a single column.
Could you please help?Hi try wi th the following code.
TYPE-POOLS : truxs.
DATA: t_file TYPE STANDARD TABLE OF type_file.
data:t_conv_data TYPE truxs_t_text_data.
CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
EXPORTING
i_field_seperator = ', '
TABLES
i_tab_sap_data = t_file
CHANGING
i_tab_converted_data = t_conv_data
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\TESTCSV.CSV'
filetype = 'ASC'
write_field_separator = ' '
TABLES
data_tab = t_file
fieldnames = names
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22. -
Save as file format CSV in Excel
Does anyone know the correct syntax on this one?
I have an excel file which should be saved as CSV.
This is what I came up with, but it doesn't run.
tell application "Microsoft Excel"
activate worksheet "worksheet1"
set fileSaveName to get save as file format CSV file format filename
save as filename fileSaveName
if fileSaveName is not "" then
display dialog "Save as " & fileSaveName
end if
end tellIt's not surprising it doesn't run but that's not entirely your fault. Excel has pone of the funkiest dictionaries around - I think they forgot to read the AppleScript Implementor's guide and instead tried to bolt VB on instead.
Anyway, I digress...
I'm not sure what you expect this line to do:
set fileSaveName to get save as file format CSV file format filename
but it's completely invalid. For one, save as is a command verb, not a function, so you cannot get save as.
If you read the dictionary for Excel's save as command you'll find:
save as sheet ¬
filename unicode text ¬
file format as ¬
password unicode text ¬
write reservation password unicode text ¬
read only recommended boolean ¬
create backup boolean ¬
add to most recently used list boolean ¬
overwrite boolean ¬
save as local language boolean
so the first, required, parameter is the sheet to save followed by any number of the optional parameters. Given the above, I'd expect your script to look more like:
tell application "Microsoft Excel"
save as worksheet "worksheet1" file format CSV file format filename "whatever.csv"
end tell
which is completely bass-ackwards, if you ask me, but that's how it goes. -
I would like to save files (example:csv) from the subVI to the same folder of main VI? Please help! Thanks.
CP_AT wrote:
I would like to save files (example:csv) from the subVI to the same folder of main VI? Please help! Thanks.
I don't understand the problem. You write in the program where to save files, and it saves them there. Do you mean something else?
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ -
How to save an excel file as CSV with semi-colon as data separator?
We are creating a flat data file to load the flat file data to our BW system with Excel. When we save the file, there are three kinds of CSV types for selecting from the "Save as type" list box:
CSV (Comma delimited)
CSV (Macintosh)
CSV (MS-DOS)
There is no CSV (semi colon delimited) type. If we pick CSV (Comma delimted) as the type, then when clicking the "Preview ..." picture icon under the "DataSource/Trans. Structure" tab of the InfoSource for this flat file (with the CSV radio button checked the Data separator default is ";"), the File Upload Preview window shows the data is messed up that some columns of the excel flat file are combined into one column.
Since the save type we picked is "CSV (Comma delimited)", then we try to change the default Data separator from ";" to "," in the preview selection screen, but still not helpful!
How to resolve the above problem?
ThanksHi Kevin,
This "," is defined in your windows setting. If you want to have ";" as separator then go to control Panel, select Regional Options, go to Numbers Tab and define the List separator as ";". After that when you will save your excel file as CSV(MS-DOS) it will have ";" as separator. This will make sure that the amounts are not broken in to two different fields while loading.
Else if you keep "," as separator then you can also go into the Excel and define all number fields as Number without thousand separator.
Let me know if you have any doubts in this.
Regards,
Rohit -
File/Hadoop CSV input : Discovery of file fails
Hello ,
I'm trying to make the project as described in -
"Hands-on Tutorial: Building a Simple SAP Sybase ESP Project" for SAP Sybase ESP version 5.1 SP04.
I create a project where I add an input adapter of type - File/Hadoop CSV input.
Then in edit properties I enter the directory and the file name . In advanced tab I also set Has Header = TRUE.
Then I click on Schema Discovery and this raises error - "Failed to parse discovery file : parse of file failed ".
I've imported the sample "towermon "project from SCN and this shows the same error !
I've done this before on SP02 and it used to work . Of course the File/Hadoop CSV input adapter did not exist in that release.
Can't quiet figure out what I'm doing wrong . Is this a bug in the software ?Any ideas how to fix this ?
Best regards,
SatyHello,
Two things to check:
1) I don't know which file you are using from the "towermon" project. One of the CSV files (input-streams.csv) prepends the stream name and opcode:
isSensorStream,i,2011-06-30T17:00:00.000,32.835,-114.188,Tower,Yuma T70,1,104,0
The other CSV files do not. So you will have to toggle the "csvExpectStreamNameOpcode" parameter to true/false (the default is true).
2) There is a bug in the adapter discovery mechanism where it will return the error Failed to parse discovery file : parse of file failed ":
749503 - Schema discovery does not work for toolkit adapters when unnecessary properties are listed on the adapter.
So for example, in text authoring mode, if you have this:
ATTACH INPUT ADAPTER File_Hadoop_CSV_Input1 TYPE toolkit_file_csv_input PROPERTIES
csvExpectStreamNameOpcode = TRUE ,
dir = 'c:/temp' ,
file = 'input-streams.csv' ,
dynamicMode = '' ,
removeAfterProcess = FALSE ,
csvDelimiter = '' ,
csvDateFormat = '' ,
csvTimestampFormat = '' ,
csvHasHeader = FALSE ,
pollingPeriod = 0 ,
scanDepth = 0 ;
You have to delete the unnecessary properties:
ATTACH INPUT ADAPTER File_Hadoop_CSV_Input1 TYPE toolkit_file_csv_input PROPERTIES
csvExpectStreamNameOpcode = TRUE ,
dir = 'c:/temp' ,
file = 'input-streams.csv' ;
Then switch back to visual authoring mode and try discovery again.
Hope this helps.
Thanks,
Neal -
When to export a numbers file to csv the minus signs don't work with R
Friends,
I have trouble getting the statistic program R to read my exported CSV-files from Numbers.
The minus sign doesn't work, R reads it as a factoric input rather than numeric.
Does anyone have a tip how to reformat this?
JockeWayne, actually, I'm not sure but I think that factoric - or factorial is the denomination that R uses to say that somthing is rather a text than a numeric number - I'm pretty new to R.
But, anyway, we solved the problem but in a lillte bit of an awkward way.
The problem is that the minus sugns in numbers is percieved as dashes in R
(http://www.R-project.org, a free-ware statistical analysis program)
So where there is a numeric input with a minus sign R thinks it is a letter rather than a number.
We solved it by exporting the numbers file to CSV, opened it in text editor, copied the suspisios minus sign and pasted it into the search field to find all dashes/minus sign that didn't work and replaced them with a minus sign. After this operation, nothing different could be seen in the text but R saw the difference.
So this makes it difficult to explain by posting a screenshot - it looks the same but it isn't.
The funny thing is that the dashes that numbers use when to express a date are percieved as minus signs by R.
Can anyone understand what I tried to explain? And if so, is there a simpler way to do this? We have a lot of minus signs to export to R.....
best regard
Joachim -
Converting html file to csv file or excel file
Any body help me to convert html file into csv file or excel file using java.
I have no idea how to proceed.
is there any third party API's available.
Please guide me.
Thanks in advance
Vivekdev_vivek wrote:
I have no idea how to proceed.That could be due to the fact that there is no generic way to transform a html file into a csv or excel file.
Could it be that you're really interested in extracting specific values from the html file and then you want to export these values to csv and/or excel? -
Converting flat files to csv format
hi,
Iam converting flat files to csv format..the problem is that iam running a script for inserting values.while i run this script it works fine .but while i open this csv file the datas in the excel sheet is not coming in a single line that is for a particular record its moving to second line .there is a break for a single record.so there is a problem in conversion.can anything be done in it this to avoid the breaking of lines
thanks
RatheeshYOGenereally, you shouldn't convert from a lossy format AAC or MP3) to another lossy fomrat.
It's called loss because you lose information when you convert it.
If you only use these files on the computer and the iPod, I'd recommend AAC. Better quality at same bit rate as MP3. -
Saving the output of a .sql file in .csv format
Hi,
I am saving the output of a .sql file in .csv format. But the problem is , the record of few columns have "new line" character in it, so when it is getting saved in .csv format, those records are coming in multiple rows, but they should come in one single row in single block. Please advise how to overcome this problem.
Regards,
NirajHi Guys,
I guess, there is a misunderstanding.
He is talking about the issue caused as a result of the data containing a "CRLF" ( Carriage return Line feed ) .
That is mainly a data issue.
The query i presume, must be right.
I guess you should be able to fix it using some string functions.
Some thing similar to this
CREATE TABLE ASH (NAME VARCHAR2(10))
SELECT REPLACE(NAME, CHR(13)||CHR(10), 'ISH') FROM ASH;
SELECT REPLACE(NAME, CHR(10), 'ISH') FROM ASH;
SELECT REPLACE(NAME, CHR(13), 'ISH') FROM ASH;
depending on the type of new line whether it is CR or LF. or CRLF.
Regards
Ashish/- -
Retrieve online file as CSV via HTTPS using PL/SQL procedure
Hi all,
Situation:
Server A (not ORACLE)_: accesed via URL, generates dynamically a CSV file and returns to the requestor.
Server B (ORACLE)_: which runs the PL/SQL script. It is the requestor. Read the CSV and store it within ORACLE.
(1) I want to connect from Server B (ORACLE) to an external URL via HTTPS which generates dynamically the CSV file. Subdomain.domain it is the Server A which contains this CSV file.
https://dubdomain.domain/csv_generator.php?query=q1
(2) This file is downloaded to the Server B (ORACLE). A PL/SQL script executed in this machine do the task.
(3) After that, I load this CSV to an ORACLE table which a common CSV PL/SQL parser.
Doubts:
Is it possible to retrieve an online file (a CSV) dynamically created and hosted in a third party server (Not ORACLE) via HTTPS using a PL/SQL procedure executed in a ORACLE server? If the answer is yes, what technology could I use? Any ideas?
Thanks in advance,
YagoAn CSV example in {message:id=10158148}.
For https, two actions are needed in addition.
Firstly, the certificate of the https web server needs to be loaded in an Oracle Wallet on your database server. The wallet will have a specific directory location on the server, and will be protected by a password.
Secondly, the PL/SQL procedure making web call, needs to open the wallet (using <i>UTL_HTTP.set_wallet</i>) using the location and password. Example of that in {message:id=10820182}. -
DME output files in CSV format
Hi,
Can anybody please let me know whether we can get the DME output files in CSV format using program RFFOJP_L?
Your help and time will be really appreciate.
Thanks & Regards,
Niki Shah
Edited by: Niki Shah on Aug 5, 2009 10:14 AMNo it will not work. You need full Photoshop (CS5)
-
FCC parameters for File to CSV
Hi ,
I am facing some problem when i am doing a simple file to CSV .the file is picked up from source directory,but i am not getting it back in the target directory.I think the problem is with the Content Conversion parameter and the receiver communication channel.Can any one tell me the FCC parameter in the receiver CC.
Thanks.Hi-
Try this parameters,I also faced the same problem earlier.
item.endSeperator 'nl'
item.fieldSeperator ,
itm.fieldNames ** give all ur fieldsnames seperated by comma
MT.fieldSeperator '0'
Record.fieldSeperaotr '0'
Hope this helps you.. -
How to convert an .xls file to .csv file using procedure or function
Hi All,
My requirement is as follows.
1. In my database server(linux), my excel file will be loaded in a particular directory.
2. I need to load this excel file's data into an external table.
3. Can i load the data from an excel file to table directly? Or do i have to change the format into .csv, if so how to conver the .xls file to .csv file via backend.
Please help me.
Regards,
Sakthi.Have a look at this
PLSQL UTL_FILE problem
http://kr.forums.oracle.com/forums/thread.jspa?threadID=895803
Regards,
Yohanes 林贤汉
Maybe you are looking for
-
How to create a form on a tree structured table
Hi, I have a table that is designed to do a tree structure like: Table Name: test Fields: ID ParentID Description I created a browser (IR) (page 1) that calls a form (page 2) The form has the editing fields and at the bottom layer I have a reports r
-
For the life of me, I can't find out what size a photo is in terms of inches or how to change the size of the photo[s] so I can print them. I think I read somewhere to click edit, then click adjust. I don't see anything about re-sizing when I click t
-
Access USB Disk from Win XP connected to Router
Hello, My Airport express is plugged into cable modem router and so is a desktop running Win XP. Another 2 machines Macbook and Winxp laptop can access AE router, internet and the USB disk connected to AE. I am having trouble accessing the USB disk f
-
Re: (forte-users) SCM Hooks
I am still having trouble using the SCM hook. I have set everything up but when I integrate I get the following error message. Forte_cl0: SYSTEM ERROR: Cannot resolve the distributed reference for an object of class (qqrp_SCMServerProxy) named (site/
-
Time Dimension Does Not Aggregate to Q1 and Year Level
Hi All, Our fiscal year starts from Jul - Jun with standard quarter and year summation (no custom measure). Now we are facing problem where the account balance in period July and August do not add up to Q1 level and Year level, BUT account balance in