Basic Steps to create a web dynpro program
Hi Gurus,
I am an Abaper and i am very much interesting in Webdynpro... i don't have basic knowledge on Web Dynpro...
So can any one of you provide me the basic steps to create a program or If you have any docs then kindly share with me
Regards
Sameer([email protected])
Hi
This link will help you
http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
you can also search sdn for more helps and examples
Also check this thread
https://forums.sdn.sap.com/click.jspa?searchID=9213934&messageID=4627099
Regards
Sarath
Similar Messages
-
Error while compiling Web Dynpro program due to missing JAR files
Hi Experts,
I am getting error message while compiling Web Dynpro program. The erring lines are as below:
Message message = new MimeMessage(session);
try {
message.setFrom(new InternetAddress(fromMailId));
message.addRecipient(
Message.RecipientType.TO,
new InternetAddress(toMailId));
message.setSubject(mailSubject);
message.setText(mailBody);
message.setHeader("X-Mailer", "E-Mail");
message.setSentDate(new Date());
Transport.send(message);
The error messages are:
Message.ReceipientType can not be resolved
The method send(Message) is undefined for the type Transport
The method setFrom(InternetAddress) is undefined for the type Message
The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
The method setSubject(String) is undefined for the type Message
The method setText(String) is undefined for the type Message
Type mismatch: cannot convert from MimeMessage to Message
Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
Thanks,
SHI Stuart,
you are missing the jar files required for sending mail in java
Installing JavaMail
You will need the latest version of JavaMail (Version 1.2) available here:
http://java.sun.com/products/javamail/
Download and unzip the file, in the newly created top level JavaMail directory you will find a number of jar files,
these need adding to your classpath.
To do this in Eclipse, right click on your project in the tree view, select properties, select the libraries tab.
Now click the 'Add external jars' button, navigate to your JavaMail directory and click on the jars.
The tutorial also makes use of the Java Activation Framework, which is available here:
http://java.sun.com/products/javabeans/glasgow/jaf.html
Instalation of JAF is identical to JavaMail
activation.jar / mail.jar are 2 distinct names i remember rest you will get above
P.S: close the question to assist other users narrow the search and find solutions
Message was edited by:
Armin Reichert -
How to use the catalog in our own Web Dynpro program?
Hi Expert,
How to access MDM catalog and bring the product data back to a our own Web Dynpro program?Hi Masa,
The Catalog Search UI of SRM that is referred to as UI as aforementioned is a page which is capable of the selection of catalog items is linked from the shopping cart creation.
Our biz requirement content two scenarioes to processing the purchase requirement.
A. Create shopping cart via the catalog (PR) --> SRM PO Process --> SUS(PO and Invoice)
This is the standard SRM purchase scenario and we have already implemented that.
B. Create a requirement document via the catalog (This document is same with the SC but very simple, and we create this function by the own web dynpro program) --> transfer the requirement document to other purchasing system(none SAP) in our intranet.
So the key problems we faced are below:
1. How to connect to the catalog search UI from our own web dynpro program.
( If we connect the catalog via the MDM ABAP API, that will make the catalog serach UI could not be used;
Also it has been failed to simulate the function of SC's connection to the catalog;
So we decide to link the catalog serach UI via the URL, the linkage is "http://<J2EEserver:J2EEport>/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=General&username=&password=&catalog=<Repository Name>&server=&datalanguage=EN". )
2. How to transfer the catalog item data to our own web dynpro program.
If we link the catalog search UI by URL, we can not find any good method to transfer the catalog item data to our own program. -
Upload excel file to internal table in web dynpro program
Hi friend's
In web dynpro program how to upload excel file into internal table and finally data will be save Y table.hi,
See the properties of File Upload UI element..
Link: [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/732f0510d83ff6e10000000a42189c/frameset.htm]
Goto References -> User Interface Elements -> Integration Category -> File upload..
After creating the 'FILE UPLOAD' element in a view.. Bind a datasource(a context attribute with STRING) with the data property..
Double click on ONACTION_UPLOAD method. Write a code as given below.
METHOD onactionon_upload .
TYPES : BEGIN OF str_itab,
name(10) TYPE c,
age(10) TYPE c,
END OF str_itab. DATA : t_table1 TYPE STANDARD TABLE OF str_itab,
i_data TYPE STANDARD TABLE OF string,
l_string TYPE string,
fs_table TYPE str_itab,
l_xstring TYPE xstring,
fields TYPE string_table,
lv_field TYPE string.
DATA : t_table TYPE if_main=>elements_data_tab,
data_table TYPE if_main=>elements_data_tab.
* get single attribute
wd_context->get_attribute(
EXPORTING
name = `DATASOURCE`
IMPORTING
value = l_xstring ).
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = l_xstring
IMPORTING
out_string = l_string.
SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE i_data.
* Bind With table Element.
LOOP AT i_data INTO l_string.
SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
READ TABLE fields INTO lv_field INDEX 1.
fs_table-name = lv_field.
READ TABLE fields INTO lv_field INDEX 2.
fs_table-age = lv_field.
APPEND fs_table TO t_table1. "Append to the internal table
ENDLOOP.
Edited by: Rameshkumar Raamasamy on Feb 9, 2010 9:39 AM -
Need to create a Web Dynpro Application for SRM Portal
We need to recreate the start page for SRM Portal - (Supplier Self-Services) - without any images (as was delivered out of the box) - basically we need to break it down into 4 iViews: All Purchase Orders; All Sched Agreement Releases; All Invoices and Credit Memos; and Account History. All these iViews contains links.
How would one create a Web Dynpro Application to create the above iViews?
Regards,Hi zhang,
take a look to this:
KM:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/kmc/resource%2band%2bcollection%2bversioning%2busing%2bkm%2bapis
https://help.sap.com/javadocs/NW04S/SPS09/km/index.html
Excel:
/people/subramanian.venkateswaran2/blog/2006/10/02/enhanced-file-upload--uploading-and-processing-excel-sheets
Hope this help you.
Vito -
Testing on Multi-language Web Dynpro program
Dear all,
I am trying to create a new translation for my web dynpro program with no luck, checked with the document many times and find no idea what's goind wrong...
Here my last finding, please let me know anythings I can check:
1) I tried to add a new xlf for _en and this work
2) After I switch the language, I find that the text "row x of y" in the table control changed to the language I specific, but the label still using the one in *_en.xlf
3) I also tried to use the application property to specific the sap.locale, but point 2 still happen
Thanks in advance
Regards
BillHi Bill,
You can get the user's locale like this:
IWDClientUser clientUser = WDClientUser.forceLoggedInClientUser();
Locale userLocale = clientUser.getLocale();
Afterwards you can use the Locale's methods getCountry() and getLanguage().
One thing you have to remember is reloading your WebDynpro project after adding a new language for a xlf file. Rebuilding is not enough, you have to reload your WebDynpro project (right click on the project folder in the WebDynpro Explorer and choose "Reload" in the context menu. Only then will all the property files for the corresponding xlf files generated.
Cheers Marcel -
Problem while creating SAP Web Dynpro iView
Hi,
I am creating SAP Web Dynpro iView from iView Template.
The SAP Web Dynpro System Object is being created. The System Alias is also being created.
The Test Connection is successful with Portal Server.
Now, while creating SAP Web Dynpro iView from Template in Step 4:
I am not getting my System while an old system which is being deleted is being displayed.
Name of my System Object is: WD_System and System alias is: WD_Alias.
The Step name is:
Step 4: Application Parameter
Enter the paramater(s) of the application for which you want to create the iView
Regards
Kaushik BanerjeeHi Bala,
I am not getting the System Alias under:
User Administration-> User Mapping-> Logon Data(Select a Principal) (System Alias).
The System is successfully built under System Amininstration->System Configuration->System Landscape->Portal Content->kaushikb named WD_System and System Alias is named as: WebDynpro_alias.
The Test Connection is successful.
I am displaying the result below:
SAP Web AS Connection
Test Details:
The test performs the following:
1. Checks the validity of the system ID in the system object.
2. Checks if the system can be retrieved from the PCD.
3. Checks if a SAP system is defined in the system object
4. Validate the following parameters: WAS protocol; WAS host name
5. Checks if the host name of the server can be resolved.
6. Pings the server to see if it is alive.
7. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
8. Checks HTTP/S connectivity to the defined back-end application
Results
1. The system ID is valid
2. The system was retrieved.
3. The system object represents an SAP system
4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (kolapon:50000)
5. The host name kolapon was resolved successfully.
6. The server kolapon was pinged successfully.
7. The WAS ping service http://kolapon:50000/sap/bc/ping was not pinged successfully. If the ping service is not activated on the WAS, you can try to call the ping service manually.
8. An HTTP/S connection to http://kolapon:50000 was obtained successfully.
Regards
Kaushik Banerjee -
Conversion of SAP Internet services / ITS programs to Web Dynpro programs
Hi,
I am new to Web Dynpro. The basic information in I need to know is, what are all the ways we can convert the exisitng Internet (ITS) services to Web Dynpro programs.
Is there any tool available to convert them directly or does it involve any programming.
Regards
SatyaI dont think that there is any tool available to do the conversion. you have to recode them
Regards
Raja -
Error - Creating a Web Dynpro Application Accessing ABAP Functions
Dear All,
we are trying to implement a web dynpro application with accessing ABAP functions.
Previous tasks:
- insert the ABAP system into the SLD from the NWDI System (Transaction RZ70; the ABAP system is correctly insert into the SLD => technical systems)
- equipped the JCO connections with the web dynpro content manager (ping and test = OK)
Its the standard tutorial out of the SDN called Creating a Web Dynpro Application Accessing ABAP Functions.
Some hints:
- There are no errors after the implementation and the rebuild of the project in the NWDS
- The auto deployment works fine to the development runtime system. The application is shown in the Web Dynpro content manager
- The In the build log I found these entries:
System.err] [Invoked from com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:585)]
[System.err] java.net.UnknownHostException: FRASAPP562: FRASAPP562
[System.err] at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
[System.err] at com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:575)
[System.err] at com.sap.s2x.tools.GUID.<clinit>(GUID.java:179)
[System.err] at com.sap.s2x.tools.S2XGUID.getGUID(S2XGUID.java:19)
[System.err] at com.sap.ide.metamodel.core.i18n.LanguageState.createS2XID(LanguageState.java:191)
[System.err] at com.sap.ide.metamodel.core.i18n.S2XLanguageUnmarshaller.unmarshal(S2XLanguageUnmarshaller.java:52)
[System.err] at com.sap.ide.metamodel.core.i18n.TextPoolProxy.loadLanguageState(TextPoolProxy.java:703)
[System.err] at com.sap.ide.metamodel.core.i18n.TextPoolProxy.prepareLanguageForRead(TextPoolProxy.java:646)
[System.err] at com.sap.ide.metamodel.core.i18n.TextPoolProxy.isEmpty(TextPoolProxy.java:222)
[System.err] at com.sap.ide.webdynpro.checklayer.MDOChecker.check(MDOChecker.java:23)
[System.err] at com.sap.ide.webdynpro.checklayer.view.ViewChecker.check(ViewChecker.java:52)
[System.err] at com.sap.ide.webdynpro.checklayer.controller.ViewControllerChecker.check(ViewControllerChecker.java:96)
[System.err] at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:119)
[System.err] at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:56)
[System.err] at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:181)
[System.err] at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:56)
[System.err] at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2039)
[System.err] at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1296)
[System.err] at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
[System.err] at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[System.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[System.err] at java.lang.reflect.Method.invoke(Method.java:324)
[System.err] at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
[System.err] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[System.err] at org.apache.tools.ant.Task.perform(Task.java:364)
[System.err] at org.apache.tools.ant.Target.execute(Target.java:341)
[System.err] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[System.err] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[System.err] at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112)
[System.err] at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
[System.err] at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213)
[System.err] at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190)
[System.err] at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
[System.err] at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[System.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[System.err] at java.lang.reflect.Method.invoke(Method.java:324)
[System.err] at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
[System.err] at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102)
[System.err] at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76)
[System.err] at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
[System.err] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
[System.err] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1495)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
- Im able to start the application out of the Web Dynpro content manager with run => only the user interface is displayed without any functionality
- The normal start over the NWDS fails => error text
com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/J08_Flugdat_Daventdcflight~xxx.com' and application 'FlightListApp' are not deployed on the server. Please check the used URL for typos.
There two different URLs in use.
Start via NWDS:
http://frasapp562:50000/webdynpro/dispatcher/J08_Flugdat_Daventdcflight~xxx.com/FlightListApp
Start via web dynpro content manager:
http://frasapp562:50000/webdynpro/dispatcher/xxx.com/aventdc~flight/FlightListApp
For test purposes, we started the BAPI (BAPI_Flight_Getlist) on the ABAP system directly. It works.
Any ideas about the system behaviours (different URLs and missing functionality)?
Thanks a lot in advanced!
Best regards
ChristophThe Error has been solved The implementation of a method was missing....
Thx
Christoph -
Logical database in web dynpro program
Hi all,
I want to add LDB (PNP) into my web dynpro program.by which i can get the data from database to the Application server.After Authrization check.
I also want to use Infotypes 0082 in my program.
Points will be sured.
Thanks.Sanket,
Can you explain "add LDB"? Webdynpro gets data and displays data from R/3. So any LDB has to be part of the RFC/BAPI you call.
Same with infotype. If you want to "use" the structure of an infotype in Webdynpro, this structure needs to be part of the import/export of RFC/BAPI's signature.
Thanks,
Rajit -
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. -
Java error while compiling Web Dynpro program
Hi Experts,
I am getting following error message while compiling Web Dynpro program. The erring lines are as below:
Message message = new MimeMessage(session);
try {
message.setFrom(new InternetAddress(fromMailId));
message.addRecipient(
Message.RecipientType.TO,
new InternetAddress(toMailId));
message.setSubject(mailSubject);
message.setText(mailBody);
message.setHeader("X-Mailer", "E-Mail");
message.setSentDate(new Date());
Transport.send(message);
The error messages are:
Message.ReceipientType can not be resolved
The method send(Message) is undefined for the type Transport
The method setFrom(InternetAddress) is undefined for the type Message
The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
The method setSubject(String) is undefined for the type Message
The method setText(String) is undefined for the type Message
Type mismatch: cannot convert from MimeMessage to Message
Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
Thanks,
SHi,
Have you imported the required JavaMail jar?
Please tell me what API you are using for the same.
Also check Barcode Printing from EP --using barcode4J (Gurus kindly help me) forum to check how to add external jar files into WebDynpro project
Let me know if you need more help on it.
Regards,
Ashutosh -
Problems with tutorial: "Creating a Web Dynpro Tree"
Hi!
I'm a rookie and therefore I'm practicing on compleating some tutorials like "Creating a Web Dynpro Tree" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ec6622-8da5-2a10-349b-868b6a553efa)
I did just as the tutorial told me to (I think) but still I get a java.lang.NullPointerException when I deploy and run my application.
In the bold line is where it is something wrong:
public static void wdDoModifyView(IPrivateTreeView wdThis, IPrivateTreeView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
if (firstTime) {
IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TreeNodeType");
/* parameter mapping from parameter "path" to
parameter "selectedElement"
treeNode._mappingOfOnAction()._addSourceMapping("path", "selectedElement");
/* parameter mapping from parameter "path" to
parameter "element".
treeNode._mappingOfOnLoadChildren()._addSourceMapping("path","element");
//@@end
What I don't understand is what the function/meaning of the parameter path is. The parameters selectedElement and element I do recognize and have written. And I don't understand why there is a difference between the two underscored line of code (see above) even though the comments claim that it does the same kind of mapping.
Best regards
/JohanI tried to get "addSourceMapping()." underscored so people would better understand what I was referring to but it didn't work and that's why it looked weired.
Thanks for your help Armin, now it works fine.
It was as you said.
if (firstTime) {
IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TreeNodeType");
When I changed "TreeNodeType" to it's real ID, "TheNode" I didn't get a nullPointerException. I think it must be wrong in the tutorial because I followed the instructions which said to name it "TheNode" but then the author mus have forgot to change it from the default ID ("TreeNodeType").
Best Regards!
/Johan -
What to after Creating a Web Dynpro Application
Hello,
My question might a little stupid so please don't mind. I have created a web dynpro application where the user enters a sales order no and the output of is shown in an ALV format in web dynpro. My question is what next, I mean how do I give it to the users to use it. They should only be given the URL which is generated?
Also if i directly enter the URL it asks me for my Username Password of the SAP Logon. can this be avoided like some reports where one cant make any changes in the database just get the output this Username Password thing be skippedHi.,
You can create a Transaction for Web Dynpro Application to dispaly in browser as well as in SAP GUI.,
check this: can we create a tcode for webdynpro application?
else you can integrate it in Portal by creating iviews.,
check this article: [How to integrate Web Dynpro ABAP in Portal|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/008fc414-997f-2e10-3899-fd895ec8eb5e]
hope this helps u.,
Thanks & Regards,
Kiran -
Creating a Web Dynpro Application Accessing ABAP Functions
Hi all,
I implemented Creating a Web Dynpro Application Accessing ABAP Functions .But recently i heared a new word BW query.Is it not wat i did in the above application or is this a new backend sytem , does it have a new procedure to create model for BW Query in webdynpro rather than what i did in the above app
Regards
Padma NThe Error has been solved The implementation of a method was missing....
Thx
Christoph
Maybe you are looking for
-
Async interface needed out of Sync wsdl for communicting with idoc(async)
Hi all, I have a scenario like this 1.the sender is a synchronous webservice(wsdl provided by the client) 2.the reciever is an async Idoc I need to send the soap request message to the idoc.i dont need any response back,but the problem is its a sync
-
When someone sent me a picture, it disappeared...?
Someone sent me a picture on while we were talkin on my tablet. I did not download it at the moment. However, after that, it disappeared and I was not able to download or see it. I didn't receive any message such as "File error" or anything to let me
-
Detail Fade Effects Multiple divs
I've been working from the sample adobe has online: http://labs.adobe.com/technologies/spry/samples/data_region/DetailRegionEffectsSample.html It is set up to only fade in and out the description div, is there any way to achieve the same effect but w
-
I am recieving a runtime error microsoft visual c++ terminate in an unusaual way
I am recieving a runtime error microsoft visual c++ terminate in an unusaual way
-
Why do i keep losing all the addresses in my address book. happened about 3 times already
had a problem with my computer and when I got it back and my emails I had nothing in my address book.