Exporting web Dynpro content into ms-word

Hi Experts,
Any one can tell me how to export web Dynpro content (like tables and data etc) into ms-word document.
Any help is greatly appreciated and rewarded.
Regards,
Jay

Hi Varma,
you can follow the thred,
[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353]
In this pdf this code is avaliable. please chek it this code
public void Download_Reporting( com.sap.tc.webdynpro.progmodel.api.IWDNode dataNode, java.util.Map columnInfos )
    //@@begin Download_Reporting()
     byte[] excelXMLFile;
          IWDCachedWebResource cachedExcelResource = null;
          String fileName = dataNode.getNodeInfo().getName() + ".xls";
          try {
//             create Excel 2003 XML data as a byte array for the given context node,
//             attributes and headers
          excelXMLFile = toExcel(dataNode, columnInfos).getBytes("UTF-8");
//             create a cached Web Dynpro XLS resource for the given byte array
//             and filename
cachedExcelResource = getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.XLS);
//             Store URL and file name of cached Excel resource in context.
          if (cachedExcelResource != null) {
          wdContext.currentContextElement().setExcelFileURL(
          cachedExcelResource.getURL());
          wdContext.currentContextElement().setExcelFileName(
          cachedExcelResource.getResourceName());
//             Open popup window with a link to the cached Excel file Web resource.
          openExcelLinkPopup();
          } else {
          wdComponentAPI.getMessageManager().reportException(
          "Failed to create Excel file from table!", true);
          } catch (UnsupportedEncodingException e) {
          wdComponentAPI.getMessageManager().reportException(
          e.getLocalizedMessage(), true);
          } catch (WDURLException e) {
          wdComponentAPI.getMessageManager().reportException(
          e.getLocalizedMessage(), true);
    //@@end
Here please check it this line  cachedExcelResource = getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.XLS);
here you can u put like this cachedExcelResource = getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.DOC);
Here different Options is avaliable please find it
Hope it is help full for u
Regards
Vijay kalluri

