File to Excel using Xi

Hi All,
I am having new requirement  for creating an interface  in which file is comming SAP ( R/3) to XI then XI need to sned it to the receiver in EXcel sheet. I have referred lot of forums most of them are saying that either i need to use convertion agent  or using adapter module ( Using Jexcel API) or xslt mapping. But in my know ledge in the receiver file adapter we can create the excel file by  choosing content conversion with .csv extension and tab delimited file. Please correct me me if i am wrong and please guide me which one is the easy way to generate excel file form the xi at the receiver end.

> But in my know ledge in the receiver file adapter we can create the excel file by  choosing content conversion with .csv extension and tab delimited file.
Ask the customer first, what exactly he wants. A real excel sheet or a csv file.

Similar Messages

  • Issues while opening a UTF16 encoded .csv file in excel using c#

    When I tried to open a UTF8 encoded
    .csv file in excel through my c# code, doing something like this:
    m_excel.Workbooks.OpenText(newPath, Comma: true);
    That works fine. Can anyone tell me what to do if I had to open a UTF16 encoded
    .CSV file similarly. All options i tried either fails or print incorrect Unicode characters.
    So somehow we have to specify the encoding format (of the file to be opened i.e .CSV)  while opening using excel functions, which i am unable to figure out.
    Please help me. I am badly stuck here.
    Thanks in advance.

    Hi Jb9952,
    There is an Origin parameter in
    Workbooks.OpenText method, you need to specify this parameter. You could try to use xlWindows (Windows ANSI).
    To get the specify file origin value, you could get the detail code through Record Macro feature in excel.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Removing useless contents of an unsorted text file in excel 2013

    hi friends
    i am new to excel & there is an urgent need for me, that's why i pose this question which may appear simple.
    in my server i have redirected the output of a command help into a text file (c:\myhelp.txt)
    i have pasted some initial lines of that text file here:
    The following is a list of unattend parameters for promotion (default values are enclosed in <>):
    /AllowDomainControllerReinstall:{Yes | <No> | NoAndNoPromptEither}
    Specifies whether to continue installing this domain controller despite that a domain controller account with the same name is detected. Specify Yes only if you are sure that the account is no longer in use.
    /AllowDomainReinstall:{Yes | <No> | NoAndNoPromptEither}
    Specifies whether an existing domain is recreated.
    /ApplicationPartitionsToReplicate:""
    Specifies application partitions to be replicated in the format of "partition1" "partition2". If * is specified, all application partitions will be replicated.
    now i need to import this text file into excel 2013 so that i be able to remove comments & descriptions ( in fact anything except command switches, which their characteristics is that they begin with an
    slash & there is no space between their words).
    in other words i need to preserver strings which start with an slash.
    for example i need only the following strings remain in the file:
    /AllowDomainControllerReinstall:
    /AllowDomainReinstall:
    /ApplicationPartitionsToReplicate:
    so that then i be able to export that file & then execute my command & specify the path to this answer file (c:\myhelp.txt)
    how can i achieve this in excel?
    can i easily do the entire process when importing that file into excel, using importing options? if not, how can i do that after opened in excel?
    in the following screenshots i have shown what import options i used when importing this help file into excel & the result:
    really thanks in advanced, i really need this help.

    Hi John,
    Bit unclear on your requirment.
    Let me put it this way.
    1.You are running some command which generates output c:\myhelp.txt in multiple lines.
    2. You want to reformat the contents of c:\myhelp.txt so that only parameter name remains in each line, without the values.
    3. Reuse the updated c:\myhelp-clean.txt file into some other script\command.
    I can help you with quick excel formatting on point 2.
    Points noted:- the parameter are seperated from the rest of the data by ":" colon
    Hence once data is opened in excel, use Text-Col ->Delimited->Other-> Type : (colon) as the delimitor.
    This will result in only the 1st column with the long text in some rows and /parameters seperated
    Then Select all the data in the first column, Filter->Drop Down, Text Filters->Begins with-> /
    Only text with the parameters remain, as desc rows don't have / in beginning.
    Copy this and save it in another text file for re-use.
    Regards,
    Satyajit
    Please“Vote As Helpful”
    if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.
    Hi Satyajit.
    worked that's Great !
    thank you very very much for your great help
    best regards  ;-)

  • Spreadsheet Files to Excel

    Hi,
    I have a VI which records data to a text file in spreadsheet format. At
    present to get this data into Excel I am opening the file and cutting and
    pasting. I want to be able to do this within labview at the press of a
    button. I have altered an example VI which allows me to do this. The only
    problem is this VI opens the file, writes all its values to an array, opens
    excel then uses two for loops to write each cell to an Excel file. This is
    very slow. How can I cut and paste the file to excel using labview? Any
    help would be greatly appreciated.
    Regards,
    Martin.

    Hi Martin.
    You can pass a 2 dimension array of values to the VALUE method of the Excel ActiveX control. Once
    you have selected the workbook and sheet, select a range using the CELL1, CELL2 property (Office
    2000). Provide CELL1 for the top left cell and CELL2 as the lower right cell of your arrary. The
    transfer using this method is instantaneous!
    - Michael
    Michael Munroe Mailto:[email protected]
    A Better Complete Development Engineering Firm
    San Mateo, CA 94403 http://www.abcdefirm.com
    Martin Stanley wrote:
    > Hi,
    > I have a VI which records data to a text file in spreadsheet format. At
    > present to get this data into Excel I am opening the file and cutting and
    > pasting. I want to be able to do this within labview at the press of a
    > button.
    I have altered an example VI which allows me to do this. The only
    > problem is this VI opens the file, writes all its values to an array, opens
    > excel then uses two for loops to write each cell to an Excel file. This is
    > very slow. How can I cut and paste the file to excel using labview? Any
    > help would be greatly appreciated.
    >
    > Regards,
    > Martin.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • How to upload Excel file in BI using function module in abap program

    How to upload Excel file in BI using function module in abap program?

    Hi Anuj,
    To upload the file , you can try a standard program "RSEPSFTP" .
    while you execute the program , a selection screen appears in which the inputs should be give as
    RFC destination - The target server name
    FTP command- PUT
    local file - your file name
    local directory - path of your local file
    remote file - your target file name
    remote directory - where it has to be stored
    Hope this is useful for you
    Thanks & regards
    Anju

  • Excel File Error After Using SaveAsDialog in C#

    Hello,
    I have a project where I am trying to use SaveFileDialog. My code runs fine and saves the file to the directory that I choose. The problem is when I try to open the file I receive an error from Excel stating
     “Excel cannot open the file Test_File.xlsx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file”
     Is there something happening in my code that is corrupting the file during the save process?
    I can’t figure out why I am getting this error. Any help will be greatly appreciated.
    I am working in VS 2013 Pro. and using C#. Here’s my code:
    private
    void btnSave_Click(object
    sender, EventArgs e)
    Stream saveFile;
    SaveFileDialog saveFileDialog1 =
    new
    SaveFileDialog();           
    saveFileDialog1.Title = "Save As";          
    saveFileDialog1.Filter = "Excel Files (*.xlsx)| *.xlsx";
    saveFileDialog1.FilterIndex = 2;
    saveFileDialog1.RestoreDirectory = true;           
    if (saveFileDialog1.ShowDialog() ==
    DialogResult.OK)
    if ((saveFile = saveFileDialog1.OpenFile()) !=
    null)
    // Code to write the stream goes here.
    saveFile.Close();
    Thank you,
    Dave
    David Young

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=MyID; Password=MyPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    btnSave.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    wb.SaveAs(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes\LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd") + ".xlsx");
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    //End of ClosedXML code
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    //BEGIN THE SAVE AS PROCESS
    private void btnSave_Click_1(object sender, EventArgs e)
    Stream saveFile;
    SaveFileDialog saveFileDialog1 = new SaveFileDialog();
    saveFileDialog1.Title = "Save As";
    saveFileDialog1.Filter = "Excel Files (*.xlsx)| *.xlsx";
    saveFileDialog1.FilterIndex = 1;
    saveFileDialog1.RestoreDirectory = true;
    if (saveFileDialog1.ShowDialog() == DialogResult.OK)
    if ((saveFile = saveFileDialog1.OpenFile()) != null)
    // Code to write the stream goes here.
    saveFile.Close();
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    Here is the code for the whole project up to this point
    David Young

  • Using reader 11.0.06 to convert file to excel

    I'm somewhat reluctant to do this because I'm really out of my comfort zone with computer stuff but I need help.  I just downloaded reader 11.0.06 and converted a pdf file to excel.  The problem is that the info in excel is all down the left side and not in a usable format.  Is this a problem with Adobe's conversion or is this normal and I need to know how to manipulate the data in excel?

    Did you use ExportPDF? Then you should ask here:
    http://forums.adobe.com/community/exportpdf
    and if you used Acrobat, you should post here:
    http://forums.adobe.com/community/acrobat

  • Using files in Excel after they have been assimilated as XLF

    I did my first massive Xcelsius project for our board reporting and it went very well.   Now I need to create more "real data" and links to the underlying database - all the data stuff I didn't have time to do when pushing this prototype through so quickly.   Anyway, I can't open the XLF files in Excel 2007 and I need all my data in XLSX files so I can work on them and have other folks do some data entry, etc.
    In other words, I started with XLSX files, brought them into Xcelsius and made all my cool charts, etc. but now I need the files back as XLSX or somehow how need to be able to work on them in Excel as not everyone who has to do input has Xcelsius.
    Thanks for suggestions

    Depends on which version of Xcelsius you have.
    For X2008, use Data - Export.
    For CX4.5, Preview first. Then File - Snapshot - Back to Excel.
    Andy

  • Using my PC Desktop I am trying to convert a PDF file to excel.  When the data is imported to Excel the majority of the data is vertical in the far left colum.

    I am trying to import a PDF file from my desktop PC in to Excel using XI Pro.  When the data imports in to excel, the majority of the data is vertical along the far left comumn instead of horizonal along the colums such as name, address, etc.   I need to be able to import the data in to the horizonal categories so I can categorize the data after it is in excel.  Thanks.

    Hi johnc,
    I'm sorry to hear that your file didn't convert well for you. Can you please tell me more about the PDF that you're trying to convert? Do you know how it was created? The quality of a conversion depends on the quality of the PDF, and it sounds like the file you have may not include the tagging information that is required to convert that properly into an Excel file. Would you be willing to share that file with me? If so, let me know and I'll send you a private message with my contact details.
    Best,
    Sara

  • Converting excel file to PDF using Adobe 9 standard on windows XP

    I have installed office 2010 SP1 on a computer and it already has adobe 9 installed. user never had problem with converting multi sheet excel workbook to PDF using MSoffice 2003.
    Now, when we open excel files in EXCEL 2010 then try to print it to adobe 9, it asks for a filename and we type a name and it convert the first 2 sheet and then it asks again for the other filename and if we enter other name it print other sheets into second file. so basically it splits to 2 PDF files for no reason.
    I tested same file on my laptop with windows 7 and adobe standard 9 and office 2010  and i got same result.
    anybody knows what is the issue?

    Have you updated Acrobat? Have you tried printing to another file format just to see if it is an issue with Acrobat or OFFICE 2010. OFFICE 2010 has forced many folks to upgrade to AA X to obtain compatibility.

  • Excel size becomes large while creating excel file in jsp using content typ

    Hi All,
    I created an excel using jsp by setting content type as excel, the size of the excel is coming nearly around 5MB. If copy the content of that 5MB excel content and paste it and created another excel directly. The size of the new excel is coming around 1 MB.
    It will be great if any body reply me as soon as possible.

    HBhagya wrote:
    I created an excel using jsp by setting content type as excelYou don't create an Excel file that way. You're just fooling the web browser that it is an Excel file so that it will try to use the associated application for that which on its turn is too forgiving that it accepts HTML.
    Look for a Java Excel API to create a real Excel file. Examples: Apache POI HSSF, JExcelAPI, OpenXML4J. Or just use the CSV file format, although you can write it yourself easily, there are API's out as well. Examples: CSV4J, JavaCSV, OpenCSV.

  • Creating a table structure using xsd file or excel?

    Hi,
    How to create a table structure of the xsd file or excel file generated from access 2000?
    Do you have any ideas or do you know any useful tools for this?

    Yes. This possible with ADF Faces RC, which provides an af:tree component. Have a look at the Fusion Order Demo, which uses the tree to implement a similar usecase to the one you describe.
    http://www.oracle.com/technology/products/jdev/samples/fod/index.html
    Regards,
    RiC

  • Excel File gets Locked using OLE2

    Dear all ,
    We are working with 10g forms
    We are trying to load data from Excel file into a form using OLE2 . We are able to load the data from Excel File .
    Here we try to read the first row of the excel file and verify for a title to be present
    if not present we close the file . we have used the OLE2.Release_OBJ
    declare
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    worksheet ole2.obj_type;
    cell ole2.obj_type;
    args ole2.list_type;
    Check_file text_io.file_type;
    no_file exception;
    PRAGMA exception_INIT (no_file, -302000);
    cell_value varchar2(2000);
    begin
    Lv_F_File_Type := Text_Io.Fopen(:Cb_Input.Ti_v_File_name,'R');
    application:= ole2.create_obj('Excel.Application');
    workbooks := ole2.get_obj_property(application, 'Workbooks');
    args:= ole2.create_arglist;
    ole2.add_arg(args, :Cb_Input.Ti_v_File_name);
    workbook := ole2.invoke_obj(workbooks, 'Open', args);
    ole2.destroy_arglist(args);
    --Open worksheet Sheet1 of that Workbook
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'Sheet1');
    worksheet := ole2.get_obj_property(workbook, 'Worksheets', args);
    ole2.destroy_arglist(args);
    args:= ole2.create_arglist;
    ole2.add_arg(args, Lv_n_rows);-- lv_n_rows value is 1
    ole2.add_arg(args, 1);
    cell:= ole2.get_obj_property(worksheet, 'Cells', args);
    ole2.destroy_arglist(args);
    cell_value :=ole2.get_char_property(cell, 'Value');
    Lv_v_Title:=cell_value;
    if Upper(Lv_v_Title) <> Upper(Lpk_Var.Lv_v_File_Name_Parameter) then
    Lpk_Alert.Lp_Show('File Title Should be '||Lpk_Var.Lv_v_File_Name_Parameter);
    OLE2.RELEASE_OBJ(cell);
    OLE2.INVOKE(workbook ,'Close');
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.INVOKE(application, 'Quit');
    OLE2.RELEASE_OBJ(application);*/
    end if;
    After this we open the excel , and modify and try to save , it just waits ...
    we are forced to close the form. and then only the excel file gets saved...
    we need to modify the file , when the form is running and then upload the data..
    since the objects are closed , we are unable to understand why the excel file is locked till the session
    Can any one help us
    SSR

    Hi,
    Running on Business Object Enterprise XI 3.1 FP1.5.

  • How to generate excel file as output using OWB

    Hi,
    I have a requirement to generate an excel file as output using OWB.
    I am trying for a direct approach to create excel files.
    Though I know that excel can be created from a .csv file, I am looking for a direct approach to generate excel file without involving any .csv to excel conversion externally.
    Regards,
    Sri

    so, we are trying to do it by the help of oracle heterogeneous services. In my opinion it is possible (it depends on feature of ODCB Excel driver)
    For more details look at thread (it is about MS SQL Server but maybe it helps)
    Oracle to SQL SERVER
    Regards,
    Oleg

  • Exporting alpha numeric values using File Export Excel option

    Hi,
    When we export the report output to excel using the option file /export/excel/fully formatted grids and text, the text where we have alphanumeric characters, only the number component is getting exported. An example is 'Switch - Cisco 3750 (Goa) '. When the report data is exported, we can see only 3750 in the excel file. How do we fix this issue. Any help is highly appreciated.
    P

    Hello,
    Try exporting in the 'fully formated grids and text'. It shouldl give you the 'member alias' used in the report.
    Looks like if you export in the 'querry ready grids and text' it will show the 'member name' as in database although the report may have used the 'member alias'.
    Regards

Maybe you are looking for