Convert Sap to csv format
Hi,
I have to convert my report output to csv format.For that i used FM SAP_CONVERT_TO_CSV_FORMAT.
But it is not giving me the output.
Could you please give me the other solution.
Regards,
Amar
HI Amar ,
Check this
Convert to *.CSV format
hope it helps you.
Thanks!
Similar Messages
-
Downloading Excel File in CSV Format
Hi All,
How can I Download a file in .CSV Format?
I am using the below shown code.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Documents and Settings\sandeepp3\Desktop\sample.csv'
FILETYPE = 'DAT'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ','
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = ITAB
FIELDNAMES = HTAB
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
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I am getting the field separator as Tab(SPACE).
Please AdviseHi Anil,
Try this way.
REPORT ztest_notepad.
"Declarations
TYPE-POOLS :truxs.
DATA : it_download TYPE truxs_t_text_data.
DATA: BEGIN OF it_data OCCURS 0,
arbgb TYPE t100-arbgb,
msgnr TYPE t100-msgnr,
text TYPE t100-text,
END OF it_data.
START-OF-SELECTION.
"Select Data
SELECT * FROM t100
INTO CORRESPONDING FIELDS OF TABLE it_data UP TO 200 ROWS WHERE sprsl = sy-langu.
"Convert SAP to CSV format
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
i_field_seperator = ';'
TABLES
i_tab_sap_data = it_data
CHANGING
i_tab_converted_data = it_download
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc = 0.
"Download data using GUI_DOWNLOAD
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\test.txt'
filetype = 'ASC'
TABLES
data_tab = it_download.
ENDIF.
Thanks
venkat.O -
Convert .SLOAS file format to .CSV format
Dear All,
I am downloading the file in .SLOAS format from my program. I want to convert the file to .CSV format.
Can someone please let me know how can i do it.
I have already tried GUI_UPLOAD and SAP_CONVERT_TO_CSV_FORMAT, but of no use.
Regards
ArchitHi,
This is the project requirement that first the data should be downloaded in a file with .SLOAS format, then we have to convert it to .CSV format and use it further.
Do you know any technique or Function Module using which we can achieve this functionality.
Thank You
Archit -
How to convert XML attributes to CSV format at receiver?
Hi,
I have xml file.
<x>
<A a=1 b=1 c=2 d=4>
<B b=1 e=4 f=5>1.2</B>
<B b=5 e=6 f=5>1.001</B>
<B b=7 e=4 f=5>1.2000</B>
</A>
</x>
I need to convert it to csv format file.Can anyone help me on this?
Thanks,
Pachika.HI all,
Please ignore this I given in detail problem in next thread. -
Creating DataSources for File Source Systems in csv format in sap bw 7.0
Hi,
Please explain how to Create DataSources for File Source Systems in csv format in sap bw 7.0. WITH SCREENSHOTS
Thanks
JINI
Edited by: Jini Jayan on Jun 11, 2008 11:36 AMStep 1. Select Source systems under Modelling in the left panel. In the right panel, right-click Source systems and select Createu2026.
Step 2. Select the FileSystem, manual meta data, data using file inte option, and then click to continue.
Step 3. Enter a name and a description for the source system, and then click to create the source system.
Now create an application component
Step 1. Select InfoSources under Modelling in the left panel. In the right panel, right-click InfoSources and select Create application componentu2026.
Step 2. Enter a name and a description for the application component, and then click to continue. (BW automatically adds a prefix of "Z" to the technical names of application components, unlike the naming system used for other BW objects.If u give the name as AC_DEMO it will be saved as ZAC_DEMO in the system.
Now create infosource
Step 1.Select InfoSources under Modelling in the left panel. Right-click the newly created Application Component , and then select Create InfoSourceu2026.
Step 2. Select the option Master data/texts/hierarchies, and then click to continue.
Step 3. Enter your infoobject name, and then click to continue.
Now you will be asked
Infosource(name) assigned to Appln component(name)?
Click continue
Now go back to workbench and see the Infoobject listed under the Application component name (under Infosource)
Right click the infoobject name and select Assign Datasource
Enter the Infoobject name as Infosource name and the source system name and continue
Now you ll get datasource assignment confirmations for Infosource_ATTR and Infosource_TEXT for master data and text.
Click yes and continue
Now you ll be taken to the Infosource(master data) change screen
Source system name will be given
Below that u need to give the datasource name u2026.._ATTR
Click Activate.
Now Click the tab transfer rules
Copy the communication str infoobject names to an excel sheet
For ex if your infoobj are IO_MATNUM and IO_MATNAME (material number and material name) copy and paste as
IO_MATNUM IO_MATNAME
MAT001 TEA
MAT002 COFFEE
MAT003 SUGAR
GIVE YOUR DATA IN THE EXCEL. AND CLICK File Save As CSV(comma delimited) and save to ur system. Give file name as something like infosourcename_ATTR.csv
Now back to the Infosourcechange screen
Source system name will be given
Below that u need to give the datasource name u2026.._TEXT
And activate
Now Click the tab transfer rules
Copy the communication str infoobject names to an excel sheet
GIVE YOUR DATA IN THE EXCEL. AND CLICK File Save As CSV(comma delimited) and save to ur system. Give file name as something like infosourcename_TEXT.csv
Now create Infoobject to load data
Go to Infosourceu2014Appln Componentu2014InfoObju2014SourceSystemu2014rightclick->create Infopackage
Step 2. Select the DataSource Material number (Master data), enter a description for the InfoPackage, and then click to continue.
Give infopackage description as Infopackage:InfoObj_ATTR
Now take care to select the first item in datasource and click continue
In the next screen click external data tab
Click client workstation
Datafileu2026.file name (browse to give the file u saved in ur system)
There will be an option to remove header data from file.remove 1 row.
File typeu2014csv file
Now click schedule tabu2014start dataload immediatelyu2014start.
In the same way
Go to Infosourceu2014Appln Componentu2014InfoObju2014SourceSystemu2014rightclick->create Infopackage
Step 2. Select the DataSource Material number (text)enter a description for the InfoPackage, and then click to continue.
Give infopackage description as Infopackage:InfoObj_TEXT
Now take care to select the second item in datasource and click continue
In the next screen click external data tab
Click client workstation
Datafileu2026.file name (browse to give the file u saved in ur system)
There will be an option to remove header data from file.remove 1 row.
File typeu2014csv file
Now click schedule tabu2014start dataload immediatelyu2014start.
Click the icon below admn workbench to go to monitor and check the load
Or you go back to Infosourceu2014Appln Componentu2014InfoObju2014right clickmaintain master data
Click execute
You can see the data load
Hope this helps!!! -
How to convert from line chart data to CSV format
Hi ,
I am using Flex 3 and AS.
I am getting data from MS SQL and display the data as line
chart this is ok.
But i want to convert this line chart data to CSV or .xsl
format.I find one example in fourms the from data grid to CSV
For this URL is
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php
But i want Line chart to CSV.Please help me.Line chart is a just a visual representation of some data
that's sitting in your database. Isn't it? You load this in Flex,
probably using HTTPService class, and pass it to some chart object.
Now when use says that she needs it in CSV format, you're
gonna have to send another request to the server to produce the
same data, convert into CSV or XLS format and let user download it.
Of course, if use doesn't want to download, you don't have to
go to the server, at least for CSV format. You can convert the same
data that used plot the chart to convert to CSV.
Am I missing something here?
ATTA -
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. -
Converting excel source into csv format
Hi,
I have to convert excle source into csv format.
my excel source has around 40000 records.
Please give me the suggestions how to do it.
Thanks,
VenkatOr, if this is going to be an ongoing issue with new files needing to be converted, there are several utilities out there of various quality and price which can be considered. A quick google turned up a whole host of options for various platforms.
I can't comment on any of them as I haven't used them, but clearly there are several converters with command-line interfaces which should be capable to be utilized as an external command in your process flow.
Like: http://www.softinterface.com/Convert-XLS/Features/Convert-XLS-To-CSV.htm
Heck, if you really want to have fun and DIY, I know that there are native Perl Excel modules, so you could always build your own and make it cross-platform! -
Passwords in CSV format. How do I convert to HTML for import into Firefox
Converted Norton Identity Safe passwords to CSV format. Import into Firefox needs file in HTML format. What is that format?
Password Exporter also supports the XML format.
You can check the format to see what is easier to convert.
* Password Exporter: https://addons.mozilla.org/firefox/addon/password-exporter/ -
i have my contacts in csv format.how it convert to vcf?
Download the Contacts Backup app from the store. It will backup your contacts in VCF format to skydrive.
Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem.. -
Issues when sending mail from sap to outlook in .csv FORMAT
hI all,
Im using 'SO_NEW_DOCUMENT_ATT_SEND_API1'
FM TO send a mail from SAP to user with attachment in .csv format but the data isnot getting displayed correctly ...
I thnk it is competely displayed in ASCII format ..
Can anybody give me suggestionson the same
thanksHi.
How is the user opening the .csv attachment?
I'm guessing that it should be opened with Excel.
Are you using an attachment document type of 'XLS'?
If not, then the attachment won't be opened with Excel unless the user right-clicks on it and does 'Open with'.
Even then, the user will have to use the Excel import wizard.
Is a .csv file what you want?
You can use the ABAP OLE stuff to write a native Excel file that can be attached to an email.
Or you can (at the cost of more work) write the Excel file (still type XLS) using XML, which gives you more control, and still works when your program is run in the background.
John -
Hi All,
I have scenario wherein I will be getting data from external PI system to my PI system through XI adapter so at external PI end receiver adapter will be XI adapter and at my end sender adapter will be XI adapter.
Now through XI adapter i will be getting CSV data in single field which i have to update in my SAP. For this I flow would be as follow
External PI to MY PI , my PI to my SAP ECC.
Since data coming through XI adapter would be in single field and of CSV format, I will have to convert this data into a structure say ABC having 30 odd fields. I have made inbound and outbound interface for same. Now once i have xml structure i will like to map this xml structure to my proxy structure which will hit my SAP ECC. Now the issue I am facing is there are 2 scenarios now 1st Converting CSV data to XML structure using Java/ABAP mapping and second is XML structure mapping to proxy structure. Both these interfaces are independent of each other. Whereas I want that once I have got CSV data field it should be converted into xml and then proxy structure.
Please suggest how this could be achieved? Also if i will use ABAP mapping can i call second outbound interface inside it?Hello,
Both these interfaces are independent of each other. Whereas I want that once I have got CSV data field it should be converted into xml and then proxy structure.
I'm not sure if I get your question correctly. You can actually link these two in your operation mapping:
1. Specify the csv structure as your Source Interface
2. Specify the proxy structure as your Target Interface
3. Use two mappings in this order: Java/ABAP Mapping, then normal message mapping. Take note that in your operation mapping ,you can add additional mappings by clicking the add icon.
Hope this helps,
Mark -
Hi folks,
I have uploaded the excel sheet with tab delimited format successfully, Please let me know hoe to upload the excel sheet with csv format.
thanks in advance.Hi,
Are you using WD4A?
You can't converted direclty to a CSV file.
you have to use different FM which given by SAP itself to convert in CSV format.
SAP_CONVERT_TO_CSV_FORMAT
-Rick -
How to upload a PDF file and convert it to OTF format
We have come across rquirements like converting OTF to PDF but my requirement is to read a PDF file in SAP and convert it to OTF format for printing.
Can anyone please help me with the Function Modules to do so.Hello,
Try the following FM:
CONVERT_OTF Convert SAP documents (SAPScript) to other types.
Example:
CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
Hope this helps.
Reward if helpful.
Regards,
Vasanth -
Issue with downloading in CSV Format
Hi SDN,
i used the FM's SAP_CONVERT_TO_CSV_FORMAT - to convert 2 CSV Format and
GUI_DOWNLOAD - to download the data 2 presentation server.
i'm able 2 open the file in CSV format,but the data is displayed in single column only.
how 2 display in different columns ?
for example the ITAB contains empno, empname and designation.
I want it 2 display as :
EMPNO EMPNAME DESIGNATION
1 xxxxx Developer
2 yyyy TL
with tab delimiter.
now the values are displaying as:
EMPNO;EMPNAME;DESIGNATION
1;xxxx;Developer
2;yyyy;TL
pls suggest.
awaiting ur early response.
Regards,
Suman.Hi Max,
the issue is when opening the CSV file.
all the contents are coming in a single column. for ex.,
Col 1 Col2 Col3
Row1 Heading1,Heading2,Heading3
Row2 a1,b1,c1
Row3 a2,b2,c2
Row4 a3,b3,c3
I'm not sure whether this format is correct ?
what I'm expecting is like the one below, with a tab delimiter.because after runing the ALV report when I export 2 Excel in CSV format it is displaying like this.
Col1 Col2 Col3
Row1 Heading1 Heading2 Heading3
Row2 a1 b1 c1
Row3 a2 b2 c2
Row4 a3 b3 c3
Regards,
Suman.
Maybe you are looking for
-
Hey Guys I create the characteristics and it has multiple Value .Some Value has subordinate value exist ...When I am going in AUSP table it's just showing me the subordinate value not the main characteristics value. For example If I have a characteri
-
10gR2 Transportable Tablespaces Certified for EBS 11i for Migration
Guys, Good news is Now 10gR2 Transportable Tablespaces Certified for EBS 11i, Here is Steven chan blog link, I know personally how much i struggled with expdp and impdp on linux, it sounds good news who is migrating 11i . http://blogs.oracle.com/stev
-
GB09 & iMac 3.06 GHz Intel Core 2 Duo, 4GB 1067 MHz DDR3 Whoa!
Monday my old eMac 1 Ghz PPC died. Luckily today the new iMacs came out so I purchased a 24" iMac 3.06 GHz Intel Core 2 Duo, 4GB 1067 MHz DDR3. 1 Terabyte internal. When I opened GB09 it was so fast my eyebrows singed! OUCH! Now I don't have to use e
-
Actions not working in LEAD TRANSACTION
hi all we are working on CRM 5.0 standalone system. i have a problem that actions assigned in LEAD transaction isnt working.i have checked all the customising that in action profile workflow is attached and action is assigned to the transaction but w
-
FCC reciver adapter - HeaderLine query
Hi there, I'm working on the following scenario: Sender: IDOC Reciver: FTP(.csv File) For receiver, the structure has to be Value1 Value2 123 456 while configuring the CC channel for reciver i used names.addHeaderLine and names.headerLine bu