Temse File form PU12 in CSV Format

Hi,
I need to download Temse file in csv format. Normally Temse file contains data without any separator and it used to have layout based on the interface layout for example, first 10 digit employee no, next 2 digit year.
Is there any standard FM which can read the Interface Layout and separated the data with some separator. Or any FM which can give the interface layout information and I can split the data based on the information.
Br,
Piyush

Hi Piyush,
Please let me know how you got a CSV file from PU12
Regards,
Manu

Similar Messages

  • 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 AM

    Step 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 clickmaintain master data
    Click execute
    You can see the data load
    Hope this helps!!!

  • EXPORT to text or CSV format from a form

    Dear all,
    Could you please help me to export the data from my form to a text file or to a csv format. I am very new to forms.
    i need to export the data from the oracle form to a text file or CSV file format.
    I had created form named as form1.
    In form1 i have a block named as block1. In this block i have 4fields as field1, field2, field3, field4. using a tabe1 which has the same 4fields.
    This form is in tabular form.
    Example:
    In the form i have data like as below and i got this data from table1. I used a execute query to get the data from the table into this form.
    field1 field2 field3 field4
    raj 1234 abc 510
    dil 777 hi 787
    Now my requirement is i need to export this data into a file, when i click on a button(Export) it has to browse for a folder on my desktop and i have to name the filename to save the data.
    Please help me.
    Thanks in advance.

    This should be almost same as in your previous task for import data.
    Try this:
    DECLARE
       v_file_name   VARCHAR2 (100);
       v_file        client_text_io.file_type;  
       v_delimiter VARCHAR2(1) := ',';
    BEGIN
       v_file_name := webutil_file.file_save_dialog;
       v_file := client_text_io.fopen (v_file_name, 'w');
       GO_BLOCK ('block1');  
       FIRST_RECORD;
       LOOP
            client_text_io.PUT_LINE(v_file, :block1.field1||v_delimiter||:BLOCK1.field2||v_delimiter||:BLOCK1.field3||v_delimiter||:BLOCK1.field4);
        IF :SYSTEM.LAST_RECORD = 'TRUE' THEN
             EXIT;
        END IF;     
        NEXT_RECORD;
       END LOOP;
       client_text_io.fclose (v_file);
    END;

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to export a form that has Asian language in it to CSV file? Currently the CSV file shows [...] for Asian language characters

    How to export a form that has Asian language in it to CSV file? Currently the CSV file shows [...] for Asian language characters

    Hi George,
    Thanks! It does work in XML format. But since I would need to present the data in a spreadsheet, is there any other way I could go around it?
    Cheers,
    Su Ann

  • Runtime error in KEFC Transaction while uploading CSV format file

    Hi Experts,
    This is regarding Runtime Error while executing the KEFC transaction in R3D.
    It is working successfully while uploading the file in Text format. But there is run time error while uploading in CSV format.
    It showing "The transfer was terminated.However,content errors occured" .
    Please provide the solution.
    Thanks in advance.
    Regards,
    Priya.

    Hi,
    To upload a CSV file it is used FM:
    CALL FUNCTION 'TEXT_CONVERT_CSV_TO_SAP'
    EXPORTING
    i_field_seperator = ';'
    I_LINE_HEADER =
    i_tab_raw_data = lt_file
    i_filename = p_filename
    TABLES
    i_tab_converted_data = p_table
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2
    Please check what separetor this fm and your file are using. It should be the same.
    Regards,
    Fernando

  • Need help in writing data to a flat file in .csv format

    Hi All,
    could you please show with a sample example to write data in .csv format using UTL_file.
    The result of the refcursor i want to write to a file in .csv format.
    How can i achieve this.
    Thx

    Hi,
    There are two ways to acheive this.
    First and which I prefer is creating a SQL script which will generate csv file at the specified location in CSV format. And then this SQL script can be called from your cron job similar to how you call stored procedure. Following is pseudo code that can be used -
    set linesize 500
    set echo off
    set feedback off
    set prompt off
    set pagesize 0
    spool <name of the csv file>.csv
    <Your select statement>;
    spool offPut select statement delimiting columns you want to use with ','. E.g. following query should create a CSV file named as abc.csv with one record and 2 columns delimited by comma. First column is ENO and second column is ENAME.
    set linesize 500
    set echo off
    set feedback off
    set prompt off
    set pagesize 0
    spool abc.csv
    select ENO || ',' || ENAME from employee;
    spool offSecond, you can write a PLSQL procedure and then call this procedure from cron job. There is a generic procedure shared by BluShadow some time back which is a very good example for this. Please refer to following link for this solution -
    REF Cursor creating CSV files
    I will suggest to use first method above if possible since it will be faster and less complicated in my opinion. Second method is recommended for scenarios where select statement is created dynamically and cannot be written during development.
    Hope this solves your purpose.
    Cheers,
    Anirudha

  • Issue while downloading file in .CSV format

    Hi,
    I need to download the file in .CSV format.
    I hade used FM SAP_CONVERT_TO_CSV_FORMAT  and then used GUI_Download.
    Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the generated file gives the data of all the 5 fields in a single column.
    Could you please help?

    Hi try wi th the following code.
    TYPE-POOLS : truxs.
    DATA: t_file TYPE STANDARD TABLE OF type_file.
    data:t_conv_data TYPE truxs_t_text_data.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator          = ', '
      TABLES
        i_tab_sap_data             = t_file
    CHANGING
       i_tab_converted_data       = t_conv_data
    EXCEPTIONS
       conversion_failed          = 1
       OTHERS                     = 2.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                = 'C:\TESTCSV.CSV'
        filetype                = 'ASC'
        write_field_separator   = '  '
      TABLES
        data_tab                = t_file
       fieldnames              = names
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        OTHERS                  = 22.

  • How to parse CSV format files in CPO?

    Hi,
    Not able to read the csv format file in CPO.
    I need to loop through each line of the csv file, and retrieve each field by splitting with ','
    Can anybody help me in this?
    Thanks,
    Swati

    Use the "Read Table from Text" activity.  Here's a thread: https://supportforums.cisco.com/message/3570542#3570542

  • Tidal Oracle DB Adapter: Can we out the CSV format as a CSV file and send it out in a mail?

    I am trying to run a Select query from Oracle DB job in Tidal. The results of this query can be output-ed in a CSV format. But, the requirement is for me to send out a CSV file, not just data in CSV format.
    I've this same requirement with XML output format as well. Can we send out a "Completed Normally" mail with an XML output of the result of the Select query?
    Thanks in advance.

    Hi,
    I have a jpeg movie file 60 mins long and a text file tell me five time-lines for breaking the movie. For example, break the movie at 10:21, 16:05�
    The final output should be five small jpeg movie files. Each file contains a 90 sec (30 sec before the break time and 60 sec after the break time).
    Do you know any java library (jar) contain the library that can help me on programming this? Any existing source code? Any SDK for a movie editor can do that?
    Please help.
    Thanks
    Kenny

  • 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.

  • Saving a form in JSP as .CSV format

    Hi,
    I have created a JSP page that contains a textbox. i want to save that textbox value to the CSV FIle. .
    How can I save that information from the jsp page as a .csv format, and is there a way to save it straight into a .csv format?
    Thanks,
    subodh

    yes you can do it by using poi api which is downloadable at apache web site using the HSSF class u can insert a value from text field to .csv

  • Output report data to excel file format or csv format

    Is there any way to save softcopy of report output to excel file format or csv format.

    Hi,
    Regarding csv file format, i have no issues. The file is generating without any issues in using oracle reports without using any PL/SQL code.
    My requirement is to design oracle reports to generate excel (.xls) file with multiple worksheets. Each sheets are having many data and graphs(chart).
    Using oracle reports alone, how to achieve this.
    In oracle reports 10g 1.2.0 version, I tried by creating .rdf file but, it is generating single worksheet only.
    In oracle reports 10g 1.2.0 ver, I tried by creating .jsp file. For this first i am creating excel template about how my ouput column headings all that going to be with one sample hard coded data and save the excel file as web page.
    Eg employee.html.
    Next open the html file in oracle reports builder and double click the websource now, you will see the jsp tags, html and xml tags. Now include the contentType="application/vnd.ms-excel " and charset also.
    Next, include the <rw:foreach id="G_EMPNO_1" src="G_EMPNO">
    here insert the fieldl for each column by removing the hard coded values.
    close the tag
    </rw:foreach>
    Save the file as .jsp and deploy it in oc4 enabled folder (say, devsuite_home/reports/j2ee/reports_ids/web
    Start the oc4J server
    Run it in the browser http://server:port/reports/emp.jsp?useride=uid/pwd@db
    It is invoking the Microsoft excel with 3 sheets default and my emp table output in the first page.
    We can save this output file as .xls file by clicking file -> save as.
    1) The question is, it is working fine with Microsoft excel 97-2003 version. But for excel 2007, i am not able to create single html file like how 2003 save web page option.
    2) I found this in oracle getting started demo
    http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/index.html
    Which is more useful. This is what i am looking for.
    I done that in excel 2003 as per demo. But excel 2007 with reports 10g issues.
    Is there any demo for 10g with excel 2007
    3) For most of excel issues working fine with excel 2003 and 10g. But excel 2007 with 10g reports are issues.
    I want the excel output from oracle reports with multiple worksheet similar to the above demo.
    Thank you.

  • Download File In Csv Format

    Hi all,
        I want to create a file on the presentation server with csv format. i used gui_download function. The file is created but it is not csv format.
    it is urgent please can you help e out in this
    I used filetype as 'ASC' then CSV but in vain
    GV_ERR_FNAME = '
    SAM\ERRORFILE.CSV'
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = GV_ERR_FNAME
        FILETYPE                        = 'ASC'
        WRITE_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                        = GT_ERROR_TAX
    THANKX IN ADV

    Please check out this sample program.
    report zrich_0001.
    data: begin of itab occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          fld3(10) type c,
          end of itab.
    data: begin of iout occurs 0,
          rec(1000) type c,
          end of iout.
    parameters: p_file type localfile default 'C:test.csv'.
    data: file type string.
    start-of-selection.
    * Build the ITAB
      itab-fld1 = 'A'.
      itab-fld2 = 'B'.
      itab-fld3 = 'C'.
      append itab.
      itab-fld1 = 'D'.
      itab-fld2 = 'E'.
      itab-fld3 = 'F'.
      append itab.
      itab-fld1 = 'G'.
      itab-fld2 = 'H'.
      itab-fld3 = 'I'.
      append itab.
    * Build the output internal table from ITAB
    * Concatenate all fields into IOUT-REC
      loop at itab.
        concatenate itab-fld1 itab-fld2 itab-fld3 into iout-rec
                    separated by ','.
        condense iout-rec no-gaps.
        append iout.
      endloop.
    * Now Download
      file = p_file.
      call function 'GUI_DOWNLOAD'
           exporting
                filename = file
           tables
                data_tab = iout
           exceptions
                others   = 22.
    Regards,
    Rich Heilman

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

Maybe you are looking for