How to find out each Cell having Data or Not in Excel File by Using WDJ

Hi Friends,
I have one doubt on WDJ.
I have to Upload Excel File. Click on Upload Button in Excel file Data will move to One Bapi. This is I was done. But my Requirement is if any empty Cell in Excel That File not uploaded it display one error message Please upload Correct Excel File
How to find out each Cell having Data or Not in Excel File by Using WDJ. Please tell me.
By Using this Code I have Upload Excel File
InputStream text = null;
     int temp = 0;
     //wdComponentAPI.getMessageManager().reportSuccess("filePath Vijay:::");
     try
               File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());     
FileOutputStream op = new FileOutputStream(file);
               if (wdContext.currentContextElement().getResource()!= null)
                      text = wdContext.currentContextElement().getResource().read(false);
                         while((temp=text.read())!= -1)
                              op.write(temp);
                              op.flush();
                              op.close();
                              path = file.getAbsolutePath();
                              //wdComponentAPI.getMessageManager().reportSuccess("Path Name :::::"+path);
     catch(Exception ex)               
               ex.printStackTrace();
But my Requirement is If excel having any Empty Cell that excel file not uploaded.How to do this...
Regards
Vijay Kalluri

Hi my friend
I would like to share you some APACHE APi´s that i use when i have to read excel files in Web Dynpro.
JAR = poi-3.2-FINAL-20081019.jar
Some Example:
POIFSFileSystem fs;
HSSFWorkbook wb;
HSSFSheet sheet;
String myMexican_ValueFromExcelis = "";
try {
         fs = new POIFSFileSystem(new FileInputStream();
         // and select the cell "y"
        cell = row.getCell( 0 );
        myMexican_ValueFromExcelis = cell.getCellValue();  
}cach(Exception e){
REgargds

Similar Messages

  • How to find out if Role is active or not and also delimited or not ?

    How to find out if Role is active or not and also delimited or not ?

    Hi,
    Basically this job is done by BASIS (Technical) Team.
    They can check whether role is active or not by using tcode "PFCG" by giving role name.
    Regards,
    Rameshwar

  • How to find out the object is available or not in BC

    Hi dear friends,
    Suppose I want to design/create a Cube / ODS, before going to create that object, how to find out the same type of Object is available or not in BC with the specification which I want
    Thanks in advance

    Hi Paul,
    at least you need to know the application you are talking about. Then you can goto that particular area and evaluate the content (cubes, infoobjects, infosources, datasources). It will surely give you an idea of the fulfilment of your requirements by the content.
    Siggi

  • How to find out who create a data record

    Hello expert,
    is it possible to find out who created a special data record on the cube, even if this is not cosidered by the data model?
    We do not save sy-uname on cube.
    Thanks
    Johannes

    Hi Johannes,
    you can do this with this How To - Paper:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e3df0c-c370-2910-a696-96f5f38574d7
    Cheers, Clemens
    PS: The solution described in the HowTo Paper can be done for BPS and IP as well

  • Table component - how to find out which cell is clicked

    Hello!
    I have a couple of questions regarding table component
    1. Is there any way to find out which table cell is clicked on?
    2. And is it possible to paint clicked cell programmatically?
    Possible solution might be a Select Boolean Checkbox inside a cell, but anyway, i'd have to determine which cell contains this checkbox (some kind of cell coordinates, etc...)
    Thank you

    1. Is there any way to find out which table cell is clicked on? It would be easy to suggest the way, if you can share us the requirement
    2. And is it possible to paint clicked cell programmatically?You can do it through javascript by setting contentStyle property.
    Sample Code:
    <af:table ...>
      <af:column>
         <af:inputText ...>
                  <af:clientListener method="paintCurrentCell" type="click"/>
         </af:inputText>
      </af:column>
    </af:table>
    <!-- javascript method -->
    function paintCurrentCell(event){
        event.getSource().setContentStyle("background-color:red");
      }Sireesha
    Edited by: Sireesha Pinninti on Nov 10, 2009 7:01 PM

  • How to find out the top 10 data loads based on time duration?.

    Hi,
    We are working on performance tuning. so we want to find out the top 10 loads which had run long time in date wise.
    We need the load start time and end time of the load process, Infosource and datatarget name.
    There are nearly 1000 loads, So it is very difficult to collect the load's timings in RSMO.
    Is there any another alternative to collect the top 10 loads based on time duration in date wise?
    Thanks & Regards,
    Raju

    Hi Gangaraju,
    You can install BI Statistics for getting these type of data.
    Or you check in RSDDSTAT or RSMDATASTATE_EXT or  table for the Load process time.
    Or goto t-code ST13 to get detailed analysis of a Process chain for a given period.
    Hope this helps.
    Regards,
    Ravi Kanth

  • How to find out image size (in pixels) of jpg and gif files

    this seems to work, though i doubt that it would very time:
                   Image img = Toolkit.getDefaultToolkit().getImage("car.jpg");
                   int w = img.getWidth(null);
                   int h = img.getHeight(null);
                   while(w <= 0 || h <= 0)
                      try{Thread.sleep(10);}catch(InterruptedException ix){}
                      w = img.getWidth(null);
                      h = img.getHeight(null);
                   JOptionPane.showMessageDialog
                      null,
                      filenames[i] + ": " + w + "x" + h,
                      "ImgSize",
                      JOptionPane.INFORMATION_MESSAGE
                   );please suggest a better solution.
    thanks

    >
    We've a requirement that we need to find out the size of a java object at run time, is there a direct java API to get the size of a composite object in memory?
    Here is my requirement: We are adding string objects (which is an xml string of considerable size) into a List. After reaching certain size limit (lets say 5MB) of the list i need to put this data into DB as a CLOB. So every time I add a string object to the list, I need to see if the total size of the list exceeds the limit and if yes, flush the results into DB.
    I am not sure if java has a direct API for this, if not what is the beast way to do it, it s critical requirement for us.
    It would be really great if someone could help us out.
    >
    Could you explain your actual requirement a little more fully.
    1. Is each individual string a separate XML string? Or is it just a fragment? Why would you just concatenate them together into a CLOB? That won't produce valid XML and it won't let you easily separate the pieces again later. So provide a simple example showing some strings and how you need to manipulate them.
    2. Are you using these xml strings in Java at all? Or are you just loading them into the database?
    For example if you are just loading them into the database you don't need to create a list. Just create a CLOB in Java and append each string to the CLOB. Before you append each one you can check to see if the new string will put you over your length limit. If it will then you write the CLOB to the database, empty the CLOB and start appending again to the new clob instance.
    If you explain what you are really trying to do we might be able to suggest some better ways to do it.

  • How to find out the list of implemented OSS Notes in a particular period.

    Hi Friends,
    Need help.
    I need to find out the list of OSS Notes implemented in a period in a particular system.
    Could you please suggest the table or program or any way to find out the OSS Notes Implemented date wise?
    Thanks in Advance.
    Sreenivas

    Hi Sreenivas.
    How did you find the solution to this? Trying to do the same thing!
    Cheers,
    Tom

  • Lync 2013 - How to find out if the Full or the Delta address book file is being downloaded

    Hello
    We have had various issues since upgrade to Lync 2013, specifically, Lync 2013 address book generation and download (bandwidth usage impact).
    I was wondering if there is a way to find out which version of AB is downloaded; FULL AB or the Delta file ?
    Thanks for your assistance,
    Luca

    Full address book contains a large set of user and contact object attributes.
    Delta files contain incremental updates.
    If a client is accessing the URL for the first time and successfully connects, the client attempts to download the current full data file. On subsequent days, the client attempts to download
    a delta file based on the last full synchronization date.
    Open Lync Configuration Information, check the ABS Server URLs, you can determine where the address book information comes from.
    Lisa Zheng
    TechNet Community Support

  • How to find out resultset,statements and connections are not closed

    Hello,
    In Jdeveloper 10.1.2 how can I find out that in my code,
    I have resultset,statements and connections are not being closed.
    Any help is highly appreciable.
    Thanks

    Hello Vijay,
    On MSSQL truncation of transaction log does not shrink the size of the transaction log. It simply removes the content within the transaction log and writes it to the backup.
    Meaning the free percentage within the transaction log will increase.
    If you want to Resize the transaction log size, you need to do something else.
    The shrinking procedure is given here:
    http://support.microsoft.com/kb/907511
    Regards,
    Siddhesh

  • How to find out the patch is critcal or not

    Hello,
    Right now I am referring "http://sunsolve.sun.com/search/document.do?assetkey=1-34-patchdiag.xref-1" for the patches and update details.
    But there is no information about the patch severity(critical or not).
    From where can I find the severity of patches?
    Thanks in advance,
    Chanthu

    Well, patches labeled as 'recommended' or 'security' are typically critical in one way or another (R or S in the xref).
    Other than that the typical way to determine if a patch is critical to your environment or not is to read through the readme files..
    .7/M.

  • How to find out whether ipv6 is installed or not

    Hello.
    I need to determine (in Java 1.5) whether ipv6 is installed on a system (Windows) or not. Any ideas how could I do that? Is it possible at all?
    Thanks in advance.

    Yes, right.
    I have a client/server application and there is a "properties" files where user can specify many options including connection related. And there is an editor that allows to change that "properties" file thru GUI (and there may be no connection with the server at this point). Currently, speaking of connection related options, user is represented with 2 options (ipv4 and ipv6) from which he/she can choose no matter whether ipv6 is installed or not. I need to disable (or remove) ipv6 option if there is no ipv6 installed on a system.
    Using server-socket-approch will, probably, do, but may be there is some other way to do this?
    And thanks a lot for your answer.
    Edited by: serge.kv on Jan 28, 2010 7:51 AM

  • How to find out in which items, pages a function/procedure,.. will be used?

    I'm searching for the answer for:
    Are there any script tools which find all place in apex , where functions/ packages/ procedures be used ?
    -> want find where p_my_function is using. (Item level, page level, ....)
    Thank in advanced
    Hendrik
    Edited by: Hendrik Schmidt on Dec 13, 2010 12:46 AM

    Based on the APEX views (*Home > Utilities > Application Express Views*) I've been using this, run in the parsing schema for the application. It's set up to look at one application at a time as this is the best fit for our requirements:
    with search as (
          select :search_term search_term from dual)
      , app_source as (
          select
                    'Application Computation' component
                  , null                      page_id
                  , null                      sequence
                  , aac.computation_item      name
                  , null                      point
                  , aac.computation_type      type
                  , to_clob(aac.computation)  source
                  , s.search_term
          from
                    apex_application_computations aac
                  , search                        s
          where
                    nvl(aac.condition_type, 'None') != 'Never'
          and       (   aac.computation_type like 'SQL%'
                     or aac.computation_type like 'PL/SQL%')
          and       regexp_like(aac.computation, s.search_term, 'ni')
          union all
          select
                    'Application Process'
                  , null                
                  , aap.process_sequence
                  , aap.process_name    
                  , aap.process_point   
                  , aap.process_type    
                  , aap.process         
                  , s.search_term
          from
                    apex_application_processes  aap
                  , search                      s
          where
                    aap.application_id = :app_id
          and       nvl(aap.condition_type, 'None') != 'Never'
          and       regexp_like(aap.process, s.search_term, 'ni')
          union all
          select
                    'Application Tree'
                  , null
                  , null
                  , aat.tree_name
                  , null
                  , null
                  , to_clob(aat.tree_query)
                  , s.search_term
          from
                    apex_application_trees  aat
                  , search                  s
          where
                    aat.application_id = :app_id
          and       regexp_like(aat.tree_query, s.search_term, 'ni')
          union all
          select
                    'LOV'
                  , null
                  , null
                  , aal.list_of_values_name
                  , null
                  , null
                  , to_clob(aal.list_of_values_query)
                  , s.search_term
          from
                    apex_application_lovs aal
                  , search                s
          where
                    aal.application_id = :app_id
          and       aal.lov_type = 'Dynamic'               
          and       regexp_like(aal.list_of_values_query, s.search_term, 'ni')
          union all
          select
                    'Page Process'
                  , aapp.page_id
                  , aapp.execution_sequence
                  , aapp.process_name     
                  , aapp.process_point    
                  , aapp.process_type     
                  , aapp.process_source   
                  , s.search_term
          from
                    apex_application_page_proc  aapp
                  , search                      s
          where
                    aapp.application_id = :app_id
          and       nvl(aapp.condition_type, 'None') != 'Never'
          and       regexp_like(aapp.process_source, s.search_term, 'ni')
          union all
          select
                    'Page Region'
                  , aapr.page_id
                  , aapr.display_sequence
                  , aapr.region_name     
                  , aapr.display_position
                  , aapr.source_type     
                  , aapr.region_source   
                  , s.search_term
          from
                    apex_application_page_regions aapr
                  , search                        s
          where
                    aapr.application_id = :app_id
          and       aapr.source_type in ('Report', 'PL/SQL', 'Tabular Form', 'Tree')
          and       nvl(aapr.condition_type, 'None') != 'Never'
          and       regexp_like(aapr.region_source, s.search_term, 'ni')
          union all
          select
                    'Page Item'
                  , aapi.page_id
                  , aapi.display_sequence
                  , aapi.item_name
                  , aapi.region
                  , aapi.item_source_type
                  , to_clob(aapi.item_source)
                  , s.search_term
          from
                    apex_application_page_items   aapi
                  , apex_application_page_regions aapr
                  , search                        s
          where
                    aapi.region_id = aapr.region_id
          and       aapr.application_id = :app_id
          and       nvl(aapi.condition_type, 'None') != 'Never'
          and       nvl(aapr.condition_type, 'None') != 'Never'
          and       (   aapi.item_source_type like 'SQL%'
                     or aapi.item_source_type like 'PL/SQL%')
          and       regexp_like(aapi.item_source, s.search_term, 'ni')
          union all
          select
                    'Page Computation'
                  , aapc.page_id
                  , aapc.execution_sequence
                  , aapc.item_name
                  , null
                  , aapc.computation_type
                  , to_clob(aapc.computation)
                  , s.search_term
          from
                    apex_application_page_comp  aapc
                  , search                      s
          where
                    aapc.application_id = :app_id
          and       nvl(aapc.condition_type, 'None') != 'Never'
          and       (   aapc.computation_type like 'SQL%'
                     or aapc.computation_type like 'PL/SQL%')
          and       regexp_like(aapc.computation, s.search_term, 'ni')
          union all
          select
                    'Page Validation'
                  , aapv.page_id
                  , aapv.validation_sequence
                  , aapv.validation_name
                  , null
                  , aapv.validation_type
                  , to_clob(aapv.validation_expression1 || '/' || aapv.validation_expression2)
                  , s.search_term
          from
                    apex_application_page_val  aapv
                  , search                     s
          where
                    aapv.application_id = :app_id
          and       nvl(aapv.condition_type, 'None') != 'Never'
          and       (   aapv.validation_type like 'SQL%'
                     or aapv.validation_type like 'PL/SQL%')
          and       regexp_like(aapv.validation_expression1 || aapv.validation_expression2, s.search_term, 'ni'))
    select
              page_id
            , component
            , sequence
            , name
            , point
            , type
            , search_term
            , count(*) over (partition by search_term) func_use_count
    from
              app_source
    where
              search_term is not null
    order by
              page_id nulls first
            , component desc
            , sequence
            , name
            , point
            , type;Edited by: fac586 on 13-Dec-2010 09:14
    Note that this is on an APEX 3.0 installation. There may be more potential locations to be checked in later versions.

  • W510: How to Find Out if HDD is FDE or Not?

    Hi,
    I received my W510 recently and I am still in the exploring stage. When I ordered the laptop, I had selected the hard-drive option as "250 GB Hard Disk Drive, 7200rpm with Disk Encryption" so I am assuming it to be FDE but I don't see any such option in BIOS. All I can see is BIOS->Security->Password->Hard Disk1 Password, which I guess is BIOS level security and not the FDE password. How and where do I set the hard drive encryption settings? And how can I know for sure if the HDD is really an FDE?
    Thanks and Regards,

    You can refer to Lenovo's own FDE HDD FAQ: http://www-307.ibm.com/pc/support/site.wss/documen​t.do?sitestyle=lenovo&lndocid=MIGR-69621
    To confirm whether you have an FDE HDD, go to Drive C: Properties -> Hardware and get the model number of the HDD. Then, Google that model number.

  • How to Find out Http connecton available or not

    hi,
    Iam developing mobile application in this i have to send datas to server using http connection.
    If any problem with http yhe datas should store it in local Db(RMS).
    How to find out either http connection established or not.
    i checked with disconnecting (with out run the server) there is no response
    how to proceed further please..

    Hi try to print the error message when there is no connection
    there must be some error code ,ideally it will take 120 seconds to decide whether connection is present or not ,
    u can use test connection using a relatively fast site like google
    additionally u can try timer to timeout before 2 mins..if it's much for you

Maybe you are looking for

  • SSO for client software appllications

    Hi, Can we have SSO enabled for any applications which needs to have client software installed on user machine? Once i click on an iView then it should open client software for that application without asking me user name and password. Thanks, Bhaves

  • Syncing selectively with entourage, address book and iPhone... geesh

    Hi All, This may all sound funky, but here is where I find myself. I have thousands of contacts that I send stuff to monthly. I use pages to create the material I send. All of these contacts live in Address Book. They are the only contacts in Address

  • Iphone pre order SUCKS

    Ordered on the 3rd, yet I still have no information about when or even IF my phone will be coming.  Not a single business customer has received shipping information yet millions of consumers have their phone.  You did this to us with the Droid INC to

  • Could you tell me companies that SAP is introduced in Securities industry?

    Dear Colleague.. I want to know the companies name that sap r3 is implemented in Securities(stocks) Industry. As you know, ERP is very specified in logistic process industry(Chemical, Mill, Oil, Public...), but some financial industry is introduced m

  • How to identify the host string in Oracle on Unix

    Help me out to identify the SID in Unix. When I try to connect scott/tiger@mydatabase, it results in error, previously I used to access. When I try connecting scott/tiger without host string it connects. Please help me out finding the host string. Wo