DeBugginng The WebDynPro Application
Dear Gurus,
Im new to WebDynPro for Java , i want to know to debug the application , please any one of you can explain inn detail.
what is the difference NWDS and NWDI?
Thanks in advance,
Phani
Hello Phani,
To be able to debug within a running Webdynpro application, you must activate debugging of the server processes of J2EE engine.
This will be done in J2EE engine View.
Follow:-
a) Window --> Show View --> Other and then select J2EE --> J2EE engine.
Choose ok to confirm your entries.The system displays a view containing status information about the running J2EE engine.
b) expand the tree display fully until you can see the actual server processes.
c) Right click the server node and then choose Enable Debugging of Processes from the context menu.
Now, Setting a Breakpoint:-
a) Choose the place where you want to set the breakpoint. Right click on the marker bar, frame next to the line of code to open the context menu and choose add breakpoint (highlighted blue dot will appear)
Hope this helps, with respect to debugging.
NWDS:- SAP NetWeaver Developer Studio is used as an integrated development environment (IDE) which incorporates NWDI. The SAP solution is designed so that the developer can perform almost all his tasks within the development environment. Access to separate interfaces and the relevant services is only required in exceptional cases such as when having to adhere to a role concept with a manager for transporting applications. SAP NetWeaver Developer Studio is based on the platform of the Eclipse open-source development project. Using its plug-in mechanism, it supports a variety of development tasks and perspectives of the individual development objects.
NWDS is just a development environment with all robust development tools.
It can run j2ee,j2se and sap applications also.
It is an interface to access NWDI services and applications
NWDI:- NWDI is Netweaver Development Infrastructure.
NWDI provides an infrastructure to develop Java applications on netweaver platform and is responsible for versioning,building and lifecycle management of these applications developed.
It has mainly three components :
DTR(Design time repository) : for versioning of any file altered.
CBS(Component build service) : for building application in central build environment.
CMS(change management service):to transport and setup logical landscape.
[NWDI Basics|http://help.sap.com/saphelp_nw2004s/helpdata/en/44/312b1a8bea3ec8e10000000a1553f6/frameset.htm]
Hope this helps,
Regards,
Shailesh
Similar Messages
-
Runtime Error While executing the WebDynpro Application
I am getting the Runtime Error While executing the WebDynpro Application. The error message is "TSV_TNEW_OCCURS_NO_ROLL_MEMORY".
It says like "
Short text
No roll storage space of length 9728 available for OCCURS area.
What happened?
Each transaction requires some main memory space to process
application data. If the operating system cannot provide any more
space, the transaction is terminated.
But while executing some other Web Dynpro Applications, i am not facing this problem.Generally this error is a result of an infinite loop on internal table or select endselect statement where by severs temporary memory gets full. With no memory to insert new records in temporary memory system generates the dump.
Check your application or ask basis consultant to look at the memory parameters in instance profile.
Regards
Rohit Chowdhary -
How to set the WebDynpro application title (IE windows title)?
Hello all,
I would like to set the WebDynpro application title according to the current transaction ID. This title is the IE windows title that is shown on the upper left-corner of the IE browser.
Rule: [Object Instance Information] u2013 [Application Title] u2013 [Browser Title]
For example: Trans. <No.> - <My App> - Windows Internet Explorer
I would like to set <No.> dynamically on run-time according to my current transaction number.
I have this piece of code that gets a reference to the application info:
data: lr_app_info TYPE REF TO if_wdr_rr_application.
lr_app_info ?= wdr_task=>application->application_info.
And there is lr_app_info->get_description() method to have the description of the application, but there is no set method.
The application description can be hardcoded in:
tx. SE80, opening the WebDynpro component, then accessing its WebDynpro application. In the properties tab, there is a description field. I need to append transaction ID to it.
Do you know any way to implement this? This issue is for WebDynpro ABAP.
Best regards and thanks in advance,
Fouad.Hello Satra,
Thanks for your reply. I already had a look into that thread, but my question is not related to the windows title of the WebDynpro component.
My question is related to the title of the Internet Explorer that we all see on the top left-corner. For WebDynpro , this is the WebDynpro application title. How can we change it?
I hope my question is clear now, and I wish someone can help me soon.
With kind regards,
Fouad. -
Passing value from Adobe Interactive form, to the Webdynpro Application
Hi,
I have followed all the tutorials on interactive forms in WD for Java, & am able to successfuly display my context data in an interactive form.
However, i need help with the following:
1. Online scenario:
User has filled details in an interactive form & clicks on the submit button.
The Data from the form is NOT getting passed back to the WebDynpro application.
2. Offline Scenario:
User has filledup a pdf file(form), & has uploaded the form to the webdynpro application, using the file-upload UI element.
How do i read the data that the user has entered in that pdf file?
Any help with regard to these two queries, will be appreciated.
Thanks,
Hanoz1) Online Scenario
check if the context mapping between UI elements and Context is properly done
check if the cardinality of the Context is alright.
2) Offline Scenario
you will have two views.
one upload view
and one interactive form view
in the upload view use the File Upload UI element.
in the Interactive Form View.... use the same view which you used to create the offline form, thus the interactive form UI element will already know the structure of data and the context mapping in the pdf file when you upload it.
Add the following line of code to the
method wdDoInit.
wdContext.getNodeInfo().getAttribute
("pdfObject").getModifiableSimpleTyp
e();
Add the following line of code right
before
wdThis.wdFirePlugOutToDisplay()
in the method onActionShowForm().
wdThis.wdGetTravelRequestCompControl
ler().wdGetContext().currentContextE
lement().setPdfObject(wdContext.curr
entContextElement().getPdfObject());
in the interactive form view, change the property of the interactive form.... MODE to usePdf.
regards,
-Ag. -
How to secure the Webdynpro Application name ?
Hi Experts,
I have a requirement to send the Webdynpro Application name to Outlook inbox where the users will logs into that application and they will see the view the data and clicks on some action(Approve or Reject).
Now the my client does not want send that actual Webdynpro URL to outlook mailbox as it is having some security issues(host and domain details). Instead of that, can we change the actual Application name to any custom name by changing the host , domain and etc, parameters ?
Thanks in Advance,
Regards,
GiriHi,
If you want to hide the application path, goto SICF transaction and then create an External Alias for your WDA application path and then send the Alias path name.
Suppose, you have the WDA application url as
host:port/sap/bc/webdynpro/<APPLICATION_NAME> . Instead of this you can just show
host:port/sap/<Your Name> ( or any other) using Alias.
Regards,
Kiran -
Sending a Email from the webdynpro application
Hi Guys,
I am having one requirement in my application .ie. Email to the specified Id .
As per my reqirement i am having 4 fields in my UI page.
Task Id : T001
Assigned to : ratnakar
Mail id : [email protected]
Task Description : Test Area
Submit : Save(Button)
when i click the Save button the Email has to reach the specified id with the task description.
could any body please help how to proceed .........
Thanks and Regards
Ratnakar reddyHi Guys,
Some body sugested me to use the javaMail api .. i donot exactly how to use it in the webdynpro application. some where i got the below code ...
InitialContext ctx = new InitialContext();
Properties props = new Properties();
props.put("mail.smtp.host","Message server");
Session sess = Session.getInstance(props);
Message message = new MimeMessage(sess);
message.setFrom(new InternetAddress(wdContext.currentContextElement().getFrom()));
String recepient = wdContext.currentContextElement().getTo();
message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));
String subject = wdContext.currentContextElement().getSubject();
message.setSubject(subject);
String content = wdContext.currentContextElement().getMessage();
message.setContent(content,"text/plain");
// Send the message
Transport.send(message);
if i use the above same code i am not able resolve some errors with the session and internetAddress. becuse there are no supporting Imports to handle them even if used the Organise imports.
i am very new to this mailing concept can any body give me a step by step process ...to send the mail to the specified in the user interface.
Thanks and regards
Ratnakar -
How can we retrieve the Porta User in the Webdynpro Application
Hi,
How can we retrieve the portal user information in the webdynpro applications?.
Thanks in Advance
Chandra.Hi Chandra,
In the init() funtion of your View use client USER API below is the usage of it..
String Username = "";
IWDClientUser wdUser = null;
try {
wdUser = WDClientUser.getCurrentUser();
} catch (WDUMException e) {
e.printStackTrace();
IUser user = wdUser.getSAPUser();
Username =user.getUniqueName()
Thanks Raj.
xxxxxxxxxxxxxxxxxxxxxxxxx
Edited by: Armin Reichert on Feb 18, 2008 7:27 PM -
Want to load dynamic URL from the WebDynpro application
Hi ALL,
My problem is I developed a WebDynpro application to show the vendor details in the table.
I created a iview in the portal and integrated the webdynpro application. Taken 2 columnwidth page.
In 1 column to showing the vendor details and in another column i want to show the site of the vendor.
Now, In row selection I want to show the homepage of the vendor site in another ivew(2nd column) of the page.
Kindly help me out.
Thanks in advance.Hi,
Please follow the below process for passing data between two webdynpro applications using portal eventing.
Step1:-
Webdynpro Application 1 (Iview1)
Create an input field bind a context variable and have a button and write the following code in the button onaction.
public void onActionOK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.fire("urn:com.sap.tc.portaleventing.example","show",
wdContext.currentContextElement().getHi());
Here Hi-->is the context variable binded to the input field.
Step2:-
WDDOINIT write the following code:-
com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.subscribe("urn:com.sap.tc.portaleventing.example","show",wdThis.wdGetRaiseFireAction());
While creating the action it should have the following 3 parameters.
1.dataObject-->Type String
2.namespace-->Type String
3.name-->Type String
Your action code should look like something below.
public void onActionRaiseFire(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject, java.lang.String namespace, java.lang.String name )
wdComponentAPI.getMessageManager().reportSuccess("Value in the input field"+dataObject);
Note:-
1.Make sure your using portal along with domain
Eg:-http://portal:50000/irj/portal--->wrong
http://portal.domain.com:50000/irj/portal--->right
2.EPCF level should be 1.
3.Check whether both applications run on the same domain.Sometimes portal eventing does not work between cross domain applications.We should do domian relaxing in order to achieve this.
Thanks & Regards,
Lokesh Kamana -
Not able to access the WebDynpro application in BlackBerry.
Hi,
I have created a WebDynpro application. The application is workin fine on IE but when I access the same application from BlackBerry simulator 8830 it gives an error :
500 Internal Server error.
APPLICATION ERROR OCCURED DURING THE REQUEST PROCESSION
THE REQUESTED DEPLOYABLE OBJECT "InventryLookUpApp" is not deployed on the server.
Please check the URL for typos
The URL for the application is :
http://10.54.162.252:50000/webdynpro/dispatcher/sap.com/a1s~searchproduct/InventoryLookupApp
Please guide.
ManishHi Manish,
Try this link:
http://10.54.162.252:50000/webdynpro/dispatcher/sap.com/a1s~searchproduct/InventoryLookupApp?sap-wd-client=WmlClient
Let me know what happens.
Thanks,
Ted -
I am getting this error when i run the webdynpro application
I am getting follwoing error, when i click on the link available in the webdypro application. Please tell me what is the reason,
Error stacktrace:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: is.eimskip.pdfmodel.Zmulti_Pdf
Found in negative cache
Loader Info -
ClassLoader name: [local/SalesOrder]
Parent loader name: [Frame ClassLoader]
References:
common:service:http;service:servlet_jsp
service:ejb
common:service:iiop;service:naming;service:p4;service:ts
service:jmsconnector
library:jsse
library:servlet
common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
library:ejb20
library:j2eeca
library:jms
library:opensql
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:com.sap.security.core.ume.service;service:connector;service:dbpool;service:keystore;service:security;service:userstore
interface:resourcecontext_api
interface:webservices
interface:ejbserialization
sap.com/tcwddispwda
sap.com/tcwdcorecomp
service:webdynpro
service:sld
library:tcddicddicservices
library:com.sap.aii.proxy.framework
library:tcgraphicsigs
library:com.sap.mw.jco
library:com.sap.lcr.api.cimclient
library:sapxmltoolkit
library:com.sap.aii.util.rb
library:com.sap.util.monitor.jarm
library:tcddicddicruntime
library:com.sap.aii.util.xml
library:tccolapi
library:com.sap.aii.util.misc
library:tc~cmi
library:tccolruntime
Resources:
D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\local\SalesOrder\webdynpro\public\lib\app.jar
Loading model: {parent,references,local}
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:378)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:186)
at is.eimskip.pdfmodel.Zbapi_Salesorder_Getpdf_Output_Input.<init>(Zbapi_Salesorder_Getpdf_Output_Input.java:51)
at is.eimskip.comp.PDFCust.GetPdfFileName(PDFCust.java:145)
at is.eimskip.comp.wdp.InternalPDFCust.GetPdfFileName(InternalPDFCust.java:171)
at is.eimskip.comp.ResultView.onActionShowBL(ResultView.java:409)
at is.eimskip.comp.wdp.InternalResultView.wdInvokeEventHandler(InternalResultView.java:365)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:640)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Caused by: java.lang.ClassNotFoundException: is.eimskip.pdfmodel.Zmulti_Pdf
Found in negative cache
Loader Info -
ClassLoader name: [local/SalesOrder]
Parent loader name: [Frame ClassLoader]
References:
common:service:http;service:servlet_jsp
service:ejb
common:service:iiop;service:naming;service:p4;service:ts
service:jmsconnector
library:jsse
library:servlet
common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
library:ejb20
library:j2eeca
library:jms
library:opensql
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:com.sap.security.core.ume.service;service:connector;service:dbpool;service:keystore;service:security;service:userstore
interface:resourcecontext_api
interface:webservices
interface:ejbserialization
sap.com/tcwddispwda
sap.com/tcwdcorecomp
service:webdynpro
service:sld
library:tcddicddicservices
library:com.sap.aii.proxy.framework
library:tcgraphicsigs
library:com.sap.mw.jco
library:com.sap.lcr.api.cimclient
library:sapxmltoolkit
library:com.sap.aii.util.rb
library:com.sap.util.monitor.jarm
library:tcddicddicruntime
library:com.sap.aii.util.xml
library:tccolapi
library:com.sap.aii.util.misc
library:tc~cmi
library:tccolruntime
Resources:
D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\local\SalesOrder\webdynpro\public\lib\app.jar
Loading model: {parent,references,local}
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:348)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:373)
... 32 moreFound in negative cache.... very strange.
RFC found in negative cache
What is the negative cache? -
Lost the webdynpro application source code
Hi Experts,
We have some webdynpro applications. Presently running in Portal server. One of the application is giving the error. we need to fix that issue. Since we don't have any NWDI system, One of the application source code got corrupted, Kindly let me know is there any we can retrieve the source from the deployed application or .ear file from Portal.
Regards
VijayHi Guru,
I think it is not possible to get the whole project structure.
But you can get the java files of your local DC project by logging into your portal using the url http://host_name:5000/nwa.
Navigate to Analysis ->Configuration ->J2EE Configuration Browser . Click on Local System Node ->apps->sap.com. Under sap.com(or the domain you have defined namespace) you can find a u2018src.zipu2019 file. In this u2018srcu2019 folder you can find the java files.
If the error has occurred in your project while modifying particular webdynpro file, then you can get the previous version of the file(file before the error occurred) by navigating to C:\Documents\SAP\workspace\.metadata\.plugins\org.eclipse.core.resources\.history location in you local system. In history folder you can find all the versions of the webdynpro file which you were modifying till now.
Thanks,
Shilpa -
How to debug the webdynpro application
Hi ,
i am facing a problem for debugging web dynpro application from offshore (my server is located in onsite) and i connected using VPN and also i changed my SDM Debug Mode to ON and also enable debugging of process also but it is giving error message like this
<b>Failed to Connect to remote VM.Connection Refused</b>Hi Nageswara
The link provided shows you hoe to debug WebDynpro application.
Its a eLearning course available on sdn, which shows step by step process.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/3178ae74-0701-0010-ba8d-e3ca9f1edc1e
Hope ur problem is solved.
Pls award points for answers. -
Adding and reading the parameters from the WebDynpro Application URL
Hi,
I have a WebDynpro Application with two views. Based on the values populated by the user in the first view, I am pulling the data from database and populating the data in the second view. I do have a scenario where I have to skip the first screen and show the second screen directly. But, for the values that has to be populated in first screen, I am planning to append the parameters in the url and provide the link to the users via email.
Is it possible to add parameters to URL and read those Parameter values when user clicks on the URL.
Thanks & Regards
swetha.HI,
Code for accessing params in webdynpro java:
String urlParamVal = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("URL_PARAMETER");
if((urlParamVal != null) && (urlParamVal.trim().length() > 0))
<Write the code>
Reading parameters:
Re: Reading URL Parameter
How to pass and fetch multiple parameter in the URL of the Web Dynpro
Regards,
Lavanya.G -
Debugging the webdynpro application
hi
iam trying to debug my webdynpro application
its showing as
selected server node doesnot run in a restricted load
balancing mode
any suggestions ?hi
thanks for the reply
i have gone through this document
in selecting the j2ee engine where we select
server node its showing up the error as in the cluster
we have two nodes server 0 and server 1
any suggestions ? -
How to transport the webdynpro applications from development production
Hi Experts,
We are implementing the first time NWDI for development.
As per my knowledge . There will only NWDI available for the whole landscape to manage and track the information.
NWDI will only one for the whole landscape?
How do we need to transport the ;build application from the dev sytem to production through NWDI.?
How the transport life cycle will be managed with NWDI and with out using NWDI?
As of my knowledge . we need to specify the production or testing mechine information in the NWDI to transport the build file from deve to -> testing to -> production.
Because my clients not allowing to specify the the production system information in nwdi to transport from dev to prodution using nwdi?
what is the other solution available?
By giving the production information in NWDI will give any problems futher?(like security).
Regards
VijayHI,
NWDI is Simply used to manage life cycle.
A developer will develope application. that time he needs to create an activity.
1. when activity is checked in & activated -> code is sent to DTR in development space, and CBS builds that code and its .sda or .ear file is deplopyed on development server.
2. same when you release it -> code is sent to DTR in Consolidation space and CBS builds and deploy it on consolidation server.
3. after that you can assemble you whole development in single file i.e. .sca file, and its get deployed on test server.
simple..
and if your client dont want to specify production system in NWDI., then when you assemble an .SCA file of your development, just copy it from CMS folder of your NWDI installed drive. and send it to your client..
he will externally deploy it on production
Maybe you are looking for
-
Maintaining Multiple Arch Installs, Symbolic Links, BTRFS
Hi again. A quick update on my previous post (https://bbs.archlinux.org/viewtopic.php?id=164627). The GRUB problem I was having seems to have stopped. I got a very useful recommendation regarding pacman and XBMC still hasn't been fixed, but is fully
-
Help Needed.. Creating custom calendar problems
I am trying to create a calendar like this DateRun Shift 10/27/2004 06:30 A 10/27/2004 18:30 B 10/28/2004 06:30 C 10/28/2004 18:30 D and so on.. except that there is a small login inside for day when it is Thursday. One week Shift 'A' works and the n
-
Mac OS X 10.4.8 Update download
We have dial-up connection through Juno because we do not have any high speed internet available were we live. We were unable to retrieve the Mac OS X 10.4.8 update due to the size of the update. Our internet connection is lost before it comes close
-
Pixma MG5220 Windows 7 can't find wi-fi connection
I have used a Pixma MG5220 printer with my Windows 7 machine for a long time. Recently, however, I needed to re-format and re-initialize the PC. I have the MG5220 as a wi-fi printer on the home network. I see it as a network device in Windows Expl
-
Any help on image overlapping?
Hello, does anyone know how to create a swing with 2 overlapping images? eg. the 2nd image is covering half of the 1st image, while I can still click on either one of the image? thx a lot