Csv file generation

Hi All,
Can we have a comma included in the csv generated file?
Suppose query contains comma
fieid1 field2
Pickle This pickle, must be sour.
sweet More sweets, leads to diabetes.
My csv should be of two fields not three. But i am getting the csv file in three field because of comma in field2. How Can we resolve it.
field1 field2 field3
Pickle This pickle must be sour.
sweet More sweets leads to diabetes.
Hi anybody can help on these??
Thanks

The same as you put any other character in the file...
As sys user:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
/As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                     ,p_dir IN VARCHAR2
                                     ,p_header_file IN VARCHAR2
                                     ,p_data_file IN VARCHAR2 := NULL) IS
  v_finaltxt  VARCHAR2(4000);
  v_v_val     VARCHAR2(4000);
  v_n_val     NUMBER;
  v_d_val     DATE;
  v_ret       NUMBER;
  c           NUMBER;
  d           NUMBER;
  col_cnt     INTEGER;
  f           BOOLEAN;
  rec_tab     DBMS_SQL.DESC_TAB;
  col_num     NUMBER;
  v_fh        UTL_FILE.FILE_TYPE;
  v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
BEGIN
  c := DBMS_SQL.OPEN_CURSOR;
  DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
  d := DBMS_SQL.EXECUTE(c);
  DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
  FOR j in 1..col_cnt
  LOOP
    CASE rec_tab(j).col_type
      WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
      WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
      WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
    ELSE
      DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
    END CASE;
  END LOOP;
  -- This part outputs the HEADER
  v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
  FOR j in 1..col_cnt
  LOOP
    v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
  END LOOP;
  --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
  UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
  IF NOT v_samefile THEN
    UTL_FILE.FCLOSE(v_fh);
  END IF;
  -- This part outputs the DATA
  IF NOT v_samefile THEN
    v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
  END IF;
  LOOP
    v_ret := DBMS_SQL.FETCH_ROWS(c);
    EXIT WHEN v_ret = 0;
    v_finaltxt := NULL;
    FOR j in 1..col_cnt
    LOOP
      CASE rec_tab(j).col_type
        WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                    v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
        WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                    v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
        WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                    v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
      ELSE
        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
      END CASE;
    END LOOP;
  --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
    UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
  END LOOP;
  UTL_FILE.FCLOSE(v_fh);
  DBMS_SQL.CLOSE_CURSOR(c);
END;This allows for the header row and the data to be written to seperate files if required.
e.g.
SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
PL/SQL procedure successfully completed.Output.txt file contains:
empno,ename,job,mgr,hiredate,sal,comm,deptno
7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
Adapt to output different datatypes and styles are required.