Similar Messages

  • 500 Internal Server Error - Web Dynpro Content Administrator

    500 Internal Server Error - Web Dynpro Content Administrator  
    Any help would be really appreciated...
    I was trying to create/Maintain JCo destions on Web Dynpro Content Administrator caught up with the 500 Internal Server Error
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811.
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.NullPointerException
    at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:869)
    at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractSystemLandscapeFactory$1.checkStatus(AbstractSystemLandscapeFactory.java:310)
    at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:483)
    at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:534)
    at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:750)
    ... 73 more

    Possible Reasons:
    1. Some fields for the backend system used to setup the JCO destination are not updated properly (i.e.
    empty) in SLD.
    2. Ensure that the SLD is setup properly. Click on the u201CTest Connectionu201D to check that the SLD is up and running.
    Check section "NullPointerException in the trace when maintaining JCO destinations" in below SDN document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2 (Adaptive RFC- Troubleshooting Guide)
    Edited by: Anagha Jawalekar on Jun 25, 2009 9:11 AM

  • Using an other web dynpro application into an actual application

    Hello,
    I have a web dynpro application into a developer component previously developed. I want to import it an another web dynpro application.
    The goal is to click a button, display the window of the other application and then once it is finished, go back to the first application (with some context parameters)
    Is it possible ?
    Thanks
    Quentin

    Hi,
    Solved same issue in this thread Re: Data transfer between two different Web Dynpro components
    PradeeP

  • Converting Web Dynpro project into a Web Dynpro DC

    Hi
    I have a Web Dynpro project created.
    Now I want to convert it into a Web Dynpro DC (Development Component).
    Could anyone tell me if there is a standard procedure to do this?
    Right now, I am following the below procedure:
    Copy all the folders under root folder->src-> packages of Web Dynpro project into root folder->src-> packages of Web Dynpro DC.
    Rebuild the DC.
    But in this procedure I am getting errors (in view code) as the required interfaces (example, IPrivate<<component-name>>.java) are not getting generated when I re-build the DC.
    Could anyone help me with this issue?

    Hi Aditya,
    I have used two way for this and both worked fine for me.
    1. While creating DC project at the end there eill be a check box, which when you tick will show your local dynpro project and you can then import that.
    2. Create DC project after that copy the component of your local dynpro project and paste it on the option where you can create the component of DC project.
    After pasting click next - next so that everything remain in sync.
    After that check if you have any compilation error, check them if they are because of some jar files.. you have to add the library files by using the option -> DC Metadata ->DC Definition ->Used DC.
    If you got no compliation error, then just rename the component ( again click next) and then deploy.
    otherwise you may get deployment error.
    Hope this helps,
    Thanks,
    Namrta

  • Integrate Web Dynpro Application into a Guided Procedure Step

    hi guys
    I would like to integrate my Web Dynpro Application into a GP-Step.
    I DON't want a:
    - Web Dynpro Component (GP Interface)
    - Composite Application Web Dynpro Component
    I think I have to use "Web Dnypro Application" from the callable objects list.
    However, I couldn't see any input parameters.
    Thanks for your help.
    Regards,
    Go:khan

    Hi Gökhan,
    in my mind you only see Input/ Output Parameters within a Web Dynpro Application when you use the GP Interface.
    WHen you want to have some for parameter mapping, you must implement an Web Dynpro Application with GP connectors.
    Take the following tutorial to do that.
    Hope it helps
    Bye Steve

  • SLD info not updated in Web Dynpro Content Admin of NW CE 7.1 EHP1

    Hello Everyone,
    I have installed the CE 7.1 on my PC and am having this problem. I have created the destinations SLD_DataSupplier and SLD_Guest in NWA and uploaded using SLD Data Supplier service. The Java WAS is now reflected in the SLD as a TS and a Datasupplier. I have also performed all the SLD Initilization and config. However the SLD is still not reflected in the Web Dynpro content admin. When I press the Check SLD Connection button all the values are blank.
    Am I missing anything, Should I be doing any config in the Configtool? Any help is appreciated. Thanks in advance.
    Satish.

    Hi Satish Varma Vegesna.
    Check this link.
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09527da-39a7-2b10-9f99-c6a007e516a5]
    Regards

  • Jav Developer role = Web Dynpro Content Explorer

    Hi,
    When i navigate to Java Developer role => Web Dynpro Content Explorer(Detailed Navigation) in portal I am getting following error. I am getting the same error in ESS and MSS pages also...
    <b>
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sapportals/portal/pb/utils/RedirectData.
    Exception id: 10:45_30/01/06_0023_2755950
    See the details for the exception ID in the log file
    </b>
    When i look at log files ... I am getting the stack trace.
    <b>
    << item 0 : >>#1.5#0002553A11CD00520000002D000A316000040B9554A2BD58#1138635904826#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#SMANCHAL#1017##nadcp949_LPD_2755950#SMANCHAL#107dd96091a711da84b30002553a11cd#SAPEngine_Application_Thread[impl:3]_0##0#0#Error#1#/System/Server#Java###Exception ID:10:45_30/01/06_0023_2755950
    [EXCEPTION]
    #1#com.sapportals.portal.prt.runtime.PortalRuntimeException: PortalRuntimeException
    at com.sapportals.portal.prt.core.PortalRequestManager.handleRequestException(PortalRequestManager.java:921)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:803)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged1(Native Method)
    at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
    at java.security.AccessController.doPrivileged1(Native Method)
    at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/pb/utils/RedirectData
    at com.sapportals.portal.appintegrator.layer.HTTPRenderLayer.getPageRedirectObject(HTTPRenderLayer.java:282)
    at com.sapportals.portal.appintegrator.layer.HTTPRenderLayer.processLayer(HTTPRenderLayer.java:101)
    at com.sapportals.portal.appintegrator.LayerProcessor.processActionPass(LayerProcessor.java:173)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doOnPOMReady(AbstractIntegratorComponent.java:71)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java(Compiled Code))
    at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java(Compiled Code))
    at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java(Compiled Code))
    at com.sapportals.portal.prt.pom.PortalNode.processEventQueue(PortalNode.java(Compiled Code))
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:652)
    ... 23 more
    </b>
    Can you please help me with this...

    Hi Gary,
    > Now do I put this back in original directory
    Rrrighty.
    > do I need to add back .bak or leave as .par?
    Leave as PAR. If the server starts, all .par files within this directory get deployed and in the case of success, .bak gets added. So .par.bak files are not deployed again on the next startup.
    > do I need to delete original
    > then add my updated version?
    I think you don't need to delete the original, but just do it. If your changed .par file get deployed successfully, it will overwrite the old .par.bak anyhow.
    But make a security copy of the orginal file for the case that you have changed the original PAR in some strange way
    Hope it helps
    Detlev

  • Wrong SLD in web dynpro content administrator

    Hi Folks,
    I have a Java-System which shows the wrong SLD in the Web Dynpro Content Administrator. The settings in Visual Admin are correct and the connection test is working fine. I restarted the whole system, but to no effort. Where else can I change the SLD?
    Thanks in advance
    Clemens

    I looked only at the HTTP connection (but not in the CIM settings where the wrong values were set).

  • How to export my ABAP web dynpro content to another server

    Hi,
      I need to export my ABAP webdynpro application from one server to New server. Can any one please guide me how to do this.
    Regards,
    SPK.

    Hi
    You mean transporting your web dynpro comopnent across your landscape, use the transport system.
    Web Dynpro Object is like any other object you can transport.
    If the destination server is not maintained or is in other networks use this link will be helpful
    Import/Export webdynpro ABAP application
    Abhi

  • Web Dynpro - transform into PDF format

    Hi all,
    I would need your help. Now I am participating at a Web Dynpro project and one task is to realize PDF transformation and printing of Web Dynpro forms.
    That means we would place a button on the form called "Transform to PDF". If a user push this button in the browser, the page he is seeing has to be transformed into the PDF format and later printed as a normal PDF file.
    What is the best way to implement this?
    Thanks,
    Oleksandr

    There is no real alternative for the 'print screen' in WD4A, or the 'print' button (CTRL-P). But what you could do (if there are not too many screens to be printed) is this:
    Create a smartform (or adobe form for that matter), and call this after the print button is pressed. Display the smartform as preview, for where it can be printed via adobe reader.

  • Import/export web dynpro

    hi everyone,
    is it possible, to export and import a web dynpro successfully from one NWDS to another? i tried exporting to file-system and checked everything. as i imported it, mostly everything was missing. no views, models etc.
    how do i have to export the web dynpro and how do i have to import it?
    regards,
    constantin

    Constantin,
             If you have developed the WD application as a DC in your NWDS, you can directly copy the file structure from your repository(..\..\.dtc\LocalDevelopment\DCs\xyz.com\DCName) and paste the same file structure in the destination repository and everything would be restored as desired. On the other note it is always recommended to prepare your WD applications as part of the Development Components(DCs).
    Thanks!
    Surya.

  • No connection to SLD from Web Dynpro COntent Administrator

    Hi guys!
    I need to set up JCO connections to systems in Web Dynpro Admin, but I have no connection to SLD...  What is needed to set up?
    One more info: SLD has already imported CR content and is in status RUNNING..
    Thanx a lot!
    Peter

    Hi,
    Pls try the link below..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/11/0dfe55e0c8fc4e910706a47ca6859b/frameset.htm
    Hope this helps.
    Regards,
    venkat.
    [Reward points if useful]

  • Exporting Web dynpro

    HI,
    I have a problem with the pc on which is installed my netweaver dev studio. I would like to be able to export my web dynpro project so that I can load or import it on another pc with a correct netweaver studio.
    I have looked through the forum and tutorials of the SDN but have not found a procedure to do this.
    Can anyone help me ?
    Nicolas

    THere will be a corresponding folder for your webdynpro project in your file system.  Something like this.
    C:\Documents and Settings\<username>\Documents\SAP\workspace
    Under this folder you will see folders for all your projects in NWDS.  You can copy/paste these folders from your PC to a server for storage untill you want to import them onto your new PC.  You will just move them back to the same folder on the new pc. 
    Then you can open them in NWDS.
    REgards,
    Rich Heilman

  • Calling one Web-Dynpro program into Another

    Hi All,
    I'm currently working on a Web-Dynpro program in which I am display 3 tabs(Using TabStrip) and in each tab I have a ViewContainer.  
    I want to be able to execute other Web-Dynpro programs within the Viewcontainers of the Tabs. 
    If the End-User goes from tab to tab, I want to pass a select number of parameters between tabs.   
    Is this possible to do and if so, how can I set this up?
    Thanking you in advance.

    Hello Lisa,
    I'm not sure what you really want...
    If you want to share data between several views of one webdynpro component, you should use the [context|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/444941db42f423e10000000a155106/frameset.htm] of your [component controller|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e2/434941db42f423e10000000a155106/frameset.htm].
    If you mean by "execute other Web-Dynpro programs within the Viewcontainers" to embed another webdynpro component you should have a look at [Cross-Component Programming|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm].
    Regards,
    Alej

  • How to delete deployed Web Dynpro Content ?

    Hello again,
    simple question (i hope):
    How can i delete a deployed Web Dynpro Application from my portal ?
    Due to all these tests and trials there are a lot of useless WDApps in my portal.
    Did not find anything in help.sap.com or in the portal.
    Thank you !

    Hi Andreas,
    You can remove the deployed components through either SDM or through Visual administrator
    1) In SDM, you will find a tab 'UnDeployment'. In this view, you will be able to see all the applications currently deployed. Select the applications that you want to undeploy and proceed to undeploy.
    2) In Visual Administrator, under Server->Services->Deploy, you will find a radio button 'Application'. From here too you can select the required application and remove them.
    Hope this helps,
    Best Regards,
    Nibu.

