CSV formatting problems
When I spool my sql results to a csv file some of the fields will get broken up into several columns. For instance, I could have a string: "How are you?" and it would be broken between two columns like "How ar" in one column and "e you?" in another. Is there a way to resolve this issue?
Unfortunately I cannot give you the exact script or output. I can give you an idea though of a similar script. Here is an example Script (almost identical to what I do completely before the select statement):
--Set the linesize large enough to accommodate the longest possible line.
SET LINESIZE 80
--Turn off all page headings, column headings, etc.
SET PAGESIZE 0
--Turn off feedback
SET FEEDBACK OFF
--Eliminate trailing blanks at the end of a line.
SET TRIMSPOOL ON
SET TERMOUT OFF
SPOOL current_employees.csv
SELECT '"ID","Billing Rate","Hire Date","Name"'
FROM dual;
I use the same format in one of my books.
I use MS Excel to open CSV files.
As far as the output goes I can't really generate an output for you except I can tell you that yes you are partially correct when you say the remaining text appears on the next line. However, the remaining text often appears in one or two cells over. In other words, a value may be split across two cells and the rest of the values shifted into the next cell to the right or some of the values appear in the correct cell and the rest of the values may appear shifted to the right.
Similar Messages
-
Csv formatting problem!!!!!!!
Hi!
Sorry if this can be a stupid question....
I've a class that write a csv file.. the problem is that in this file there are value (like 0090 or 010) that must be managed always as string and not as number.
Any idea???
Thanks.
AleMS/Excel isn't very consistent on this. It you define a text field as 00050 in MS/Excel, it saves it in the .csv as 0050 but when you load the .csv file it gets converted to numeric 50.
This is an Excel "feeture", date processing is even worse.
If you save the file as a .txt, you get the import text wizard when you try to open it, this allows the user to define column types.
If you are opening this with a marco you could put a character on the start of the fields and then remove it using VBA code. -
Problem in exporting report in CSV format
Hi All,
I am using Crystal Reports. Following are details about it:
CR Developer
Product 8.5.0.217
*_Problem that I am facing:__*_
I can create report in .rpt format, it is working fine here. But while trying to export this report in CSV format, it gives report that doesn't contain any information.
Is it because I am missing something or it is a known issue?
Thanks and Regards,
AnandHi,
I too am facing the same problem.
The report was made in 8.5. I have exported the report & opened it in Crystal report 12.
I can export to PDF, RTF, DOC & Tab separated Test.
However when I export this report in .csv (legacy mode) I just get the header & when I export it in .csv (Standard) I get a blanck .csv file.
I have checked 'Isolate Report/Page sections' and 'Isolate Group sections'. Still no data in the report.
refreshed it too.
I contains sub reports, but not in the page header & footer (I think) & it does not seem to have cross tabs & OLAP grids.
Any help is appreciated.
Links to Screenshots:
Main Report:
http://picasaweb.google.com/lh/photo/yM9sBexKt5jW9soqaMmHjw?feat=directlink
One of the Sub-Report:
http://picasaweb.google.com/lh/photo/0ofa5sABakvZ-nFZp-JSMw?feat=directlink -
FM - gui_upload. Problems uploading CSV format file
Hi experts,
I am facing an issue here. I tried to upload a .csv format file using FM - gui_load, in the table LT_RAW all the information is all in one column and rest of the columns are empty.
How can i get the information to its respective fields?
below are my codes:
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = pv_file
READ_BY_LINE = 'X'
HAS_FIELD_SEPARATOR = 'X'
codepage = '4110'
IMPORTING
filelength = lv_filelength
TABLES
data_tab = lt_raw
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
I can only upload using .CSV format.Hi Suhas,
below is the new code that i used. now the data is not filled in only one column,
Instead it will fill up the max length of the field and continue the data in other field and fill up its max length of the field.
" my declaration of lt_raw and ls_raw
lt_raw TYPE TABLE OF ZCTD_MIGCUSTOMER,
ls_raw like line of lt_raw,
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = pv_file
codepage = '4110'
IMPORTING
filelength = lv_filelength
TABLES
data_tab = lt_raw
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17. -
Unable to save the data in a .CSV format
Hi All,
I am trying to pull some data with the help of the sql query from the database and then trying to save this string of data in csv file by using the following code as shown below.The problem iam facing here is that while the file Save as window opens stating to be saved as .CSV format but when i try to save it ,it doesnt givme a csv option ,only html option appears.Can any one help me on this..,,,,,,,,,,,,?
<%@include file="jtfincl.jsp" %>
<%@page session="false" %>
<%@page import="java.io.PrintWriter"%>
<%@page import="oracle.apps.ibe.util.RequestCtx"%>
<%@page import="oracle.apps.iri.iribe.postsales.IrIbeOrderSearch"%>
<%@page import="oracle.apps.ibe.util.*" %>
<%@page import="java.io.IOException" %>
<%
pageContext.setAttribute("_securePage", "true", PageContext.REQUEST_SCOPE);
pageContext.setAttribute("_guestNotAllowed", "true", PageContext.REQUEST_SCOPE);
pageContext.setAttribute("_unapprovedNotAllowed", "true", PageContext.REQUEST_SCOPE);
RequestCtx rCtx = RequestCtx.start(request, response);
int status = Session.checkContextValues(request, response);
if(RequestCtx.userIsAnonymous()) {
signin(out, pageContext, request, response, false);
return;
// Set the response type which in this case will be a .csv file
response.setContentType("application/csv");
response.setHeader("Content-disposition","attachment;filename=SearchResults.csv");
String queryStartDate = request.getParameter("queryStartDate");
String queryEndDate = request.getParameter("queryEndDate");
String queryField = request.getParameter("queryField");
String queryOperator = request.getParameter("queryOperator");
String queryValue = request.getParameter("queryValue");
String queryOrderByField = request.getParameter("queryOrderByField");
String showOpenOrdersOnly = request.getParameter("showOpenOrdersOnly");
IrIbeOrderSearch orderSearch = new IrIbeOrderSearch(
queryStartDate,
queryEndDate,
queryField,
queryOperator,
queryValue,
queryOrderByField,
showOpenOrdersOnly
orderSearch.initialise();
java.util.ArrayList results = orderSearch.getItemTrackerSearchResults();
out.println("The result array size is======="+results.size()) ;
// Output the results as the page resonse as a csv file
try
write(results, response.getWriter());
catch(exception e)
out.println("The stack trace is======="+e.printStackTrace()) ;
if(IBE_logEnabled) IBEUtil.log("iribeCOtdOrdSearchExport.jsp","Inside the exception"+e.toString);
%>
<%!
* This method will take a ResultSet and JspWriter object and print out the details of the ResultSet as a
* comma seperated value file.
* @param results
* @param writer
public static void write(java.util.ArrayList results, PrintWriter writer) {
if(results == null || results.size() == 0) {
writer.print("No Data Available");
return;
String [] data = null;
String output = "";
if(IBE_logEnabled) IBEUtil.log("iribeCOtdOrdSearchExport.jsp","Inside the write method");
for(int i = 0; i < results.size(); i++) {
data = (String []) results.get(i);
output = "";
for(int j = 0; j < data.length; j++) {
// If its not the last column
if(j != data.length - 1) {
output += formatField(data[j]) + ",";
// If it is the last column
} else {
output += formatField(data[j]);
writer.println(output);
writer.flush();
* Format a string value so that it becomes a valid field in a .csv file. This involves making sure that any null
* data is treated as an empty string, that any quotes are padded and if the file contains any commas that the
* field is surrounded by quotes.
* @param value
private static String formatField(String value) {
String output = null;
// Check for null values
if(value == null) {
output = "";
} else {
output = value;
// Pad any existing quotes
output = output.replaceAll("\"", "\"\"");
// If there is a space or commas then add surrounding quotes
if(output.startsWith(" ") || output.endsWith(" ") || output.indexOf(",") != -1) {
output = "\"" + output + "\"";
return output;
%>
<%!
void signin(
JspWriter out,
PageContext pageContext,
HttpServletRequest request,
HttpServletResponse response,
boolean reauth
) throws IOException, SQLException, FrameworkException {
String query = IBEUtil.passQueryString(request, null).toString();
String uri = request.getRequestURI();
String targetJsp = uri.substring(uri.lastIndexOf("/") + 1);
String ref = null;
if ("true".equals(pageContext.getAttribute("_securePage", PageContext.REQUEST_SCOPE))) {
ref = RequestCtx.getSecureFormAction(targetJsp);
} else {
ref = RequestCtx.getNonSecureFormAction(targetJsp);
if(!query.equals("")) {
ref = oracle.apps.jtf.util.Utils.encode(ref + "?" + query);
String redirect = RequestCtx.getSecureURL("ibeCAcpSSOLogin.jsp", "ref=" + ref + (reauth ? "&reauth=t" : ""));
// don't add the ref if the session expired and restarted
RequestCtx rCtx = RequestCtx.getRequestCtx();
if(rCtx.startRequestException!=null) {
redirect = RequestCtx.getSecureURL("ibeCAcpSSOLogin.jsp", "ibe_se=t"+(reauth ? "&reauth=t" : ""));
RequestCtx.end(request);
response.sendRedirect(redirect);
regds
manish
%>This would occur if you were using IE and the requested URL doesn't contain the filename part. The real web browsers would pick up the filename from the response header flawlessly.
Having said that, this kind of logic doesn't belong in a JSP. Use Java classes (Servlet, Bean, DAO). Further on, JSP/Servlet related questions should be posted in the JSP/Servlet forum. -
Download Internal Table in CSV format it gets downloaded in single column
Hi All
I am converting Internal Table in CSV format using the FM CONVERT TO CSV FORMAT and then downloading data using GUI_DOWNLOAD FM.
I have given separator as ','.
However when I download the data the file is opened in Excel and first 2 to 3 column are merged in to single column and there was separator shown ';'.
How to overcome this problem.
AmolhI..,
Check this code..
<b>
It first downloads the data in internal table to a CSV format file..
and then uploads the same data into another internal table and prints it..</b>
analyze this and use accordingly..
tables:
spfli.
field-symbols : <fs>, <fs1>.
data:
w_line(1000),
w_field(20) type c,
wa_spfli type spfli.
data:
begin of fs_spfli,
carrid type spfli-carrid,
connid type spfli-connid,
countryfr type spfli-countryfr,
countryto type spfli-countryto,
fltime type spfli-fltime,
end of fs_spfli.
data :
t_file like standard table
of w_line
initial size 0.
data:
t_spfli like
standard table
of fs_spfli
initial size 0.
data:
t_spfli_up like
standard table
of fs_spfli
initial size 0.
select carrid
connid
countryfr
countryto
fltime
into corresponding fields of table t_spfli
from spfli.
loop at t_spfli into fs_spfli.
do.
assign component sy-index of structure fs_spfli to <fs>.
if sy-subrc ne 0.
exit.
endif.
w_field = <fs>.
condense w_field no-gaps.
if sy-index eq 1.
w_line = w_field.
else.
concatenate w_line ',' w_field into w_line.
endif.
enddo.
append w_line to t_file.
endloop.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'D:\file.txt'
filetype = 'ASC'
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 = ' '
IMPORTING
FILELENGTH =
tables
data_tab = t_FILE
FIELDNAMES =
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.
clear t_FILE.
call function 'GUI_UPLOAD'
exporting
filename = 'D:\file.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = t_FILE
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
clear fs_spfli.
*constants :
*C_HTAB value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
loop at t_file into w_line.
do.
if w_line eq space.
exit.
endif.
split w_line at ',' into w_field w_line.
condense w_field no-gaps.
assign component sy-index of structure fs_spfli to <fs>.
<fs> = w_field.
enddo.
append fs_spfli to t_spfli_up.
endloop.
loop at t_spfli_up into fs_spfli.
do.
assign component sy-index of structure fs_spfli to <fs>.
if sy-subrc ne 0.
exit.
endif.
write <fs>.
enddo.
skip.
endloop.
reward if it helps u..
sai ramesh -
Hello everyone.
I have a minor problem in uploading CSV file to HTMLDB.
I don't know the exact reason, but HTMLDB threw
"ORA-20001: Unable to create collection: ORA-06502: PL/SQL: numeric or value error" whenever I tried to upload my csv file. after a few repetition of deleting potential problem-causing columns and trying again, I found out the following:
when numeric value and character value are stored together in single column, the upload fails. For example, we have a column which stores the employee number. The employee number is just a sequential numeric value, however temporary employees have 'T' in front of their employee number, so it begins something like T0032 and so on.
So, then, I tried to enclose all the employee numbers which start with numeric value with " character, but that would just simply take too long to do it manually, and excel does not seem to support enclosing the values with " when it's saving the spreadsheet with CSV format.
So, I'm kind of stuck right now.
Can anyone give me a good way to deal it?
THANK YOU!Thanks for updating my forum setting, my name is now clearly visible :-)
anyway.. I went back and tested couple of things...
It now appears that the problem is not caused from values inside the column... instead..
I believe the size of csv file with certain character set is the issue here...
This is a rough estimate, but file size larger than about 31.7 ~ 9kb caused errors IF THEY CONTAINED OTHER CHARACTER SET THAN ENGLISH.
here are informations about my setting:
1. Oracle database: initially 9.2.0.1 -> patched upgrade to 9.2.0.4
2. HTMLDB: 1.4.0.00.21c (downloaded from otn)
3. db character set : UTF-8
4. OS: windows 2000 (with up-todate service pack and
security patches and etc..)
5. system: toshiba tecra 2100 with 1GB ram and 40GB hdd
6. operation system locale: korean, south korea
I tried uploading many other files in both english and korean, which is my national language. The english csv file worked beautifully, without any file size limitations. However, when I tried to upload a file with
KOREAN characters in it, it failed.
Intrigued by this behavior I started to test the file upload with various excel files, and found out that..
1. english csv files caused absolutely no errors.
2. engilsh file with single korean character immediately
threw the error, if the size exceeded 31.8kb (or I
think the size is 32kb)
3. I tested korean file mixed english file, caused
the same error if the size exceeded 32kb.
the distribution of korean characters inside the
csv file did not matter, just don't go beyond 32kb!
Please reproduce this behavior (but I presume that some efforts will be required in order to reproduce this error perfectly, since it is not easy to obtain foreign OS in US regions.. is it?)
anyway, thanks for your quick reply, and
I hope this problem gets fixed, because in this manner,
I have to split my file into 32kb chunks!
- Howard -
Hi everyone,
I need your help to meet some requirement that I have to do and is the follow:
I need to printout a payment advice in csv format for a kind of vendors and this is going to be regardless of the payment method.
the problem that I have is that I use for the payment methods a standard payment advice then I have allocated this payment advice to the print programs RFFO*.
Any advice about this?
Thanks in advance,
FHReally? Could you share what you learned?
-
Saving a report with two query providers into .csv format
Hi,
I have developed a webi report which has two query providers. I have linked the objects from these two queries at the report level using merged dimensions. the report is running fine. When I save it in EXCEL or PDF it saves the same report, but when I try to save the report in .CSV format, the output of the second query provided is getting appened at the bottom of the report.
Has anyone encountered similar problem is so whats the solution for it.
For me business wants the report to be saved as .csv only as it acts as a source file to other application.Hi
please take a look at the explanation area in the following note
https://css.wdf.sap.corp/sap/support/notes/1417382
When saving Web Intelligence document as Excel format, the result is saved based on the report design.
When saving Web Intelligence document as CSV format, all data in the Data Provider are saved.
I believe that the behaviour you described is by design so there is not much to do about it. You can open a case by SAP support though asking if this changed in a later service pack (actual service pack version for XI R2 is SP 6).
Regards,
Stratos -
CSV format delete/remove space
Hi Friends,
I am facing a problem. I am UP LOADING data into CSV format. After upload file if i see into the file i am getting spaces in right side of the value. How can i remove the spaces or how the value move to right side of the colomn.
Regards,
KumarHi Rob,
Concatenate all your ITAB in to another itab.and send to function module.
ex: loop at itab into wa_itab.
concatenate wa_itab-f1 wa_itab-f2 wa_itab-f3 wa_itab-f4 ...
into wa_itab2.
append itab2 from wa_itab2.
endloop.
pass itab2 to function module.
i hope this will solve your problem. -
Ssrs 2012 export to comma delimited (csv) file problem
In an ssrs 2012 report, I want to be able to export all the data to a csv (comma delimited) file that only contains the detailed row information. I do not want to export any rows that contain header data information.
Right now the export contains header row information and detail row information. The header row information exists for the PDF exports.
To have the header row not exist on CSV exports, I have tried the following options on the tablix with the header row information with no success:
1. = iif(Mid(Globals!RenderFormat.Name,1,5)<>"EXCEL",false,true),
2. = iif(Mid(Globals!RenderFormat.Name,1,3)="PDF",false,true),
3. The textboxes that contain the column headers, the dataelelementoutput=auto and
the text boxes that contain the actual data, I set the dataelelementoutput=output.
Basically I need the tablix that contains the header information not to appear when the export is for a csv file.
However when the export is for the detail lines for the csv export, I need that tablix to show up.
Thus can you tell me and/or show me code on how to solve this problem?Hi wendy,
Based on my research, the expression posted by Ione used to hide items only work well when render format is RPL or MHTML. Because only the two render format’s RenderFormat.IsInteractive is true.
In your scenario, you want to hide tablix header only when export the report to csv format. While CSV file uses the textbox name in detail section as the column name, not the table header when you view the table. So if we want to hide the header row of the
tablix, please refer to the steps below to enable the “NoHeader” setting in the RSReportserver.config file:
Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS1111.MSSQLSERVER\Reporting Services\ReportServer \RSReportserver.config.
Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
In the <Render> section, add the new code for the CSV extension like this:
< Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
<Configuration>
<DeviceInfo>
<NoHeader>True</NoHeader>
</DeviceInfo>
</Configuration>
< /Extension>
Save the RSReportserver.config file.
For more information about CSV Device Information Settings, please see:
http://msdn.microsoft.com/en-us/library/ms155365(v=sql.110)
If you have any other questions, please feel free to ask.
Thanks,
Katherine xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
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/- -
How can I do a sum on a column in csv format? I am concatenating all columns in csv, so the resulting field is a string. Even if I convert it to a number, I am not sure how to sum a specific column. Any ideas?
ThanksYou would create the summary in the data model, and the value will be included in the output (whether that output be csv or whatever). If this doesn't help can you provide more details of the problem?
Thanks,
Danny -
How to download dynamic table data into CSV format
Hi,
I have data in dynamic table <it_data>, and I want to download that into CSV format.
so I tried to use FM SAP_CONVERT_TO_CSV_FORMAT but how to use this FM with dynamic table?
here <it_data> type standard table, we can pass this to I_TAB_SAP_DATA. but problem is with changing parameter. (TRUXS_T_TEXT_DATA), what type of table it should be?
and one more thing is <it_data> structure is also dynamic , depending on input the structure of <it_data> may vary.
Regards,
MrunalHi,
check this one may be help full to u...........
*Use FM SAP_CONVERT_TO_CSV_FORMAT and pass a Delimiter and ITAB. This
returns an Ouput_String
Convert Internal Table to ; delimited format
There is a filename parameter on this FM but I don't think it's used
call function 'SAP_CONVERT_TO_CSV_FORMAT'
exporting
i_field_seperator = Delimiter "default ';'
i_filename = Filename
tables
i_tab_sap_data = ITAB
changing
i_tab_converted_data = Ouput_String
exceptions
conversion_failed = 1
others = 2.
Regard's
SHAIK.
Maybe you are looking for
-
Is there anyway I can make a link on the "value" and not the label (detail form)
Hi there, I have a master-detail form (within an appl) based on 2 real tables in a master-detail FK relationship. The detail block displays 6 rows. Currently you can only place a link on the label on top of the block. What I need is to make let's say
-
Files are not being copied to the bin-debug folder
All my assets swfs are in a folder named "assets/swf" under the "src" folder. The "Copy non-embedded files to output folder" is checked. BUT the folder is not being copied to the bin-debug... This is also true for Icons folder (Also under "src") Any
-
Plant field in vendor master.
Hi All, I have 2 systems. 1.DEV 2.QTY while creating a vendor for account group 007(plant),the plant field is not appearing in additional pur data of vendor master in QTY system but its apearing in DEV system, I checked config settings and its same
-
Hi ! Is it possible to mask more than one movieclip in action script. I see that's possible in the gaphical author environment. _root.attachMovie("mask_mc","mask_mc",10); _root.attachMovie("a_mc","a_mc",0); _root.attachMovie("another_mc","another_mc"
-
How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?
How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?