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?
Similar Messages
-
Custom seach help for standard field in Web dynpro application
Hi All,
I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help.
As the SRM Shopping cartcreation screen is a standard web dynpro application.
Can anyone help me in this regard for addition of search help for a field with some custom fields in the Search help screen.
Any inputs will be very helpful.
Thanks in advance.
Regards,
Ahmed.Hi Ahmed,
If it is an standard application then you will have to do ENHANCEMENT in the component. And for using customised value help you will have to declare attribute in CONTEXT and dynamically change the binding of the Value property of UI element inside post-method of WDDOMODIFY. You can create your own customised value help for newly added attribute.
Thanks,
Vishesh -
How i can capture the value for ovs selector in web dynpro application
hi
i create one OVS for SALES DOCUMNT MY PRIMARY KEY
FILED IS VBELN AND I WANT GENERATE ONE REPORTS FOR SALES DOCUMENT HOW THIS SERCH HELP IS CAPTURE THE VALUE I WANT TO SOULATION>
awadhesh chandel wrote:
> hi
> i create one OVS for SALES DOCUMNT MY PRIMARY KEY
> FILED IS VBELN AND I WANT GENERATE ONE REPORTS FOR SALES DOCUMENT HOW THIS SERCH HELP IS CAPTURE THE VALUE I WANT TO SOULATION
I am afraid that you are going to have to supply a few more details. What exactly are you having problems with? Do you need help creating the OVS? Or perhaps on how to capture the input from the OVS? Or do you nee dhelp actually generating the report of the sales documents itself? -
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 -
Basic question on a web dynpro application
Hi All,
I am new to NWDS 2004 and I just executed my first web dynpro application that is on https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/creating your first web dynpro application.pdf
I have couple of questions
1. when i click the back button the text that was entered in the Start view is visible even after I hit the back button in the result view. Can you tell me how to keep the input field empty in the start view after hitting back button?
2. After deploying the Web Dynpro application, where from the Portal, can i assign this web dynpro application to a user .
Thank you
Regards
LukeTry putting adding this code to your onActionBack method.
public void <b>onActionBack</b>(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionBack(ServerEvent)
<b>String headerText = " ";
wdContext.currentContextElement().setHeaderText(headerText);</b>
wdThis.wdFirePlugToStartView();
//@@end
REgards,
RIch Heilman -
Hi All,
Current Scenario -
We have deployed ESS & MSS Business package on one WAS and the iviews are present on another WAS.We have created a Dedicated R/3 system which is pointing to the WAS where these packages are deployed.
All these things are working fine i.e. once the user maps the id pswd it directly runs the Web Dynpro applications in the iviews.
That means, even if application is running on one WAS, and the user personalises data on another WAS, it still retrieves the credentials and shows the appropriate results for ESS MSS Packages.
Query-
Now i need to implement the same scenario in my Web Dynpro application
Steps
1) I have the WD application running on one WAS and portal on another
2) In portal there is a R/3 system created
3) The Web Dynpro application needs to know if the user has personalised mapping against that system created on portal(other WAS)
4) If yes show him the home page else take him to the login page.
Just as it is implemented for ESS MSS Packages.
How can i pass the mapped data to the Web Dynpro iview ?
Thanks and Regards,
Samta NichaniAmol,
as this questions existed twice, I've deleted one.
As roles are in the UME, you can access them. But why do you want to do this? You could login to that user, but then the question is what you want to do....
Regards,
Benny -
Securing Web-Dynpro application with Netegrity
Hi,
I'm developing a web-dynpro application that will be secured by Netegrity SiteMinder. SiteMinder is a reverse-proxy that authenticates the user and adds the user details as additional headers to the HTTP stream. According to the documentation I found in SDN with regards to JAAS and NetWeaver it looks like SAP has added callbacks so that I can retrieve HTTP headers in my custom login-module. I've implemented a simple login-module and deployed it, but now am stuck with the following issues:
(1) I can't seem to be able to debug the module (even when I create a simple HelloWorld.jsp and require the use of this module in the visual administrator, the debugger seems to ignore the break-points).
(2) I can't find any possibility to configure the engine so that this specific module is required for authenticating my deployed web-dynpro application.
My questions are as follows:
(1) Is it possible to use standard JAAS authentication with web-dynpro applications?
(2) How do I debug JAAS login modules?
Regards, Chris.<b><b>Hi Adrian
During the Life cycle of your application Your connection will be Released when it is inactive for particular Time (The inactive time limit will be specified in the JCo Pool Settings that would be in milli seconds)
The RFC Connection can be Monitored using the Gateway process .
There are Some Predefined Connections in the Gatewway Process and each connection Requires approximately 200Kb of Memory.
So the memory cosumption of the Gateway process is proportional to the number of Active RFC Connection.
For More Details Check This
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a">JCo Connection Pools</a>
Regards
Chandran S</b> -
Assigning a login module to a Web Dynpro application
Hi everybody,
I would like a Web Dynpro application to use a custom login module for authentication. How can I do this?
What I found is the Security Provider (in the Visual Administrator tool) where I can add a login module to the "form" authentication mechanism for example. But if I do this I think all applications using this mechanism have to use my custom login module, right?
I wonder if I have to add my Web Dynpro application as a component to the Security Provider so that I can assign login modules to it. Am I on the right way? If yes, how can I do this? If I choose "Add" from the "Policy Configurations" tab a popup appears where I can enter the name for a new component. How do I specify my application there?
Thanks in advance for all answers,
TorbenHi,
Web Dynpro applications use the ticket authentication template. U wud need to add your login module to the ticket template's login stack.
Incase you are accessing the Web Dynpro applications thru the EP u wud need to make changes to the authschemes.xml file too.
regards,
Vishal -
Html code(source code) for a web page
hi all
i want to get the source code for a web page throgh
my java program .please can you tell me how to do it.
thanksgive this a try.
import java.awt.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
public class JApplet1 extends JApplet
public void init()
getContentPane().setLayout(null);
setSize(470,391);
JButton1.setText("google.com");
getContentPane().add(JButton1);
JButton1.setBounds(12,12,120,24);
getContentPane().add(JScrollPane1);
JScrollPane1.setBounds(12,48,444,336);
JScrollPane1.getViewport().add(JTextArea1);
JTextArea1.setBounds(0,0,440,332);
SymMouse aSymMouse = new SymMouse();
JButton1.addMouseListener(aSymMouse);
javax.swing.JButton JButton1 = new javax.swing.JButton();
javax.swing.JScrollPane JScrollPane1 = new javax.swing.JScrollPane();
javax.swing.JTextArea JTextArea1 = new javax.swing.JTextArea();
class SymMouse extends java.awt.event.MouseAdapter
public void mouseClicked(java.awt.event.MouseEvent event)
Object object = event.getSource();
if (object == JButton1)
JButton1_mouseClicked(event);
URL u;
URLConnection conn;
InputStreamReader in;
BufferedReader data;
String line;
StringBuffer buf = new StringBuffer();
void JButton1_mouseClicked(java.awt.event.MouseEvent event)
try{
u = new URL("http://www.google.com");
conn = u.openConnection();
in = new InputStreamReader(conn.getInputStream());
data = new BufferedReader(in);
while((line = data.readLine()) != null)
buf.append(line + "\n");
JTextArea1.setText(buf.toString());
}catch(Exception e){}
} -
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 -
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 -
Need sample source code for calling stored procedure in Oracle
Hi.
I try to call stored procedure in oracle using JCA JDBC.
Anybody have sample source code for that ?
Regards, Arnold.Thank you very much for a very quick reply. It worked, but I have an extended problem for which I would like to have a solution. Thank you very much in advance for your help. The problem is described below.
I have the Procedure defined as below in the SFCS1 package body
Procedure Company_Selection(O_Cursor IN OUT T_Cursor)
BEGIN
Open O_Cursor FOR
SELECT CompanyId, CompanyName
FROM Company
WHERE CompanyProvince IN ('AL','AK');
END Company_Selection;
In the Oracle Forms, I have a datablock based on the above stored procedure. When I execute the form and from the menu if I click on Execute Query the data block gets filled up with data (The datablock is configured to display 10 items as a tabular form).
At this point in time, I want to automate the process of displaying the data, hence I created a button and from there I want to call this stored procedure. So, in the button trigger I have the following statements
DECLARE
A SFCS1.T_Cursor;
BEGIN
SFCS1.Company_Selection(A);
go_Block ('Block36');
The cursor goes to the corresponding block, but does not display any data. Can you tell me how to get the data displayed. In the future versions, I'm planning to put variables in the WHERE clause. -
Problem of Creating a web dynpro application based on a car rental web serv
Based original SAP developer studio examples shipped with the developer studio, I first create J2EE application QuickCarRental. It works at http://192.168.254.4:50300/QuickCarRental.
A web service QuickCarRentalWebService is defined in J2EE application QuickCarRental. My web dynpro application TutWD_CarRental is web service consumer invoking QuickCarRentalWebService.
When I deploy TutWD_CarRental on SAP J2EE engine and run the application at http://192.168.254.4:50300/webdynpro/dispatcher/local/TutWD_CarRental/CarRentalApp, i can see the web dynpro web application interface right.
however, I get the following error when I input some data and Click button rent a car.
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
when i click Display all bookings, the error is:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
I install SAP developer studio on my winXP desktop, and the SAP developer studio version is 2.0.10.
I have my SAP Web application server and J2EE engine Version 6.40 run on a different machine. the SAP server IP address is 192.168.254.4
could anybody give me some clue on this. is that because i miss some configurations on SAP server for enabling web services of QuickCarRentalWebService?
Thanks!
ThomasHI
Find here.
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/9fc0e990-0201-0010-199c-e38fc6dafb5d
Thanks
Lohi. -
Implementing cache for dropdown values in Web Dynpro Iview
Hi All,
I am currently in the processing of enhancing a web dynpro application which contains among other things around 15 drop down boxes. The values in these drop down boxes are coming from oracle database and these values change occasionally.
To optimize the response time, I have implemented simple caching machanism using static variable in plain java class. The objective is to retrieve the values for the first time from oracle db and use the same datastructure for subsequent calls. Though I have found that the number of calls to the database reduced significantly I am facing some problem understanding and implementing the cache refresh behaviour.
I want to implement a cache refresh machanism for every 12 hours.
Solutions tried.
Creating a thread to refresh the cache for every 12 hours.
Creating a timer for refreshing the cache for every 12 hours.
Problems encountered :
1. Is it appropriate to use threads in a web dynpro app?
2. What I have observed is that the thread (I have created a daemon thread) is alive even after I have deployed a new copy of the code. When I deploy a new code is it not supposed to remove all copies from the memory?
If using a daemon thread is appropriate, What is the web dynpro
framework's class loading behavior when a new copy of code is deployed?
Does it completely unload existing classes (there by killing the daemon thread
created in previous deployment)?
3. Assuming that we have found suitable solution for thread issues, what would happen when the application is deployed on a cluster? Can we send a message to
all the nodes in the cluster?
I would like to understand what other developers has done in these kind of situations. Your experience and insight will be valuable and help me decide to implement caching or not in the first place.
Thanks in advance.
Regards
Pallayya BatchuPallayya,
<i>1. Is it appropriate to use threads in a web dynpro app?</i>
Not recommended as with any J2EE application
<i>2. What I have observed is that the thread (I have created a daemon thread) is alive even after I have deployed a new copy of the code. When I deploy a new code is it not supposed to remove all copies from the memory?</i>
Re-deployment doesn't mean stopping all user spawned threads. It just causes unloading of classes if there are no hard references from anything but deployed application. In your case, there are probably references from Thread/Runnable so your previous version is not unloaded on redeployment.
<i>3. Assuming that we have found suitable solution for thread issues, what would happen when the application is deployed on a cluster? Can we send a message to all the nodes in the cluster?</i>
Probably you can, probably you cannot. Even if you can it would be complex.
My advise -- abandon threads altogether, use real cache instead:
package com.yourcompany.yourapp.utils;
import java.util.HashMap;
import java.util.Map;
public class ValueHelpCache {
private static class Entry {
long lastLoadTime;
Map payload;
Entry(final Map payload) {
this.payload = payload;
this.lastLoadTime = System.currentTimeMillis();
final private Map _entries = new HashMap();
private ValueHelpCache() {}
synchronized public Map getValueHelp(final String valuyeHelpKey) {
Entry entry = (Entry)_entries.get(valuyeHelpKey);
if ( entry == null) {
entry = new Entry( loadValueHelpFromDatabase(valuyeHelpKey) );
_entries.put(valuyeHelpKey, entry);
} else {
final long now = System.currentTimeMillis();
if ( now - entry.lastLoadTime > ENTRY_TTL ) {
entry.payload = loadValueHelpFromDatabase(valuyeHelpKey);
entry.lastLoadTime = now;
return entry.payload;
private Map loadValueHelpFromDatabase(final String valuyeHelpKey) {
/* @TODO implement loading values from database */
return null;
public static ValueHelpCache getInstance() { return INSTANCE; }
final public static long ENTRY_TTL = 12 * 60 * 60 * 1000;
final private static ValueHelpCache INSTANCE = new ValueHelpCache();
This way client code tracks itself what entries are stale and need to be reloaded. No threads at all and no problems in cluster. You may alter time tracking mechanism to reload at given time of day, say at 12AM and 12PM -- just use java.util.Calendar and change code accordingly.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
Where's the source code for the MIDP 2.0
Hi
does anybody know if the source code for the MIDP 2.0 is available anywhere, if so please give me the link, I've searched for it but couldn't find. I need it to create a custom class based on the Command class, but need to have a look at the source code of the "Command" to make the appropriate changes to my extending class, so I can't do it without a look under the hood.
Any help would be greatly appreciatedYou can find reference implementations at http://java.sun.com/products/midp/index.jsp
But they are only to assist manufacturers in implementing their own versions, and do not necessarily reflect the code running on a given device. All you can assume is what is stated in the MIDP specification. However, reading the RI code may help you better understand the spec.
Maybe you are looking for
-
Need help with 2 monitor set up on MacBook Pro.
-
How can I read mail attachment for making it to the payload?
Hi everybody, in the following my scenario: I have an incoming message with attachment by the mail sender adapter using PayloadSwapBean (because of other messages I have to use the bean). I want to send this attachment by using the mail receiver adap
-
Lync can't complete video call to VCS via B2BUA
Hi folks, I did the implementation in my customer of VCS gateway with Lync 2013 using B2BUA. But the call dont work, The log in VCS is: tvcs: Event="Call Rejected" Service="SIP" Src-ip="10.252.48.42" Src-port="49817" Src-alias-type="SIP" Src-alias="s
-
How to determine the Oracle Application server version in 11i?
Hi Hussein: I just applied the CPU April 2009 for my database and I am trying to patch the Oracle application Server. I found out the Apache version Server version: Oracle HTTP Server Powered by Apache/1.3.19 (Unix) Server built: Aug 7 2003 19:01:25
-
Bang and Olufsen BeoSound 2 - incompatible?
Hi there, My Bang and Olufsen BeoSound 2 mp3 player used to get along really well with my old OSX, now I've upgraded to Tiger it won't talk to iTunes any more. The dock is all lit up as it should be, it makes all the right noises, but no joy. iTunes