Create word in web dynpro
HI:
Now come across a problem.
In Web Dynpro, there are several UI: inputfield and fileupload. when click submit, create an microsoft word with the content of inputfield and fileupload. then save in server.
My question is : how to create microsoft word in web dynpro.
You need to use OfficeControl UI element.
check this link
http://help.sap.com/saphelp_dm40/helpdata/en/4c/9980415dc6050de10000000a1550b0/frameset.htm
Thanks
Bala Duvvuri
Similar Messages
-
Source code for "Creating an Extended Web Dynpro Application"?
Hello!
I'm a rookie in the field of SAP Netweaver and I'm justing getting started with some tutorials. My problems with "Creating an Extended Web Dynpro Application" are to massive to be posted on this forum in this stage. What I want to have some help with is to find the source code for that tutorial so I can get som guidence from there.
Following text is cut out of this page:
http://help.sap.com/saphelp_nw70/helpdata/EN/5d/f42fef2eec724597a03b6bcc670c2c/frameset.htm
Creating an Extended Web Dynpro Application
You can download the Web Dynpro project for the current tutorial from the Software Developer Network SDN (http://sdn.sap.com -> Web Application Server -> Web Dynpro -> Sample Applications and Tutorials) in two versions: one skeleton version you can use for exercises and one final version (solution) for an immediate build, deployment and run on the Java engine of the SAP Web Application Server.
How hard I try I can't find the specific source code on sdn.sap.com
Does anyone have a clue where it is?
Thanks!
Best regards
/Johan Månsson LindströHi!
I did what you said but I seem to miss the IDE folder. This is what it looks in my Explorer
C: > Program Files > SAP > IDE > CE > eclipse > (no folder called "examples")
I also did a search in this eclipse folder for "examples" but I did'nt find the example I'm looking for
I am running a newer version of NWDS:
SAP NetWeaver Developer Studio
SAP NetWeaver 7.1 Composition Environment SP03 PAT0000
Maybe that's why things don't look the same? -
How to create calendar in web dynpro abap
Hi ,
how to create calendra in web dynpro abap.
Thanks in advance.
Regards, Chetanhi,
For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
Regards,
Jithin -
Create iView for Web Dynpro Application
Hi guys,
I've created a Web Dynpro Application via NWDI and deployed to the j2ee server. Now, I'm trying to create an iView to link to that application. The steps I've done are:
1. Create iView for Web Dynpro Application
2. Select "Create iView from each application View"
3. Select my application.
That's when the error occurs at step 3. I select my application and click next, but an error msg keeps appearing telling me to "To continue, select at least one application" despite having already done so. Can anyone enlighten me on this? Thanks!
ZHenminHi,
First make sure the applications runs fine standalone. Also the versions for WAS and EP are maintained correctly. Actually, this error seems to be occur for many users. Check this thread too.
Open new Web Dynpro iView in EP7
If nothing works, restart the server and try creating the iView again.
Regards,
Harini S -
No component usage created in enhanced web dynpro component
Hi experts,
I am facing the following problem:
I'd like to enhance a web dynpro component in order to add a popup window. The popup is triggered by the process_event method. So far everything works just fine.
But the popup needs to know some context attributes from the main component, and I cannot create a component usage in order to set the context mapping.
Does anybody know how to solve this issue?
Thanks and regards
Jan Phillip HöftHi!
Thanks for your answers first of all.
I need the popup to be a stand alone web dynpro component, so I guess the assistant class doesn't do the trick because I can not access it in the popup component.
The popup is called when the business object is saved. So that the user is asked to notify other users that the document has changed. In this popup the user should fill in the message and click a button to send it and close the popup.
So I tried the OBN approach as well but with two problems :
1. I cannot close the popup component by coding (button click) because it has no direct parent component
2. The save event is not run through properly so the document stays locked by the user. But I didn't look into this yet.
So it would be perfect to have an embedded popup component which is based on a stand alone web dynpro application so it can be closed properly but it need at least access to the guid of the main component.
Anybody got an idea for this?
Thanks and regards
Jan Phillip Höft -
Can't create model in Web Dynpro
Hi all,
I want to create a model in a web dynpro project.
When i click the "models" --> "Create Model" in the , it appear below error.
===================================================
Internal error
Plugin name :Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
Method : createModel
Exception : java.lang.NullPointerException: null
===================================================
In the log file :
======================================================
com.sap.ide.webdynpro.ui.service.ServicesUI [Thread[main,5,main]] Error: Internal error
Plugin name: Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
Method : createModel
Message : An error ocurred. See error log for more details.
Exception : java.lang.NullPointerException: null
!STACK 0
java.lang.NullPointerException
at com.sap.ide.jcb.core.service.SAPLogonHelper.<init>(SAPLogonHelper.java:48)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.fillUpLoadBalancingPaneSystems(SAPLogonPage.java:1003)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.show(SAPLogonPage.java:303)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.createControl(SAPLogonPage.java:91)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.createPageControls(ModelWizard.java:408)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:524)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:473)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.createModel(ModelEditorCallback.java:52)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.createModelWithUI(ModelService.java:70)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.createModel(ServiceWithUI.java:49)
at com.sap.ide.webdynpro.tsmodel.application.provider.ModelNodeProvider.createUniqueName(ModelNodeProvider.java:55)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)
at com.sap.ide.webdynpro.projectbrowser.actions.PBCreateModelAction.run(PBCreateModelAction.java:95)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
=============================================================
NWDS
Version: 7.0.13
Build id: 200708072056
OS
Window Vista Home Basic 32bit
Could anyone help me?
Regards.
Wenjr
Message was edited by:
wenjr wuI encountered the same issue in all NWDS versions I tested on Windows Vista, while it works perfectly fine on Windows XP.
This issue is caused by com.sap.ide.jcb.core.service.SAPLogonHelper not being able to retrieve system environment variables on Windows Vista.
Fortunately the solution is simple: let NWDS think that it is running on Windows XP instead of Windows Vista. This can be achieved by adding the following parameter to "vm.parameters" in the NWDS installation directory (probably C:\Program Files\SAP\IDE\IDE70\eclipse):
-Dos.name='Windows XP'
(don't forget the single qoutes)
So your vm.parameters should look something like:
-Xmx1024m
-Xms256m
-XX:PermSize=32m
-XX:MaxPermSize=128m
-Dos.name='Windows XP'
Regards,
Hans de Boer
Edited by: Hans de Boer on Jun 25, 2008 1:17 PM -
Create Transaction for web-dynpro ABAP
hi
Can you help me in creating a transaction for web-dynpro ABAP.
thank you.If you want a SAPGUI transaction code that will launch your Web Dynpro ABAP application then I suggest creating a parameter transaction code that wraps around the SAP standard transaction code WDYID. You can use the parameter STARTMODE to decide if you launch your browser within the SAPGUI window or if it opens a new browser window. You will get SAPGUI based Single Sign On with this transaction code as well. Here is an example of a TCode I setup:
http://www.flickr.com/photos/tjung/2758987559/
And here is what it looks like when running in place within the SAPGUI:
http://www.flickr.com/photos/tjung/2758987583/ -
How to create Variants in Web Dynpro using ABAP
Can anyone please tell how to create and save variants in a Web DynPro application using ABAP.
Also state the steps involved in saving and loading the variants.hi,
For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
Regards,
Jithin -
How to create PopUps in Web dynpro
Hi,
How can I create Popup window in web dynpro's.
Regards,
VenkatHello Venkat,
Refer these links
<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f1cfe990-0201-0010-22ac-dbe4cbdef504">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f1cfe990-0201-0010-22ac-dbe4cbdef504</a><a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1208c2cd-0401-0010-4ab6-f4736074acc6">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1208c2cd-0401-0010-4ab6-f4736074acc6</a>
Hope the information helps.
Regards,
Sudeep. -
Hi,
I am new to WebDynPro.I have created a Hello World Application in WebDynpro using Netweaver Developer studio.This Dynpro application has been deployed on SAP Enterprise Portal 6.0 SP9.I am able to see this application in Portal when I go to Content Administration -> Web Dynpro.
The problem is , how do I create an IView out of this web dyn pro application.When I try creating a WebDynpro IView it asks for a system name , Do I need to create a system in Portal for Portal ? If yes then what could be the WAS settings ?
Also I want to know , that is the right approach that I am following to create WebDynPro IViews.
Any help is highly appreciated.
Thanks,
VivekHi Vivek,
yes, you need to create one system and corresponding alias for a WD iView. This system will define the system name where the WD application is running, it may be the same J2EE system where your portal is running, but still you have to create the system. In the iView property mention the system name and WD application name properly. Follow the Tutorial RK has suggested step by step. There should not be any problem.
Regards,
Shubhadip -
How to update multiple records in a table created in view (web dynpro)
Here is my coding......
*coding to get the district value
DATA lo_nd_district TYPE REF TO if_wd_context_node.
DATA lo_el_district TYPE REF TO if_wd_context_element.
DATA ls_district TYPE wd_this->element_district.
DATA lv_district_txt LIKE ls_district-district_txt.
navigate from <CONTEXT> to <DISTRICT> via lead selection
lo_nd_district = wd_context->get_child_node( name = wd_this->wdctx_district ).
get element via lead selection
lo_el_district = lo_nd_district->get_element( ).
get single attribute
lo_el_district->get_attribute(
EXPORTING
name = `DISTRICT_TXT`
IMPORTING
value = lv_district_txt ).
*coding to diplay records when clicking a button(Submit)
DATA lo_nd_table TYPE REF TO if_wd_context_node.
DATA lo_el_table TYPE REF TO if_wd_context_element.
DATA ls_table TYPE wd_this->element_table.
DATA lv_district LIKE ls_table-district.
navigate from <CONTEXT> to <TABLE> via lead selection
lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
get element via lead selection
lo_el_table = lo_nd_table->get_element( ).
get single attribute
lo_el_table->set_attribute(
EXPORTING
name = `DISTRICT`
" IMPORTING
value = lv_district_txt ).
The above coding updates only one record to that
table created in view.
If i enter 2nd district value means then the first record
in the table is overwritten.
So my need is the record should not be overwritten.
it(2nd record ) should be displayed after the 1st record.
Any one can help me and send the coding plz....instead of using set attribute you should use bind table method to display/update the records in table view.
step1 ) collect all the data in a local table
step2 ) and the bind that lacal table with your node
search1 = wd_context->get_child_node( name = `TABLE1` ).
search1->bind_table( lt_detail)
here lt_detail is your local table and TABLE1 is node which is bound with table ui element. -
Create ONACTIONLINK in web dynpro /SAPSRM/WDC_do_soco_gaf_2
Hi all,
i'm new in webdynpro abap and SRM and I'm studing it...
unfortunatelly i'm working on a project and noone can helkp me
my customer ask me to create a new table column for webdynrpo /SAPSRM/WDC_do_soco_gaf_2 and insert on if the link to see the change documents of my SC.
I create the column, but I don't find the way to implemented the method to read the changes documents.
i find wd_this->mo_dodm_sc_h_bd->document_changes( ) but i need to send some value that I don't understand what is, because in this moment I have the following dump :
"Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO
Exception CX_SY_REF_IS_INITIAL
Access via 'NULL' object reference not possible."
can you help me to understand in which way I can use the method ?
thanks in advance
BarbaraHello,
do not know if it also works with SRM 7.13, but check this below blog:
Restricting draft document types in SRM 7 sourcing cockpit
Regards.
Laurent. -
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,
JayHi 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 -
How to create a Web Dynpro Project from Downloaded zip file?
Hi,
I have been working in Java Web Dynpro for last 1 month but not able
to create any Web Dynpro from Downloaded zip file?
Can anybody tell me how to create a Java Web Dynpro Project from
Donloaded zip code?
Regards
Kaushik BanerjeeHi Kaushik,
You can add the existing zip file into your workspace by the following way -
First open the NWDS and create a new project by clicking file -> new -> Project -> Simple -> Project
and then File -> Import -> zipfile and then browse the zip file into the newly created project.
or else you can also unzip the zip file into a folder and then Use the option of Import an exisitng project into workspace. You can find this in the File-> import -> Existing project into workspace. and then use the Browse option to browse to the existing folder.
After importing the project you need to rebuild the project
Regards,
Raju Bonagiri. -
Creating mobile web dynpro application which customized theme
Hi guys,
I have created a mobile web dynpro application and a theme with Theme Editor. Then I have appended this theme with the sap-cssurl parameter to my application.
<b>my_application? sap-cssurl=http://host:port/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/MyTheme</b>
It works well in my first testing on my laptop.
In order to test it on my mobile device I have also appended sap-wd-client parameter to my application. Now my URL looks like
<b>my_application? sap-cssurl=http://host:port/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/MyTheme&sap-wd-client=PieClient</b>
It doesnt work. My application layout looks as if I dont use the theme. Did somebody have the same problem and can help me by finding a solution.
Thanks for your answers.
MaritaHi Marita,
Mobile Web Dynpro supports several handheld mobile devices. I guess yours is a Pocket PC. Except the newest Pocket PC 2003, all the other versions don't have CSS support. Therefore the current Pocket PC client "PieClient" of Web Dynpro lacks the ability for customized themes. On the other hand, themes are supported for more advanced devices, such as Nokia Communicator 9500/9300.
Regards,
Wei
Maybe you are looking for
-
I am new to using flash and need to know how to add check boxes and forms
I have been going mad trying to figure this out as well as searching until exhaustion. So I am hoping someone can point me in the right direction. Okay here is what I am trying to accomplish. I have laid out my design as a psd and brought it into ado
-
Mac Pro (early 2008) - a series of problems
Like many people here, I've been hit with a series of Mac Pro (early '08) issues. I've had the machine for a little over a month and I love it when it's working. But recently, the aforementioned "series of problems" has arisen - ATI graphics card fre
-
Financials 11i on Oracle 8.1.6/SOlaris2.6
As a development environment, we're installing Financials as a Single-Node Installation. I have two basic questions: 1) I notice from the documentation that the technology stack requires 8.0.6 ORACLE_HOME. Does it mean I need to install 8.0.6 separat
-
I'm trying to update my iPhone3G but I'm getting a message saying I'll lose all my apps, music, IStore purchases, etc. if I continue on my current computer, and should apply the update to the computer on which I last synced my apps, music, etc. Howe
-
i was updating my phone and and the connect to itunes sign has come on and wont go? now my phone is wont come on and if i try the same connect to itunes sign comes up