Hi ,related to CSV files out put.

hi all,
      I am taking out put in ALV and .CSV format (in unix path ) .
And the ALV out put is fine.
In one of the material description the text is like this :
my name is  (Activ.Foil+S,sr)
so for description in CSV it is taking like this : my name is (Activ.Foil+S
and for the next field the remaining text is going
i.e ,  for material group it is getting : sr)
and all the values are shifted by one field.
so the BW team facing the problem while extracting data ,
can any one please help me out how to solve this probelm.
Thanks and Regards.
C.Shamsundher.

Hi Prem,
In such case you need to change the delimitter or else remove the comma from Material description once you retrieve data from database into internal table.
REPLACE ALL OCCURRENCES OF ',' in WA_TAB-DESC with ' '.
Then move the material descritpion to the CSV file.
Best regards,
Prashant

Similar Messages

  • CSV , text file out put from flash exe

    Hi,
    I want to save data from flash exe to CSV file and text file
    . OS is XP and there will be no server connections. Is this
    possible. Please help.
    Thanks,
    Manu

    If th ecomputer you're working with has some server software
    running (Apache or IIS) you could save your data with php or asp.
    If you don't then you could use the Shared Objects (which works as
    a cookie, so you'll be e bit limited here). There was a function
    called MMSAVE back in FlashMX, don't know it that still works, that
    writes to a text file (but only in the development enviroment).
    Let me know a few more details and we'll find a way.
    Cheers
    Gorka

  • Related to CSV file data upload

    Hi all,
    I am new to the oracle technology.
    While uploading the data from csv file i got this error
    "SQL*Loader-350: Syntax error at line 4.
    Expecting keyword TABLE, found "xxgfs_gen_text_lookups".
    APPEND INTO xxgfs_gen_text_lookups"
    my csv file data is
    Invoice Match Options,,,Invoice,,
    Invoice Match Options,,,Receipt,,
    Invoice Match Options,,,Purchase Order,,X
    Invoice Type,A 00,Advance,Standard,Standard invoice,
    Invoice Type,B 00,Expense,Standard,Standard invoice,
    Invoice Type,2 00,Debit Memo,Credit Memo,Credit Memo,
    Invoice Type,2 20,EDI Debit Memo,Credit Memo,Credit Memo,
    Invoice Type,1 00,Invoice,Standard,Standard invoice,
    Invoice Type,1 01,Arrow Credit,Standard,Standard invoice,,
    Invoice Type,1 10,Recurring Payments,Standard,Standard invoice,,
    Invoice Type,1 20,EDI Invoices,Standard,Standard invoice,,
    Invoice Type,1 21,Imaged Invoice,Standard,Standard invoice,X,Default when entering from form
    Invoice Tax Code,XMT,DO NOT USE,,,,
    Invoice Tax Code,STE,DO NOT USE,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code
    If i am removing the blank row then also it is giving the same problem.
    If anybody face the same problem then please help me out.
    thanks in advance to u all for ur help.
    -Rajnish

    This is the Oracle Application Express (formerly known as HTML DB) forum. SQL*Loader related questions should be asked in the Database SQL forum (PL/SQL or Database General Forum (General Database Discussions but being a nice guy familiar with SQL*Loader I will "give it a go".
    The error message you are getting indicates that you have a syntax error in your control file. The syntax for the APPEND keyword is APPEND INTO TABLE table_name. So change "APPEND INTO xxgfs_gen_text_lookups" to "APPEND INTO TABLE xxgfs_gen_text_lookups".
    Mike

  • Csv report out put problem

    am trying to generate delimited format report on command prompt.
    out put is to huge and it gives error . To over come this when I turned page break to yes the report will be generated successfully but the out put number of rows are being doubled.
    suppose initially I am getting 100 rows , With page break set to yes the out put in
    report csv format will be 200

    Its not possible to export data directly from 6i to excel but you can export in text file and then open it in excel it will open very easily but keep it in you mind first eliminate all report groups.
    and
    There is a trick to capture Oracle Reports output (text output) into a excel sheet.
    Basic Steps :
    1) Set the output format for the report to XML
    2) Run the report to generate output.
    3) Save the output file locally as a XML file.
    4) Open the file using MS Excel.
    5) To make it more beautiful, you may use a MS Excel Template
    and read below may be this will be helpful to u
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=853876
    Reports 6i Matrix Output in Excel Format

  • Re-arrange the flat file out put in APD

    Hi Guys,
    I am loading data in APD,soruce is Query and target is Flat file.i want to re-arrange the out put file.
    Let me know what are the possible ways to re-arrange the columns in the out put flat file.
    Regards,
    Jayapal

    There are three ways to do this:
    1. Use Hide or Rename Columns (Projections) under Transformations in between the query and the flat file (recommended method)  
    Under the field selection tab..transfer the fields to the right pane in the order you wish to view thwm in.
    2.Drag and drop a routine
    Go to source fields tab
    Move the entries in the right to the bottom left 'Source Fields' pane.
    Then go to the Target field tab.
    Right Click on the row and click unfreeze columns
    Now you can drag & Drap and re-arrange the fields.
    Insert the routine in between query and Flat file
    3.  Change the order of the fields in the Query Definition( Not Recommended)
    Cheers!

  • Automator: Create new folders from .csv file and put images inside.

    I have a challenging Automator task to achieve. I need to
    1) create a set of folders labeled with the contents in column A of a csv file. (example: column A1 JoeBrown A2 SuzyBrown A3 JimBrown etc..) resulting in
    3 folders titled JoeBrown, SuzyBrown, and JimBrown
    2) take the image represented by an image number in column B of the same csv file and move that file into the folder that was created (example: A1 JoeBrown gets a folder created by the name JoBrown and column B IMG_1234.jpg is physically moved from within the same folder as the .csv file into the folder created by column A.
    Both the csv and img files would be in the same folder. I have the script to create a set of folders from a csv list just can't complete the moving of files based on the contents of column B.
    SUMMARY: I have a folder containing several images img_0001, img_0002, img_0003 etc. and a csv file that contains columnA a series of names and column B a series of jpg image numbers. I need to have a script that will create folders labeled whatever name is in column A (see the script below. it works great!) then move the images from column B to the folders generated from column A.
    The csv script is:
    tell application "Finder"
      set mgFolder to container of mgCSVfile as string
      repeat with x from 1 to count paragraphs of mgList
        set text item delimiters of AppleScript to ","
        set mgThisList to text items of paragraph x of mgList as list
        set text item delimiters of AppleScript to ""
        set mgTopFolder to item 1 of mgThisList
        if (exists folder mgTopFolder of folder mgFolder) is false then
          make new folder at mgFolder with properties {name:mgTopFolder}
        end if
        set mgNewFolder to (folder mgTopFolder of folder mgFolder) as alias
        repeat with i from 2 to count mgThisList
          if item i of mgThisList is not "" then
            set mgSubFolder to item i of mgThisList
            if (exists folder mgSubFolder of folder mgNewFolder) is false then
              make new folder at mgNewFolder with properties {name:mgSubFolder}
            end if
          end if
        end repeat
      end repeat
    end tell
    Thanks for any help that may come my way.

    This should work
    (assumes a true "," seperated file with only two items per line, i.e.: Test,Test.jpg):
    The Run Shell Script Action is:
    cd "${1%/*}"
    while read line         
    do         
         FolderName=${line%,*}
         ImageName=${line#*,}
         mkdir "$FolderName"
         mv "$ImageName" "$FolderName"
    done < "$1"

  • Related to CSV file .

    Hi,
       How do we read a CSV file using OOPS concept? And at the same time how can we upload it is there any special functions to do that?please reply, urgent.
    Thanks,
    Sindhu.

    Here is a slightly more dynamic approach.
    report zrich_0001.
    types: begin of ttab,
           fld1(20) type c,
           fld2(20) type c,
           fld3(20) type c,
           end of ttab.
    data: itab type table of ttab.
    data: wa type ttab.
    data: iup type table of string.
    data: xup type string.
    data: isplit type table of string with header line.
    field-symbols: <fs>.
    call method cl_gui_frontend_services=>gui_upload
      exporting
        filename                = 'C:test.csv'
      changing
        data_tab                = iup.
    <b>loop at iup into xup.
      clear wa.
      clear isplit.  refresh isplit.
      split xup at ',' into table isplit.
      loop at isplit.
        assign component sy-tabix of structure wa to <fs>.
        if sy-subrc <> 0.
          exit.
        endif.
        <fs> = isplit.
      endloop.
      append wa to itab.
    endloop.</b>
    loop at itab into wa.
      write:/ wa-fld1, wa-fld2, wa-fld3.
    endloop.
    Regards,
    Rich Heilman

  • Exporting a csv file out of numbers into mail or google mail

    I am trying to export a contact list in csv format to my google mail contacts. When i try to open the file it opens as an attachment on an email. When I click on the attachment it continues to open a duplicate email with the attachment. Help! This in in numbers btw.

    Hello
    - 1 - If I group the objects in a single one, I may paste the entire chart into Mail.
    - 2 - If objects are separated but selected together, only the graph object is pasted int0 Mail.
    - 3 - If I select the graphic object I may copy-paste it into Mail.
    - 4 - If I select only the block with labels I can' Copy it, I always get a bell signal.
    I tryed this 4th case hoping that I would be able to study its contents in AppleScript but, nada. I can't copy it.
    - 5 - Other missing feature, I can't drag and drop a Numbers objet out of the doc window. It seems that the Numbers team forgot to read Apple Human Guidelines.
    Yvan KOENIG (from FRANCE dimanche 7 octobre 2007 20:44:36)

  • Lots of choices but little data; file out puts

    Can someone please make some descriptions to help know when
    or why to choose any of these? Or perehaps link to descriptions?
    Which ones are the tiniest files?v Thank you

    Steve,
    It is all about the reason you are exporting.
    Some of those are good for exporting video to be edited in other programs. NTSC DV for example. That is the format shot by MiniDV cameras. So if you are editing DV AVI, that would be a logical output for further editing in other applications.
    Others, like H.264 are good for putting videos on web sites, or for YouTube or Vimeo.
    File size is pretty much set when you export to DV. It is just under 13GB for an hour of video based on a 25Mb/s data rate.
    Other codecs are more flexible. You can shrink the file size by shrinking the frame size, or lowering the frame rate, or most often, by lowering the bitrate. Scaling down the video has obvious results. Lowering the frame rate can cause stutter and is only good for certain footage, and reducing the bitrate starts to cause a lack of quality video.
    Perhaps if you told us what you wanted to do, we could provide more specific suggestions.

  • Can  file out put display array of messaged

    Hi Folks ,
    I am displaying the msg of RFC on a file .
    So far so good
    it is getting displayed propely
    like
    ID Msg
    1  Faliure .
    i am able to capture this msg and show in a file
    but in some cases the RFC
    returns more than one row
    like
    ID Msg
    1  Created log
    2  Sucess
    3  Trying to update
    4  Update
    Is there a way were i can display the msg in the same way in o/p file
    cureently my file only shows
    ID Msg
    1  Created Log

    Hi,
       In SXMB_MONI, is the source payload something like this?
    <ID Msg>
    <..>Created log<..>
    </ID Msg>
    <ID Msg>
    <..>Sucess<..>
    </ID Msg>
    If so,you will have to change the occurence of the    <ID Msg> header in the the target to 0 to unbounded, so that for every <ID Msg> created in the source a corresponding header is created in the target.
    Regards,
    Smitha.

  • Trace file out put line shows 18726 but wc -l lists only 165

    Friends,
    the output of the trace file show "18726 lines in trace file"
    when i run the linux command to count the number of lines
    $ wc -l filename.txt
    it shows only 165 lines.
    Also, the manual count shows 165 lines.
    so where are the remaining lines?
    the parameter for max file size is unlimited.
    thanks

    Even if you do not filter any result set (F.ex. SYS=NO), the tkprof output is generally an aggregate output (unless you specify AGGREGATE=NO). So a statement doing a 1000 fetches, would still show up as one.
    Even if you do specify AGGREGATE=NO, I doubt whether the line count in the original trace and converted text files will tally.

  • How to graph a CSV file in VB

    Hi, so I have a CSV file in my working directory and dont know how to load in into a graph in VB. I already loaded my chart into the form and its called "Chart1" with "Series1".
    The CSV has the following structure:
    Date Value1 Value2
    27/04/2012 45.1 60.1
    26/04/2012 45.2 60.2.. ..
    I cant figure out how to extract this data from the "*.csv" file and put in it a graph where the
    Date is the x axis and the
    Value2 is the y axis.
    Any code would be greatly appreciated!

    Is the CSV file data in reverse date order?  Your example includes only two lines, so the sequence is not clear.
    If so, then you want to add the items to the series by working from the end of the file towards the beginning of the file. That would plot the points along the x-axis in order of increasing date.  Is that correct?
    But then you say that you want to plot from the beginning to a certain date. Do you mean that you want to plot (reversed) from the beginning of the file to a certain nominated ending date? Or do you want to plot the items starting at the end of the file
    and working backwards through the file so that the plot starts at a nominated starting date?  I have assumed the former.
    To adjust the above code for these new requirements you should load the data into an object that you can manipulate to your requirements.  Then you need to separate the plotting from the file access.  A list is more suitable than an array.
    Dim Readings As List(Of Reading) = New List(Of Reading)
    Dim StartDate As Date = New Date(2012, 4, 24)
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim CurrentPoint As Integer = 0
    Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser("C:\Users\Public\Readings.txt")
    MyReader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited
    MyReader.Delimiters = New String() {","}
    Dim currentRow As String()
    While Not MyReader.EndOfData
    Try
    currentRow = MyReader.ReadFields()
    Dim D As String = currentRow(0)
    Try
    Dim Y As Double = CDbl(currentRow(2))
    Readings.Add(New Reading(D, Y))
    Catch ex As InvalidCastException
    If CurrentPoint <> 0 Then
    MsgBox("Item " & currentRow(2) & " is invalid. Skipping")
    End If
    End Try
    Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException
    If CurrentPoint <> 0 Then
    MsgBox("Line " & ex.Message & " is invalid. Skipping")
    End If
    End Try
    End While
    End Using
    Readings.Reverse()
    CurrentPoint = 0
    Chart1.Series(0).Points.Clear()
    For Each R As Reading In Readings
    Dim D As Date = CDate(R.Read_Date)
    If D >= StartDate Then
    Chart1.Series(0).Points.AddY(R.Read_Data)
    Chart1.Series(0).Points(CurrentPoint).AxisLabel = R.Read_Date
    CurrentPoint += 1
    End If
    Next
    End Sub
    That code uses the following class:
    Public Class Reading
    Public Read_Date As String
    Public Read_data As Double
    Public Sub New(ByVal Item1 As String, ByVal item2 As Double)
    Read_Date = Item1
    Read_data = item2
    End Sub
    End Class
    I know this thread is a couple years old but I tried this code and it works in Studio 2013 Community and it is very close to what I need. I want to make it a line chart and I want to have 4 series- Temp, Temp_SP, RH% and RH%_SP so I can log some trending
    data from an environmental chamber at work. Can someone help me out with this?
    Thanks,
    Dan

  • CSV File Creation

    I have 2 queries related to CSV file creation using ODI.
    1) I need to generate CSV file out of data contained in Oracle DB Table. When the data gets extracted into CSV file, it needs to be sorted on one particular column ( e.g Account_Number). Is this possible?
    2) When the data gets extracted in CSV format, the DATE is shown as ' 2008-06-06 00:00:00.0' . How can I get the date to be stored in just 'DDDD-MM-YY' format?
    Thanks
    KS

    check out the OdiUnloadSql component. I have used it to create a csv file, but have not gone into date format and sorting detail. you might have to look into that.

  • How to import CSV file which exists in specific directory

    Hi,
    There is one directory and new csv file is put there in daily batch. And the files have to be imported to DB.
    I tried to use DBMS_LOB package, but it doesn't work.. So, if anybody know some good sample code, please tell me.

    If you are on 10g (not sure which exact release I'm afraid) you might look at Chris Poole's XUTL_FINDFILES that lists the files in a directory using PL/SQL and DBMS_BACKUP_RESTORE.SEARCHFILES (all a bit undocumented as it seems to be provided as part of rman).

  • ODSI csv file creation from a data service that read data from many tables.

    Hi,
    We have few dataservices running in our enviroment. Now we have a requirement to save the data as CSV files on demand. My question, can we do this using ODSI 10gR3?
    I know we can read the csv file and create a physical data service. We have a compleded a use case that data comes in CSV file and saved to Oracle table when required.
    Now how to do the reverse is my question. I am not findind any help in documents for this. I have opend a case with Oracle support for this, looks like they are not understading and taking it as a issue in ODSI 10gR3.
    Please help.
    Thanks in advance.
    Rahul

    we have a requirement to save the data as CSV files on demand. My question, can we do this using ODSI 10gR3? Yes. But you have to write the java code to do it. Create a class with a static method that takes two arguments - an array of XmlObject (or of the specific type that extends XmlObject that is created by compiling the schema) and a filename - and writes the values of the children of the array elements into your CSV file.
    Put that class in a jar and put the jar in DSP-INF/lib, then create a physical datasource -> Java from that method, make sure you specify that resulting datasource procedure is a libraryProcedure.
    So you'll have to do a little homework on ODSI Java Functions with XmlObject arguments.
    - Mike

Maybe you are looking for