Maybe you are looking for

  • Error occurs, BAPI_ACC_DOCUMENT_CHECK for creation of accounting document

    Hi Experts, I am creating accounting document using BAPI_ACC_DOCUMENT_CHECK  Bapi F.M.  Profit segment number  is mandatory ( T.code KEDR)  for G/L account 411103 .when i am using this G/L account for creation of accounting document, occurs below err

  • Why is Call Block not available?????

    I've started getting these harrasing political phone calls from the same number. In the past, I remember that I could use Call Block (*60) to block them. I now see that the feature  is "no longer available to new customers". So how do I keep these cr

  • Component visibility getting delay while drop the component in the Panel

    Hi, In my project I have used drag and drop functionality to drop the Icon from 1st panel to 2nd panel. The 1st panel contains three buttons with different icons and the 2nd panel is added as the destination (Drop place) in the desktop pane. While dr

  • Provisioning profile select missing in 2.2??!

    I've just upgraded to the 2.2 SDK and the options in the target info screen for selecting a provisioning profile is now missing in all my projects and any new projects I create Is it moved? is it a bug? How do I get this option back?

  • What file type do I need for imovie?

    I know the answer may seem obvious, but I'm getting a bit confused! I thought I needed something like .DV for imovie and the short clips I uploaded from my camera which are saved as .MOV wouldn't work. However some do and some don't? What may be the