Similar Messages

  • CSV file generation issue

    Hello All,
    We are facing below issue during CSV file generation :
    Generated file shows field value as 8.73E+11 in output and when we are clicking inside this column result shown is approximate of the correct value like 873684000000. We wish to view the correct value 872684000013.
    Values passes from report program during this file generation are correct.
    Please advice to resolve this issue.
    Thanks in Advance.

    There is nothing wrong in your program, it is the property of excel that if the value in the cell is larger than
    default size it shows in output of that format.

  • CSV file generation with timestamp time details

    CREATE OR REPLACE PROCEDURE extract_proc AS
    l_rows number;
    begin
    l_rows := extract_function('select *
    from table1 where date1 between trunc(sysdate) and sysdate
    'MYDIR1',
    'test.csv');
    end;
    I have a procedure extract_proc shown above which create a CSV in the directory MYDIR1 in the unix.
    I would like to have the timestamp ie ddmmyyyyHH24:MI details in the CSV file name created. ie. to have a file name of test22072011.csv whenever it generates with respective timestamp to be prefixed or suffixed to the file number. Is ther any way to achieve this
    Pls suggest
    Many thanks

    Why don't you set your file name dynamically? Something like:
    AS
         file_name     VARCHAR2(50);
    BEGIN
         file_name := 'test' || TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS') || '.csv';
         extract_function(...,file_name);
    END;
    /

  • Problem in csv file generation

    Hi ,
    I am trying to spool a query in csv format using "col sep ,"
    but it is giving problem for the text values like example i have a sql_text column which gives the sql text. in the csv file which was generated the select statement columns are going to next column where the comma is invoked.
    is there any way to format while generating csv file that entire sql_text should come in one column
    Thanks
    Rakesh

    set echo OFF pages 50000 lin 32767 feed off heading ON verify off newpage none trimspool on
    define datef=&1
    define datet=&2
    set colsep ','
    spool querries.csv
    SELECT s.parsing_schema_name,
    p.instance_number instance_number,
    s.sql_id sql_id,
    x.sql_text sql_text,
    p.snap_id snap_id,
    TO_CHAR (p.begin_interval_time,'mm/dd/yyyy hh24:mi') begin_interval_time,
    TO_CHAR (p.end_interval_time,'mm/dd/yyyy hh24:mi') end_interval_time,
    s.elapsed_time_delta / DECODE (s.executions_delta, 0, 1, s.executions_delta) / 1000000 elapsed_time_per_exec,
    s.elapsed_time_delta / 1000000 elapsed_time,
    s.executions_delta executions, s.buffer_gets_delta buffer_gets,
    s.buffer_gets_delta / DECODE (s.executions_delta, 0, 1, s.executions_delta) buffer_gets_per_exec,
    module module
    FROM dba_hist_sqlstat s, dba_hist_snapshot p, dba_hist_sqltext x
    WHERE p.snap_id = s.snap_id
    AND p.dbid = s.dbid
    AND p.instance_number = s.instance_number
    AND p.begin_interval_time >
    TO_TIMESTAMP ('&datef','yyyymmddhh24miss')
    AND p.begin_interval_time <
    TO_TIMESTAMP ('&datet','yyyymmddhh24miss')
    AND s.dbid = x.dbid
    AND s.sql_id = x.sql_id
    ORDER BY instance_number, elapsed_time_per_exec DESC ;
    SPOOL OFF;
    exit;

  • Generation of CSV file

    Hi
    I am looking for the best approach to generate a CSV File extract from a database
    result set. I am currently using Workshop 8.1. Are there any controls that enables
    to perform this task.
    Thanks for your ideas
    Chrs
    Raj

    Hi
    I am looking for the best approach to generate a CSV File extract from a database
    result set. I am currently using Workshop 8.1. Are there any controls that enables
    to perform this task.
    Thanks for your ideas
    Chrs
    Raj

  • Error while uploading data through CSV File

    Dear All,
    While Performing following steps I have encounted error in BW 3.5.
    Step 1. Right-click Source System u2013 demo: flat file, and then select Create InfoPackageu2026.
    Step 2. Select the DataSource Material number (Master data), enter a description for the InfoPackage, and
    Step 3. Click the External data tab. Select options as shown in the screen. Enter a file name with a path.(CSV File)\
    While checking the preview I am able to see the values inside CSV file,
    But while Starting the scheduler to upload this data it is displaying following error=>
    Syntax error in template RSTMPLIR, row 0 (-> Long text)
    While checking performance assistant following detail is displayed.
    *Diagnosis
    Field "C_R_D" is unknown. It is neither in one of the specified tables nor defined by a "DATA"   ...
    System response
    The program generation was terminated.
    Procedure
    Correct the template*
    Can you guide how to eliminate this error?
    Points will be rewarded for your contribution
    Regards,
    Purav

    Flat File was in error.

  • Uploading a csv file through XDB FTP

    Hello
    I'm developing a project where i need to upload a big amount of data, contained in a CSV file, on the file system of a database server and it would be great if the FTP service provided with XDB could be used to achieve such a job.
    Does somebody know if XDB-FTP is able to upload files outside the XML repository and to upload them directly ( without intermediate steps that may generate heavy redo-log generation ) into a file-system on the database server?
    I'd like to consider other good alternatives too, now I'm using a different FTP server but I would like to avoid this dependency.
    Thanks
    Bye Alessandro

    I finally solved the problem using a Java class that launches a daemon listening for an incoming connection, that stores the first stream on a text file and then terminates.
    Definition of the java class
    create or replace and compile java source named SimpleFileTransfer as
    import java.net.*;
    import java.io.*;
    class SimpleFileTransfer {
         private int port;
         private int timeout;
         private ServerSocket serverSocket;
         private int buffSize = 8192;
         private String savingFilePath;
         public SimpleFileTransfer( int port, int timeout, String fname) throws IOException,SocketException {
              this.port = port;
              this.timeout = timeout;
              this.savingFilePath = fname;
              serverSocket = new ServerSocket(port);
              serverSocket.setSoTimeout(timeout);
         public void prepareToReceive() {
              System.out.println("Preparing to receive "+savingFilePath+" on port "+port);
              (new FileWriter()).start();
              //System.out.println("Prepared to receive");
         class FileWriter extends Thread {
              Socket socket;
              BufferedReader in;
              PrintWriter out;
              public void run() {
                   //System.out.println("Server started");
                   try {
                        socket = serverSocket.accept();
                        //System.out.println("Ready to receive");
                        in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                        out = new PrintWriter(savingFilePath);
                        char arr[] = new char[buffSize];
                        int readBytes;
                        while ( (readBytes = in.read(arr,0,buffSize)) >= 0 ) {
                             //System.out.println("Receive data starting with "+arr[0]);
                             out.write(arr,0,readBytes);
                             out.flush();
                        in.close();
                        out.close();
                   catch (IOException e) {
                        e.printStackTrace();
                   //System.out.println("Terminated");
         public static void activateService(int port,int timeout,String savingFilePath) /*throws SocketException, IOException*/ {
              try {
                   SimpleFileTransfer ft = new SimpleFileTransfer(port,timeout,savingFilePath);
                   ft.prepareToReceive();     
              catch (IOException e) {
                   e.printStackTrace();
         public static void main(String args[]) throws IOException {
              int myPort = 21000;
              if (args[0].equals("server")) {
                   activateService(myPort,10000,"C:\\\\D.dat");
              else (args[0].equals("client")) {
                   Socket s = new Socket("database_host",myPort);
                   BufferedReader in = new BufferedReader(new FileReader("D:\\\\D.dat"));
                   PrintWriter out = new PrintWriter(s.getOutputStream());
                   int readBytes;
                   int buffSize = 8192;
                   char arr[] = new char[buffSize];
                   while ( (readBytes = in.read(arr,0,buffSize)) >= 0 ) {
                        //System.out.println("Send data starting with "+arr[0]);
                        out.write(arr,0,readBytes);
                        out.flush();
                   in.close();
                   out.close();
    }Definition of PL/SQL wrapping procedure to activate the daemon on the database
    create or replace
    procedure ENABLE_TRANSFER (
              port in number,
              millis_timeout in number,
              saving_incoming_path varchar2
         ) is
    language java
    name 'SimpleFileTransfer.activateService(int,int,java.lang.String)';Activation of the daemon
    begin
         enable_transfer(21000,10000,'C:\temp\incoming.txt');
    end;Sample call to the main method of the class to work as client for uploading.
    prompt> java SimpleFileTransfer clientBye Alessandro

  • How to save excel report as CSV file with ActiveX

    Hi,
    I'm trying to save my excel test report as a CSV file using ActiveX and I'm having difficulty getting started.  I can't find an invoke node method that enables CSV file conversion. 
    Can anyone shed light on this?  See attached screenshot.
    Thanks
     

    As long as you are using the Report Generation Toolkit, there is no need to use ActiveX for the purpose of saving the Excel file -- Save Report will do that for you.  You can then export (as text) all of the Excel data and use the Write Spreadsheet File to make the .CSV file.  Here is how I would rewrite the final bits of your code --
    I cleaned up the wires around Excel Easy Table a bit.  You'll see I made a VI Icon for Replace Filename, which does (I think) a nicer job of self-documenting than showing its Label.  To make the filename, add the correct extension (.xlsx for Excel, .csv for CSV), use Build Path to combine Folder and Filename, and wire to Save Report.
    The next two functions add the Extract Everything and Write to Spreadsheet, using a Comma as a separator, which makes a CSV copy for you.
    Bob Schor

  • Script that enables mail users and kicks out two csv files

    I am working on a script that will mainly be used as a scheduled task to enabled mailuser by calling the update-recipient command. 
    But before it calls that command it will get for various issues that can cause errors.
    Missing PrimarySMTP
    Display name having a space at front or back.
    The external email address being blank.
    I have IF statements setup to check for those and then call a function that will save into an array the issue for that user. 
    Here is the script
    <#
    .SYNOPSIS
    Enable-MailUsers Synced Mail Users in the Exchange environment
    THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
    RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
    Version .9, 30 June 2014
    .DESCRIPTION
    This script mail-enables Synced Mail Users and creates a CSV report of mail users that were enabled.
    The following is shown:
    * Report Generation Time
    .PARAMETER SendMail
    Send Mail after completion. Set to $True to enable. If enabled, -MailFrom, -MailTo, -MailServer are mandatory
    .PARAMETER MailFrom
    Email address to send from. Passed directly to Send-MailMessage as -From
    .PARAMETER MailTo
    Email address to send to. Passed directly to Send-MailMessage as -To
    .PARAMETER MailServer
    SMTP Mail server to attempt to send through. Passed directly to Send-MailMessage as -SmtpServer
    .PARAMETER ScheduleAs
    Attempt to schedule the command just executed for 10PM nightly. Specify the username here, schtasks (under the hood) will ask for a password later.
    .EXAMPLE
    Generate the HTML report
    .\Enable-MailUsers.ps1 -SendMail -MailFrom [email protected] -MailTo [email protected] -MailServer ex1.contoso.com -ScheduleAs SvcAccount
    #>
    param(
    [parameter(Position=0,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Send Mail ($True/$False)')][bool]$SendMail=$false,
    [parameter(Position=1,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail From')][string]$MailFrom,
    [parameter(Position=2,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail To')]$MailTo,
    [parameter(Position=3,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail Server')][string]$MailServer,
    [parameter(Position=4,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Schedule as user')][string]$ScheduleAs
    # Sub Function to neatly update progress
    function _UpProg1
    param($PercentComplete,$Status,$Stage)
    $TotalStages=5
    Write-Progress -id 1 -activity "Mail enabled Objects" -status $Status -percentComplete (($PercentComplete/$TotalStages)+(1/$TotalStages*$Stage*100))
    #Sub Function create ErrObject output
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    # 1. Initial Startup
    # 1.0 Check Powershell Version
    if ((Get-Host).Version.Major -eq 1)
    throw "Powershell Version 1 not supported";
    # 1.1 Check Exchange Management Shell, attempt to load
    if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue))
    if (Test-Path "D:\Exchsrvr\bin\RemoteExchange.ps1")
    . 'D:\Exchsrvr\bin\RemoteExchange.ps1'
    Connect-ExchangeServer -auto
    } elseif (Test-Path "D:\Exchsrvr\bin\Exchange.ps1") {
    Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin
    .'D:\Exchsrvr\bin\Exchange.ps1'
    } else {
    throw "Exchange Management Shell cannot be loaded"
    # 1.2 Check if -SendMail parameter set and if so check -MailFrom, -MailTo and -MailServer are set
    if ($SendMail)
    if (!$MailFrom -or !$MailTo -or !$MailServer)
    throw "If -SendMail specified, you must also specify -MailFrom, -MailTo and -MailServer"
    # 1.3 Check Exchange Management Shell Version
    if ((Get-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue))
    $E2010 = $false;
    if (Get-ExchangeServer | Where {$_.AdminDisplayVersion.Major -gt 14})
    Write-Warning "Exchange 2010 or higher detected. You'll get better results if you run this script from an Exchange 2010/2013 management shell"
    }else{
    $E2010 = $true
    $localserver = get-exchangeserver $Env:computername
    $localversion = $localserver.admindisplayversion.major
    if ($localversion -eq 15) { $E2013 = $true }
    #Get date
    $filedate = get-date -uformat "%m-%d-%Y"
    $filedate = $filedate.ToString().Replace("0", "")
    #Get the valid users that are not mail-enabled
    _UpProg1 1 "Getting User List" 1
    #$Users = Get-mailuser -ResultSize unlimited -OrganizationalUnit "R0018.COLLABORATION.ECS.HP.COM/Accounts/AbbVienet/Users" | ?{$_.legacyexchangeDN -eq ""}
    $i = 0
    $output = @()
    $errOutput = @()
    $err = $False
    #2 Process users
    ForEach ($User in $Users){
    $i++
    _UpProg1 ($i/$Users.Count*100) "Updating Recipients" 2
    If ($user.ExternalEmailAddress -eq $null){
    _ErrObject $user.Name, "Missing External Email Address"
    ElseIf($user.DisplayName -NotLike "* "){
    _ErrObject $user.Name, "DisplayName contains a trailing space"
    ElseIf($user.DisplayName -NotLike "_*"){
    _ErrObject $user.Name, "DisplayName contains a Leading space"
    ElseIf($user.PrimarySmtpAddress -eq $null){
    _ErrObject $user.Name, "Missing Primary SMTP address"
    Else{
    #Disable EmailAddressPolicy on these users
    Set-Mailuser $User.Name -EmailAddressPolicyEnabled $false
    #pass to Update-recipient
    Update-Recipient $User.Name
    $LEDN = Get-MailUser $User.Name | Select {$_.LegacyExchangeDN}
    If ($LEDN -ne ""){
    $object = New-Object -TypeName PSObject
    $X500 = "x500:" + $LEDN.'$_.LegacyExchangeDN'
    $object | Add-Member -Name 'Name' -MemberType Noteproperty -Value $User.Name
    $object | Add-Member -Name 'x500' -MemberType Noteproperty -Value $X500
    $output += $object
    #Creating CSVFile Output
    _UpProg1 99 "Outputting CSV file 3" 3
    $CSVFile = "c:\scripts\Mail-enable\Mailenabled_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    If($err){
    $ErrCSVFile = "c:\scripts\Mail-enable\ProblemUsers_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    $errOutput | Select-Object Name, Comment | ConvertTo-CSV -NoTypeInformation > $ErrCSVFIle
    $Output | ConvertTo-Csv -NoTypeInformation > $CSVFile
    if ($SendMail)
    _UpProg1 95 "Sending mail message.." 4
    If($err){
    Send-MailMessage -Attachments $CSVFile,$ErrCSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    Else{
    Send-MailMessage -Attachments $CSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    if ($ScheduleAs)
    _UpProg1 99 "Attempting to Schedule Task.." 4
    $dir=(split-path -parent $myinvocation.mycommand.definition)
    $params=""
    if ($SendMail)
    $params+=' -SendMail:$true'
    $params+=" -MailFrom:$MailFrom -MailTo:$MailTo -MailServer:$MailServer"
    $task = "powershell -c \""pushd $dir; $($myinvocation.mycommand.definition) $params\"""
    Write-Output "Attempting to schedule task as $($ScheduleAs)..."
    Write-Output "Task to schedule: $($task)"
    schtasks /Create /RU $ScheduleAs /RP /SC DAILY /ST 22:00 /TN "Enable Mail Users" /TR $task
    The Problem is that when I look at the $errOutput I see things but when I pipe the $erroutput to convertTo-CSV I get this within the CSV file. I think its because I an calling a function to do the updating. But not sure.
    Jeff C

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Change alignment in CSV file

    Hi
    I am working on ABAP-CRM 7.0.I am generation a  CSV file by concatenating values with comma from a internal table data.
    I have text coloumn with left aligned. I need to change it  to right aligned.  How to do in abap while generating( while concatenating)  CSV file?
    thanks
    Logu

    Hi Logu,
    You can try this:
    [http://www.watto.org/program/abap/download/Z_RIGHT_ALIGN.abap|http://www.watto.org/program/abap/download/Z_RIGHT_ALIGN.abap]
    Regards,
    Leon

  • .CSV Files upload

    I have all my contacts in a web based database that can export .csv files. I want to upload this data to a fifth generation Ipod for contact management purposes.
    Does the ipod have a csv upload feature?
    How can do this?
    what is the easiest method? I would prefer not to upload to outlook b/f uploading to Ipod

    Welcome to Apple Discussions!
    Hm...Windows-formatted iPods take contacts from Outlook Express. Try taking your .csv files to Outlook for it to convert (I believe it will, however I'm not sure because I don't have it because I hate Outlook :P). If after Outlook takes your contacts, put your iPod into Disk Mode and when your plug your iPod in for synching with iTunes, you will see a folder that comes up with Contacts, Notes, and Calendar (the default name for the iPod drive is Drive F:, I believe). Take your contacts then from Outlook Express to your Contacts folder, that should work if all of the above goes smoothly.
    Be careful with Disk Mode though, it confuses a lot of people
    Hope this helps!
    rjl
    307

  • CSV File mapping deployment gets failed

    Hi All,
    I have one CSV file. I want to pull it into OWB 11.1.0.7 and load into Target Table.
    I followed the following steps, but facing issues at the time of deploying mapping
    VLD-1141: Internal errror during mapping generation+
    I created OTHER_MODULE In Files and imported CSV file from D drive. After that i Created Target table and mapped it.
    Mapping Validation is getting Sucessfull. While deploying the mapping facing facing above error...
    I tried 3 times by recreating mapping, but facing same error.
    How can we resolve this?
    Regards,
    Ava
    Edited by: Ava on Dec 4, 2010 1:11 AM

    Did you set the the database parameter "utl_file_dir" ?
    More see this issue on My Oracle Support:
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=949157.1
    Cheers
    Nico

  • How to save and open Text/csv file over APS

    Hi,
    I want to save(and open later) data from database block in text/csv file format over Application server, I did a lot of search here on Forms but didn't found a reasonable solution, Some one plz help me.
    Thanks and Regards, Khawar.

    As long as you are using the Report Generation Toolkit, there is no need to use ActiveX for the purpose of saving the Excel file -- Save Report will do that for you.  You can then export (as text) all of the Excel data and use the Write Spreadsheet File to make the .CSV file.  Here is how I would rewrite the final bits of your code --
    I cleaned up the wires around Excel Easy Table a bit.  You'll see I made a VI Icon for Replace Filename, which does (I think) a nicer job of self-documenting than showing its Label.  To make the filename, add the correct extension (.xlsx for Excel, .csv for CSV), use Build Path to combine Folder and Filename, and wire to Save Report.
    The next two functions add the Extract Everything and Write to Spreadsheet, using a Comma as a separator, which makes a CSV copy for you.
    Bob Schor

  • CSV File Handling Issue

    Hi All,
    We have IDoc to File(CSV) Scenario.
    Target Field Values have comma(,) character in it.  Field Separator : comma(,)
    Fields contain comma disturbs the File Generation Sequence.
    eg.,
    Header
    field 1, field 2, field 3, field 4
    field 1=test
    field 2=sample
    field 3=firstname,lastname
    field4 = address
    Output CSV:
    field1, field2 , field 3, field 4
    test,sample,firstname,lastname,address
    Field 3 Value has been splitted into two. How to handle this case. Kindly help
    Best Regards,
    Suresh S

    Hi,
    Double Quotes inclusion at Mapping level and following FCC Parameters helped to resolved that issue.
    However, we just need to exclude again the double quotes in the field before posting it to end Application which can be handled through FTP Module level configuration.
    Does anyone have idea about Standard Adapter Module which handle my requirement
    Best Regards,
    Suresh S

  • How can i update an existing item in sap using CSV file?

    Hi,
    i am trying to update an existing Item in SAP using a CSV file.
    in the message log i get an error message that the item already exists.
    what should i do in order to update the existing record?
    Thanks, Udi

    Hi..........
    I would sugest you to use Tab delimited file and choose proper option in order to update the itsm master in DTW......
    Regards,
    Rahul

Maybe you are looking for