Reading Excel sheet data in WebDynpro Java Application

Hi,
I need to read an excel file which is stored locally in my computer. How to use upload UI element (in WebDynpro Java) ?
After reading the excel file the data is displayed in table structure in WD Java application. After doing some calculations on click of generate excel button the table data is translated into excel sheet. How to achieve this?
Thanks,
Anmol

Hi,
   Hope the below links helps...
Re: upload & download files 
https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
Thanks,
Prakash

Similar Messages

  • Excel Sheet Drag & Drop into Java Application Q

    New to this forum. Have a question regarding the ability to drag and drop an Excel Sheet from an open Excel file onto a Java application. A friend has been able to drag and drop an Excel file from Windows Explorer onto a Java application and then read the sheets to select what you want and display/use the information in a particular sheet, I'd like to take it a step further to so that the user has the ability to be working in Excel and then drag and drop individual sheets into a Java application as they desire. Is this latter option possible?

    Hi,
       Hope the below links helps...
    Re: upload & download files 
    https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
    Thanks,
    Prakash

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Downloading excel in 2010 instead of 2003 through webdynpro java application

    Hi Experts,
    We have developed a webdynpro java application where we are downloading an excel file through linktourl UI element. we are not using any external jars to create that excel and we used simple java.io API. When we run the application and trying to download the excel, by default it is asking us to save in 2003 instead of 2010. I came to know that it depends on the version of MS office available / installed in SAP portal server. Can somebody provide SAP official links to support this?
    Thanks in advance,
    Regards,
    Pradeep

    Hi Jun,
    Thanks for your reply. We know by using Apache POI external jars we can achieve the functionality. But we don't want to do major changes to the existing application to just download the excel in 2010 format instead of 2003.
    Is there any other way to do without using the external jars. I mean simple coding / configuration or any work around.
    Regards,
    Pradeep

  • Lauching webdynpro java application

    hi gurus
    our scenario is like this..
    when employee fills the educational assistance form (customized webdynpro java application) and clicks on the submit button , it should go for approval..while manager opens the workitem it should lauch the same WD form in display mode with approve and reject button. and when he approves ..it should update the data base & it should sends a intimation mail to the employee that his application has been approved...
    MY QUESTIONS :
    1) how to trigger a event from WD java application to start this workflow ...
    2)  how the values can be passed from WD application container to workflow container .i got some ideas by reading some forums for this i want to use SAP_WAPI_READ_CONTAINER , where i want to use this function module
    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step,  how it can be achieved ?
    4)what all r the other settings i want to maintain .

    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step, how it can be achieved ?
    I would definitely prefer to open a form with "Approve" and "Reject" buttons instead of having it as an attachment in a user decision step. Especially if it is a application where a user never approves without opening the attachment. For example i may not prefer to approve a leave requisition without viewing it! In that case it will just be an overhead for the user to open the form manually everytime before approving. So make a decision on this based on the use of your application.
    Moreover it is not that tough either (atleast from a workflow perspective) to launch the webdynpro from UWL. Create a custom task and create appropriate entries in transaction SWFVISU (hope you are on or above ECC 5.0) to link your task and WD application. Thats it your application should be ready and shud be launched from UWL.
    But definitely in a custom application your webdynpro developers need to do a lot of work (as we did one in our previous projects) irrespective of whether it is launched directly as a task or as an attachment.
    Performacewise providing "Approve" and "Reject" will just increase one RFC call from your application (to complete your workitem).
    Thanks,
    Prasath N

  • Read Excel sheet in KM using API.

    Hi all,
    I kept one Excel sheet (Xsl file) in KM. I want to read that Excel (Xsl) file by using API in NWDS.
    How to read ? Is this possible
    Helpful answer will be appreciate
    Thanks & Regards
    Thillai J

    Hi Thillai
    It is possible to read the files using any of the Java Excel API's ( like POI or JExcel or JDBC-ODBC bridge). It depends on your convenience and requirement as to which one to choose for.
    [POI|http://poi.apache.org/] is seem to be widely used.
    In your case, the sequence of actions will be as follows:
    1. Access the resource and get the content.
    2. Get an InputStream from the content object.
    3. Next, using this InputStream, the data can be read.
    4. Refer to [this|http://www.javabeat.net/articles/41-apache-poi-reading-excel-sheet-using-java-1.html] link as to how read data. (It is assumed that you have successfully retrieved the InputStream in Step 2)
    Hope that helps.
    Thanks
    Deepak

  • Calling Webdynpro Java Application from Webdynpro ABAP Application.

    Hi,
    We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
    Require Suggestions to acheive this.
    Thanks In advance.
    Reg,
    Ajay.

    Dear Ajay,
    Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
    Write the following code on the action  where you would call the WDJ application.
      DATA:
            lr_compcontroller TYPE REF TO ig_componentcontroller,
            l_component TYPE REF TO if_wd_component ,
            lr_port_manager TYPE REF TO if_wd_portal_integration ,
            wa_navigation TYPE navigation.
      lr_compcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_component = lr_compcontroller->wd_get_api( ).
      lr_port_manager = l_component->get_portal_manager( ) .
    * The value inserted into the navigation-target field can be found in the Portal
    * content administration tab of your portal. It is the ID or PCD Location field
      wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
      wa_navigation-mode   = '0'.  "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
      CALL METHOD lr_port_manager->navigate_absolute
        EXPORTING
          navigation_target = wa_navigation-target
          navigation_mode   = wa_navigation-mode.
    You can get the PCD from the Page properties of the WDJ application page in the Portal.
    Hope it helps!
    Warm regards,
    Upendra Agrawal

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • Reusability of Adobe form created in SFP in a WebDynpro Java application

    Hi Experts,
    Can some one advise me how I can use the pdf form created in ABAP side (Transaction SFP) in the WebDynpro Java application?
    What is the procedure to include this pdf object in the WebDynpro application development?
    Regards,
    Shobhit

    Hi,
    You can add customised UI elements by a right click in your library pallette/ ot by dragging the ui elelments into the pallette. Like wise you can put your layout into the library pallette and reuse them. You may refer the Adobe life cycle designer (ALCD) help for it.
    the second option i meant was after designing the layout in the SFP transaction, click on the PDF preview tab in the layout. Save the PDF.
    NOw on developing the Java application, open the ALCD and use tools-> import to import the PDF you have saved.
    Regards,
    Anto.

  • How to assign the Thems into Webdynpro Java Application

    HI All,
                   I Downloaded the plugin for them editor and i add those plugins and i created the Them. Please any one can help me how to add that Them into Webdynpro java application.

    Hi ep bhargav,
    You can check this link.....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
    Re: webdynpro theme editor
    Thanks.
    Venkat.

  • How to transfer parameters to Webdynpro Java application ?

    Hello guys,
    I had developed a Webdynpro Java application "ZWD", it's URL is
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD".
    "ZWD" had 2 input parametere "InputField" and "InputField1" .
    Accroding to SAP Online Help  document, we can transfer parameter Webdynpro application .
    I want to transfer parameters to application "ZWD"  via URL
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD?InputField=Frankfurt" .
    But it failed.
    My questions:
    1. How to transfer parameter to Webdynpro Java application "ZWD" ?
    2. Does it possible that transfer input parameter to Webdynpro application and run the applicaiton via specific URL ?
    BR,
    Louis

    Hi Louis,
    You can refer to the following Bertram's article:
    [Inter-Application-Navigation in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface-technology/wd%20java/wdjava%20archive/inter-application-navigation%20in%20web%20dynpro.pdf]
    The process of accessing the Application URL parameters is explained for Target Component.
    Regards,
    Alka.

  • Is it possible to use the JS coding in webdynpro java application!!!

    Hi Experts,
    Is it possible to use the JS coding in webdynpro java application by any means?
    If yes, kindly suggest the procedure or any pointers for the same.
    Thanks in advance.
    Regards,
    Anurag

    Hi,
    I'm not an expert in this matter, but I will post here what I know:
    In NW7 releases (at least 7.01.05) it is possible to run JS, also to capture any WD Event and run your own JS code after that, using IFRAME. I have jQuery running here, it would take some time till you create a "framework" to enable some easy usage. I just want to highlight that is possible, thou I think it's a lot of effort.
    Not sure about CE7.1 it seems iFrame is deprecated. Still, being deprecated should not "block" the usage, thou it's not recommended since this functionality can be removed in next releases.
    I've read that CE7.2 has JS support, and I think you should try having a word with Armin maybe..
    Hope it helps,
    Daniel

  • Appying theme for Webdynpro java application.

    Hi Friends,
    I have change the font size and the content area of my WebDynpro java application which is a Standard Business package.
    I have already applied the theme in the visual admin,but when I make the changes to the theme it does not reflect on the application part.
    Please also let me know which specific theme values are to be changed.
    Request for all your inputs and solutions.
    Thanks,
    Shyam

    iViews used for application integration have a property called (technical name: LAF_Switch) like Send portal theme. This parameter defines if the portal will send to portal's style sheet definition. If so, the WDJ application will decide on some rules if or not to use the portal theme.
    [The SAP Note 1000889|https://service.sap.com/sap/support/notes/1000889] explains how a WD application decides whether to apply the portal theme or not. The note also gives you some hints to find out why the portal theme isn't getting applied.
    br,
    Tobias

  • Displaying UWL tasks in Webdynpro java application

    Dear Experts,
    I am developing a WebDynpro Java application to access uwl tasks,
    Have added the following code in try catch block with external jars
    1. prtapi.jar
    2. bc.uwl.service.api.jar
    IUWLService uwlService = null;
    IWDClientUser user1 = WDClientUser.getLoggedInClientUser();
    IUser epUser =user1.getSAPUser();
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    if( runtimeResources == null)
       wdComponentAPI.getMessageManager().reportSuccess("Portal Runtime NULL");
    else
       uwlService = (IUWLService)runtimeResources.getService( IUWLService.ALIAS_KEY);
    UWLContext uwlContext = new UWLContext();
    IUser user = user1.getSAPUser();
    uwlContext.setUser(user);
    uwlService.beginSession(uwlContext, 20);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    QueryResult result = itemManager.getItems(uwlContext,null,null);
    int size = result.getTotalNumberOfItems();
    ItemCollection collection = result.getItems();
    java.util.List list = collection.list();
    Item item = null;
    Date date = null;
    String subject = null;
    for(int i = 0; i < 5; i++)
      if(!(i > (size -1)))
          item = collection.get(i);     
          date = item.getDueDate();     
          subject = item.getSubject();
         wdComponentAPI.getMessageManager().reportSuccess("item "+item);
         wdComponentAPI.getMessageManager().reportSuccess("date "+date);
         wdComponentAPI.getMessageManager().reportSuccess("subject "+subject);
      }//if
    }//for
    I have created this webdypro application with Authentication mode set as True.
    After deploying this application, i'm getting this error...
    "java.lang.NoClassDefFoundError: com/sap/netweaver/bc/uwl/IUWLService "
    can anybody tell me what is the problem???

    Hi
    see the following link it will be helpful for u.
    [UWL Tasks|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#12]
    Regards
    Hazrath
    Edited by: Hazrath on Mar 25, 2008 8:01 AM

  • Template missing for webdynpro-java application  in Iview Creation

    Hi All,
    I wanted to create an iview out of my webdynpro component . I followed
    the steps given in the following document ---
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9
    But unfortunately i couldn't find any template to create iview from webdynpro-java
    application . Can any one help me out ? Is there any customization for the same or
    this feature is not available for CE7.1--Sneak Preview version ? Any suggestion will
    be of great help to me.
    Thanks and Regards
    Ashis

    Hi,
    Did u deployed ur webdynpro application into portal. If not, u cant to create iview based on ur component..
    Regards,
    Senthil K.

Maybe you are looking for

  • Slow launch and intermittent freezing in Windows 8.1

    Been trolling through the threads and cannot find a solution. I've also tried the QTMovieWin.dll solution but no change. I've also uninstalled, then went back and deleted all reminants of iTunes related files (incl. Bonjour, iCloud, etc), then re sta

  • Weblogic WorkShop IDE does not start

    My weblogic workshop IDE was working until today. When I try opening it up, nothing happens. It doesn't open up or show me any error messages. I don't even know where to begin trouble shooting. Any ideas? Thanks. gtata Edited by gtata at 12/10/2007 3

  • I'm getting an error message trying to upload a small Flash video to Facebook

    I'm uploading to a personal page. My video is 954K, and sized to the large rectangle format (336 x 280). It has a few simple animations, and a link button at the end. When I try to upload, I'm getting this error from Facebook: Any thoughts? Also, doe

  • Processes - Which modules?

    Hi there, Please can someone explain to me the following, I would like to understand this fully: Which modules do the following processes fall under? ASN Container Scheduling Customs Delivery tracking Demands MRP

  • Logistics Execution - locking on Delivery|Material level

    Hi Is it possible to change the locking from Delivery level to Delivery|Material level? We have a custom development where the users can pack by wave/group. This helps a great deal with productivity, but sometimes the packers lock the deliveries, eve