Columns in Maploader.xls

Hi
Can anyone tell me what next columns in Maploader.xls mean? WhereClauseType, WhereClauseValue, - .
Thank you!

These columns are used for wildcard mapping.
WhereClauseType will be one of - In, Between, Like
WhereClauseValue will be equivalent of the wildcard criteria you have place in the source value.
These columns are automatically populated by the template based on the source/target value criteria you enter

Similar Messages

  • Problem with attachtment XLS (last column of the xls)

    Hi,
    iam working on interface in which i will be sending an email along with attachtment where my email along with attachtment are working perfectly ,the problem is with the XLS where the last column of the XLS is taking 255 char which is the length of the field .
    How i have to  restrict it ?
    solution on this would be helpfull .
    Thanks ,
    shankar.
    I have attached the sample code too.
    FUNCTION zemail_send_attachment.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(EMAILID)
    *" VALUE(SUBJECT)
    *" VALUE(ATYPE)
    *" TABLES
    *" ATTACH_FILE STRUCTURE SOLISTI1
    *" BODY OPTIONAL
    This table requires information about how the data in the
    tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
    to be distributed to the documents and its attachments.
    DATA objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    This table must contain the summarized data dependent on each object type.
    SAPscript objects store information here about forms and styles,
    for example. Excel list viewer objects store the number of rows and columns
    amongst other things and PC objects store their original file name.
    DATA objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as binary objects.
    DATA objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
    WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as ASCII objects.
    DATA objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    This table must contain the document recipients.
    DATA reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE .
    This structure must contain the attributes of the document to be sent.
    DATA: doc_ching LIKE sodocchgi1.
    DATA: tab_lines LIKE sy-tabix.
    Create the internal table for body , subject
    DATA: it_body LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    CONSTANTS: con_cret TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
    con_tab TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    Move Body to Internal Table (body into it_body)
    LOOP AT body .
    MOVE body TO it_body .
    APPEND it_body .
    ENDLOOP.
    doc_ching-obj_descr = subject. "Subject of the Email
    Move the Subject and Body to OBJTXT
    objtxt[] = it_body[].
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_ching-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'RAW'.
    APPEND objpack.
    Convert IT to Excel format
    IF atype = 'XLS' .
    LOOP AT attach_file .
    REPLACE ALL OCCURRENCES OF '#' IN attach_file WITH con_cret ."INTO objbin.
    IF sy-tabix = 1.
    MOVE attach_file TO objbin.
    ELSE.
    CONCATENATE con_tab attach_file INTO objbin.
    ENDIF.
    APPEND objbin.
    ENDLOOP.
    ELSEIF atype = 'TXT' .
    Convert IT to Text format
    LOOP AT attach_file .
    REPLACE ALL OCCURRENCES OF '#' IN attach_file WITH con_cret. " INTO objbin.
    CONCATENATE attach_file con_tab INTO objbin .
    APPEND objbin .
    ENDLOOP.
    ENDIF.
    DESCRIBE TABLE objbin LINES tab_lines.
    objhead = subject. APPEND objhead.
    Creating the entry for the compressed attachment
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    IF atype = 'XLS'.
    objpack-doc_type = atype.
    ELSEIF atype = 'TXT'.
    objpack-doc_type = 'RAW'.
    ENDIF.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = 'TEST'. "Attachment File Name
    objpack-doc_size = tab_lines * 255.
    APPEND objpack..
    reclist-receiver = emailid.
    reclist-rec_type = 'U'.
    APPEND reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_ching
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99 .
    ENDFUNCTION.

    I had this problem after migrating to JDeveloper 10.1.3. Problem was with inconsistent DB column types. In our case, the DB column was CHAR containing only numbers, but VO defined it as NUMBER. This caused no problem in 9.0.3 we used before.
       <ViewAttribute
          Name="ParentFlagNew"
          IsPersistent="false"
          Precision="1"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="PARENT_FLAG_NEW"
          Expression="PARENT_FLAG_NEW"
          SQLType="NUMERIC" >
          <Properties>
             <Property Name ="DISPLAY_LIST" Value ="1=Yes,0=No" />
             <Property Name ="DISPLAY_LIST_sk" Value ="1=Áno,0=Nie" />
             <Property Name ="Renderer" Value ="sk.transacty.cm_iface.bc4j_common.ListFieldRenderer" />
          </Properties>
          <DesignTime>
             <Attr Name="_DisplaySize" Value="1" />
          </DesignTime>
       </ViewAttribute>

  • Exporting specific columns from XLS file to a new XLS or XLSX file using powershell

    The scenario is that i have a file that our server is constantly dumping data to on a daily basis and out of all the data i only need 2 columns. I need to be a able to automate this because i need to generate a monthly report based on those two columns.
    That being said, i need to be able to extract two full columns from datafile1.xls to newdatafile.xlsx. If it would be easier if the original file is CSV i can easily save the data in CSV format instead of XLS. 
    Thanks in advance.

    I see, im having a hard time executing the script, i keep getting the following error:
    '""Microsoft.Jet.OLEDB.4.0"
    has not been registered.";' 
    and
    when i try to run it like this i dont get any errors BUT nothing happens:
    C:\Windows\syswow64\rundll32.exe "C:\Program Files\Common Files\System\Ole DB\oledb32.dll",c:\temp\t.ps1
    This is the code, which to tell you the truth im not really that familiar with :\
    $strFileName = "C:\temp\original\styles.xls"
    $strSheetName = 'STYLES$'
    $strProvider = "Provider=Microsoft.Jet.OLEDB.4.0"
    $strDataSource = "Data Source = $strFileName"
    $strExtend = "Extended Properties=Excel 8.0"
    $strQuery = "Select STYLE CODE , LAST UPDATE from [$strSheetName]"
    $objConn = New-Object System.Data.OleDb.OleDbConnection("$strProvider;$strDataSource;$strExtend")
    $sqlCommand = New-Object System.Data.OleDb.OleDbCommand($strQuery)
    $sqlCommand.Connection = $objConn
    $objConn.open()
    $DataReader = $sqlCommand.ExecuteReader()
    While($DataReader.read())
    $ComputerName = $DataReader[0].Tostring()
    "Querying $computerName ..."
    Get-WmiObject -Class Win32_Bios -computername $ComputerName
    $dataReader.close()
    $objConn.close()
    For both PowerShell or VBScript you are missing the libraries.  You need to download and install the ACE drivers.
    Search for ACE drivers.
    ¯\_(ツ)_/¯

  • Acrobat 9 - Populate fields from a XLS

    I am using Acrobat 9 and I want to createa fillable PDF that upon the user’s choice for the first field, autofills the 2nd and 3rd field basing on the content of an XLS file.
    I have an list.xls file that gets updated regularly, and it looks like as follows:
    Machine description
    Serial no.
    Last checked on
    Sewer
    1111111
    2010/05/12
    Groover
    2222222
    2008/04/25
    I would like to create a fillable PDF where the user choose the machine from a drop down menu that shows the machines listed on the first column of list.xls, and upon the user's choice it populate automaticaly the fields "serial no." and "last check" with the data from the other two columns of list.xls.
    I have never used JavaScript before,so please keep it simple.
    Your help is very much appreciated,
    Paola

    If you want to fill the LiveCycle Designer form, then you need to render it with the datafile.
    The datafile can be an XML file or a webservice or Database.
    You cannot directly fill the PDF from a PHP script. What you can do is, have a LiveCycle Process created in Workbench and then invoke the Process from PHP application by passing the information. The Livecycle process will merge the data with the template and return the PDF to the client application.
    There is an other feature in Acrobat PRO that you can import an XML file directly into a PDF but that is a manual effort. You can not link that to a PHP Script.
    Thanks
    Srini

  • EXPORT EXCEL *.xls

    Any body know how to when export excel make that the columns in my xls file look the size needed to show the all data????
    Sorry about my english but I just started to work with a multinational corporation that ask, post, and answer in this language. thanks very much.
    Traduction from google:
    Any blow as export to excel so that the columns will be of the size necessary to display the data exported
    Message was edited by:
    user600533

    Any body know how to when export excel make that the columns in my xls file look the size needed to show the all data????
    Sorry about my english but I just started to work with a multinational corporation that ask, post, and answer in this language. thanks very much.
    Traduction from google:
    Any blow as export to excel so that the columns will be of the size necessary to display the data exported
    Message was edited by:
    user600533

  • Maploader errors?

    I am importing mapping table for account dimension using maploader.xls file. There are 3 account mappings in the maploader.xls but when the file is imported no mappings are shown in the mapping table. I am not getting any error or warning or success message when import is done. Kindly advice me

    Just to confirm the maploader.xls format - Upload the default maploader.xls available with FDM (after making changes of Location Name, LocationID, FDM dimension lables). Dont make any changes to the available mappings.
    Let us see, if you face any issues.

  • I want to upload data from excel to R.12 tables

    Dear All,
    We have implemented R.12 we have already migrate data from legacy to EBS but during go live period many transaction cannot be record.
    I have data in excel I want to upload. What is the best & save way please let me know.
    Regards,
    Muhammad Faraz
    EBS Coordinator  I.C.T

    Hi Muhammad,
    The easiest way to upload data into a table from excel is to use Import Data feature of SQLDeveloper.
    What you need to do is :
    Right-Click on the table name in the Navigator.
    Select Import Data
    Choose the excel file you want to load the data from.
    Map the columns of the xls file to the columns in the table
    Upload.
    Thanks
    Pushkar.

  • Is it possible to read the contents of an Excel cell in DIAdem and assign its value to a variable in a VBS script.

    Hi All,
    Initially I thought this little problem would be relatively straight forward but now I’m not so sure. I am familiar with the mechanism by which DIAdem communicates with Excel and how to change the contents of a cell via a VBS script. In my task the contents of the cell in the first row, first column of MyProblem.xls contains the text “DIAdem”. I would like to be able to read this value and assign it to the variable MyString. I originally thought of doing something simple like this:
    Dim MyString
    Dim Excel, ExcelSheet
    Set Excel = CreateObject(“Excel.Application”)
    Excel.Workbooks.Open(“C\MyProblem.xls”)
    Set ExcelSheet = Excel.Workbooks(“MyProblem.xls”).Sheets(“Sheet1”)
    MyString = ExcelSheet.Cells(1,1)
    At this point I would have hoped that MyString would have been set equal to “DIAdem” and I could have used MyString to change the name of a channel in the data portal if I desired using the following code:
    Data.Root.ChannelGroups(1).Channels(1).Name = MyString
    Doesn’t seem to work though. I’m guessing it is because MyString has not picked up the value of the contents of the cell? Can anybody propose a solution to my problem or indeed confirm whether what I am proposing to do is technically feasible.
    Thanks in advance for any responses.
    Matthew

    Hi Matthew,
    Just staring at your ActiveX code, it looks fine to me.  My first thought is that this should work as you outlined it, and I've done this sort of thing many times, so I know it can work.  My second thought though, is that what you probably really want is a DataPlugin and not a VBScript.  Then you could just drag&drop the Excel file into the Data Portal and load all the properties and channels you want from the Excel file.  If you have DIAdem 2010 or later you can use the SpreadSheet reader object in the DataPlugin to avoid the Excel ActiveX functions (and Excel's jealously with other applications trying to read a file it has open already).
    Feel free to send me a few sample Excel files and describe what you want to load from the various cells, and I'd be happy to help you get a DataPlugin written to load your data.  You can also email me at [email protected]
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • "Excel found unreadable content in" The Problem is text in a clob exported to excel uses - Left single quotation mark -Right double quotation mark.

    Here are the ASCII char being used.
    145 221 91 10010001 ‘ &#145; &lsquo; Left single quotation mark
    146 222 92 10010010 ’ &#146; &rsquo; Right single quotation mark
    147 223 93 10010011 “ &#147; &ldquo; Left double quotation mark
    148 224 94 10010100 ” &#148; &rdquo; Right double quotation mark
    149 225 95 10010101 • &#149; &bull; Bullet
    150 226 96 10010110 – &#150; &ndash; En dash --
    The default CHAR NOW is a black diamond with ? in middle in stead of 'Right double quoation mark' and others.
    The Text used is copied from documents user's get
    so someone is putting in I think what is called ALT ascii. This data has been used for years
    some updates where put in the system, I don't know details.
    The following error started you click YES and the XLS has alot of data missing not just the CLOB.
    Excel found unreadable content in ‘file-name’.
    Do you want to recover the contents of this workbook?
    If you trust the source of this workbook click yes.
    I can copy the text then load it into the a column in a xls. 
    I am exporting the spreadsheet from TOAD it wasn't updated so
    it has to be with the EXCEL. I tried changing the ENCODING in EXCEL but that
    didn't work.

    I'm not familiar with TOAD, could you please let us know how did you export data from TOAD to Excel?
    Based on your description, it should be an encoding problem, have you tried to change the encoding as 'UTF-8' ?
    Wind Zhang
    TechNet Community Support

  • Problem in Download ALV Output to Excel

    Hi All,
    When iam going to Download the ALV ( Grid ) Output to Excel, all columns are not coming in Output.
    But the ALV Output Contains 140 Columns.
    How to solve this issue.
    Points Rewarded.
    Thanks & Regards,
    Kiran . I

    Hi,
    You can download the report by going to menu option
    List->export->local file.. in this select spreadsheet and give the name for this to download.
    You can view all the columns here in xls sheet.
    Regards,
    Ram Mohan
    Pls reward poins if useful...

  • Read data from Excel file and diaplay in Webdynpro

    Hi all,
    I need some help. I have a Excel file with set of  name, phonenumbers . I want to know how to display the data using Webdynpro. Could some one help me. help is appreciated and I promise to award points for right answer.
    Thank you
    Maruti

    <b>Hi
    i can explain you to read data from Excel file
    First You have to download the jxl.jar file. You can get this file from the Below site
    </b><a href="http://www.andykhan.com/jexcelapi/download.html">jexcelapi jar</a>
    It will be in Compressed Fromat So Unzip it to get the Contents
    After Unzipping The File You will get a Folder (jexcelapi/jxl.jar)
    Now in NWDS open web dynpro explorer, Right Click Your Project, a popup menu will appear and in that click Properties
    You will get window displaying your Project Properties
    On Left Side of the window You Will Find "Java Build Path"
    Click That "Java Build Path" and you will get 4 Tabs Showing ( Source,Projects,Libraries,Order and Export)
    Click Libraries Tab
    You will find options many options buttons
    In that click the Button "Add External Jars"
    You will get Window in order to fecth the jxl.jar file from the location you had stored
    After selecting the jxl.jar i will get displayed and click ok
    Now Open Navigator
    Open Your Project
    You will find Lib folder
    Copy the jxl.jar to that lib folder
    Note : You cannot Read the Content from the excel file directly
    First You Have to copy that file to the Server,
    And from the Server you can get the file absolute path
    With the absolute path you can read the contents of the Excel file
    You have to save the Excel file as .xls Format and Not as xlsx format i will not accept that...
    You have Upload the Excel file from the Server Using the File Upload UI Element
    This Coding will extract 3 columns from the Xls File
    Coding
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import jxl.Cell;
    import jxl.Sheet;
    import jxl.Workbook;
    import com.sap.fileupload.wdp.IPrivateFileUpload_View;
    import com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource;
    public void onActionUpload_File(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File(ServerEvent)
        IPrivateFileUpload_View.IContextElement element1 = wdContext.currentContextElement();
        IWDResource resource = element1.getFileResource();
        element1.setFileName(resource.getResourceName());
        element1.setFileExtension(resource.getResourceType().getFileExtension());
        //@@end
    public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File_in_Server(ServerEvent)
        InputStream text=null;
        int temp=0;
        try
             File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
             FileOutputStream op = new FileOutputStream(file);
             if(wdContext.currentContextElement().getFileResource()!=null)
                  text=wdContext.currentContextElement().getFileResource().read(false);
                  while((temp=text.read())!=-1)
                       op.write(temp);                                      
             op.flush();
             op.close();
             path = file.getAbsolutePath();
             wdComponentAPI.getMessageManager().reportSuccess(path);
        catch(Exception e)
             e.printStackTrace();
        //@@end
    public void onActionUpload_Data_into_Table(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_Data_into_Table(ServerEvent)
        try
              Workbook wb =Workbook.getWorkbook(new File(path));
              Sheet sh = wb.getSheet(0);
              //wdComponentAPI.getMessageManager().reportSuccess("Columns = "+sh.getColumns());
              //wdComponentAPI.getMessageManager().reportSuccess("Rows = "+sh.getRows());
              int columns = sh.getColumns();
              int rows = sh.getRows();
              int i=0;
             for(int j=1;j<=rows;j++)
                       ele=wdContext.nodeTable_Data().createTable_DataElement();
                       Cell c1 = sh.getCell(i,j);
                      ele.setTab_Name(c1.getContents());
                       Cell c2 = sh.getCell(i+1,j);
                       ele.setTab_Degree(c2.getContents());
                          Cell c3 = sh.getCell(i+2,j);
                       ele.setTab_Percentage(c3.getContents());
                       wdContext.nodeTable_Data().addElement(ele);
        catch(Exception ex)
             wdComponentAPI.getMessageManager().reportSuccess(ex.toString());
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      String path;
      IPrivateFileUpload_View.ITable_DataElement ele;
    //@@end
    Regards
    Chandran S

  • OTM - How can I sort the requirements when importing from CSV ?

    Hi,
    I am able to upload requirements into OTM, in a tree structure.
    But even though I am giving a "ViewOrder" column in my .xls/.csv file, the requirements do not get uploaded in the same order.
    Whats happening is, when the xls/csv is converted to xml, the vieworder tag isnt included, and in turn doesnt get posted to DB either.
    I also tried modifying a previously saved mapping file, by manually adding ViewOrder=ViewOrder and saving it.
    On selection it only accept sheets containing the column, but still it gets discarded during conversion.
    Is there any way to expand the set of required fields during upload, to include View Order?
    Is there any other way to ensure that the excel data gets uploaded in the same order as listed?

    Have you explored the options in the View -> Sort Photos menu?
    Regards
    TD

  • Remove blank spaces in excel output file

    it is a BOM report and the output is into a excel file.
    problem with the excel file output is : i gives blank spaces sometimes after the number and sometimes before the number...
    so, how can i remove those blank spaces for the values.
    ive nearly 15 columns having values in each column.
    so, how to get rid of blank spaces for these values in the columns in the xls file. is there any fn..module or a command that i can put in the code.

    Hi,
        above mentioned FM canbe used to eliminate extra zeros   in char field. eg. material number.
      MATNR will contain 18 char.-000000000045678925.
      toget only 45678925 F.M -conversion exit can be used.
      for ur reuirement use SHIFT statement only.
    regards,
    Prashanth Maturu.

  • Filename after Union All

    I have two Excel files file1.xls and file2.xls. Each of them has a column called "name". I define two sources and as destination one Excel file dest.xls. I use Union All to put file1.xls and file2.xls together in dest.xls. How can I get a second
    column in dest.xls containing file names file1 and file 2? Like this:
    file 1
    Tom
    file 1
    Audrey
    file 2
    Patrick
    file 2
    John
    file 2
    Susan
    Thanks a lot!
    gec

    Use a for each loop container to point to folder containing two excel files.
    Add a variable inside loop to get filename for each iteration
    Then add a data flow task inside loop with Excel source and OLEDBdestination pointing to a staging table in your database with required three columns
    Add an identity column in the table and ignore it in the mappings
    Add a derived column in between and add new column filename with expression as below
    FileName @[User::Filename]
    where FileName is the variable you used inside the loop to get iterated filename
    Add another data flow task outside the group with OLEDB source and excel destination.
    Map all the columns in staging to corresponding columns in excel and you'll output you want.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • WebDynpro Call Excel and fill Excel

    Hi together,
    I've nearly read all postings in the forum about excel and webdynpro. But I have no solution for my problem yet.
    Please help me. I want to call Excel with the SAP OfficeControl. This works with the Sample in the SAP-Onlinedoku.
    But I cannot fill the existing Exceldocument. I want to fill my existing document like "row1 and column5" = "Hasso".
    Can anyone help me. I am just a Java Newbie.
    Here my Code to fill the Excel-Control from an file.
    Additional, I want to change some cells.
    I think after the line "element.setDocumentContent(bytes);"
    I've to code !!
    thy for your response
    greetings
    Example-Code:
    public void fillNode(IPrivateTestViewOfficeControl.IDocumentSourceNodeNode node, IPrivateTestViewOfficeControl.IContextElement parentElement)
        //@@begin fillNode(IWDNode,IWDNodeElement)
       ISimpleTypeModifiable mod = node.getNodeInfo().getAttribute("DocumentContent").getModifiableSimpleType();
          ModifiableBinaryType bin = (ModifiableBinaryType)mod;
          bin.setMimeType(new WebResourceType("doc", "application/msword", false));
         IPrivateTestViewOfficeControl.IDocumentSourceNodeElement element = node.createDocumentSourceNodeElement();
          node.addElement(element);
         try
            byte[] bytes = getBytesFromFile(new
            File("C:
    temp
    example.doc"));
            element.setDocumentContent(bytes);
          catch (IOException e)
            // do something
        //@@end
      public void onActiongetDocument(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongetDocument(ServerEvent)
    WDOfficeControlMethods.showDocument(this.wdThis.wdGetAPI(),"OfficeControl1");
        //@@end
      //@@begin others
      public static byte[] getBytesFromFile(File file)
        throws IOException
          FileInputStream is = new FileInputStream(file);
          long length = file.length();
          byte[] bytes = new byte[(int)length];
          long bytesRead = is.read(bytes);
          if (bytesRead < length)
           throw new IOException("Could not completely read  
           file "+file.getName());
          is.close();
          return bytes;
      //@@end

    try this: this is simple
    First You have to download the jxl.jar file. You can get this file from the Below site
    JExcelApi v2.6.4 (1747kbytes)
    It will be in Compressed Fromat So Unzip it to get the Contents
    After Unzipping The File You will get a Folder (jexcelapi/jxl.jar)
    Now in NWDS open web dynpro explorer, Right Click Your Project, a popup menu will appear and in that click Properties
    You will get window displaying your Project Properties
    On Left Side of the window You Will Find "Java Build Path"
    Click That "Java Build Path" and you will get 4 Tabs Showing ( Source,Projects,Libraries,Order and Export)
    Click Libraries Tab
    You will find options many options buttons
    In that click the Button "Add External Jars"
    You will get Window in order to fecth the jxl.jar file from the location you had stored
    After selecting the jxl.jar i will get displayed and click ok
    Now Open Navigator
    Open Your Project
    You will find Lib folder
    Copy the jxl.jar to that lib folder
    Note : You cannot Read the Content from the excel file directly
    First You Have to copy that file to the Server,
    And from the Server you can get the file absolute path
    With the absolute path you can read the contents of the Excel file
    You have to save the Excel file as .xls Format and Not as xlsx format i will not accept that...
    You have Upload the Excel file from the Server Using the File Upload UI Element
    This Coding will extract 3 columns from the Xls File
    Coding
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import jxl.Cell;
    import jxl.Sheet;
    import jxl.Workbook;
    import com.sap.fileupload.wdp.IPrivateFileUpload_View;
    import com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource;
    public void onActionUpload_File(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionUpload_File(ServerEvent)
    IPrivateFileUpload_View.IContextElement element1 = wdContext.currentContextElement();
    IWDResource resource = element1.getFileResource();
    element1.setFileName(resource.getResourceName());
    element1.setFileExtension(resource.getResourceType().getFileExtension());
    //@@end
    public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionUpload_File_in_Server(ServerEvent)
    InputStream text=null;
    int temp=0;
    try
    File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
    FileOutputStream op = new FileOutputStream(file);
    if(wdContext.currentContextElement().getFileResource()!=null)
    text=wdContext.currentContextElement().getFileResource().read(false);
    while((temp=text.read())!=-1)
    op.write(temp);
    op.flush();
    op.close();
    path = file.getAbsolutePath();
    wdComponentAPI.getMessageManager().reportSuccess(path);
    catch(Exception e)
    e.printStackTrace();
    //@@end
    public void onActionUpload_Data_into_Table(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionUpload_Data_into_Table(ServerEvent)
    try
    Workbook wb =Workbook.getWorkbook(new File(path));
    Sheet sh = wb.getSheet(0);
    //wdComponentAPI.getMessageManager().reportSuccess("Columns = "+sh.getColumns());
    //wdComponentAPI.getMessageManager().reportSuccess("Rows = "+sh.getRows());
    int columns = sh.getColumns();
    int rows = sh.getRows();
    int i=0;
    for(int j=1;j<=rows;j++)
    ele=wdContext.nodeTable_Data().createTable_DataElement();
    Cell c1 = sh.getCell(i,j);
    ele.setTab_Name(c1.getContents());
    Cell c2 = sh.getCell(i+1,j);
    ele.setTab_Degree(c2.getContents());
    Cell c3 = sh.getCell(i+2,j);
    ele.setTab_Percentage(c3.getContents());
    wdContext.nodeTable_Data().addElement(ele);
    catch(Exception ex)
    wdComponentAPI.getMessageManager().reportSuccess(ex.toString());
    //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
    //@@begin others
    String path;
    IPrivateFileUpload_View.ITable_DataElement ele;
    //@@end
    make sure that the cardinality of the node i.e. upload node is 1:1

Maybe you are looking for

  • Direct comparison old and new mini into tv

    Hi all. I notice a slew of threads berating the display quality of the mini and I want to put my chime in. I have a 1.6 core duo mini and I replaced it Saturday with a new one. I have a 32 in LCD in the living room, the old one was hooked up with a d

  • Itunes music

    Right, I'm not stupid, but I'm totally confused . I've just recently just got a new hard drive etc and the music is away getting extracted from the old one. However, i want to access the files I bought from itunes through the store. Can I access the

  • Reading data in excel files from client side

    Hello Experts, I want to build a website from which clients can upload data in the excel sheets they have into the sql server 2000 on the database server. These excel files will be at the client machine from where they will upload all the data from t

  • Why cant i update my ipod touch 3rd gen?

    why cant i update my ipod touch 3rd gen? it says that theres network problem and ask to check my network settings. help me please

  • Export batch data into CSV file using SQL SP

    Hi, I have created WCF-Custom receive adapter to poll Sql SP (WITH xmlnamespaces(DEFAULT 'Namespace' and For XML PATH(''), Type) . Get the result properly in batch while polling and but getting error while converting into CSV by using map. Please can