on 12-05-2007 7:49 AM
Hi!
The problem I'm having is that I need something like a possibility
to trace the whole application. Is it possible to get an log about
all variables and performed routines etc.
If so pls need advice on how to set up and implent it.
Regards
sas
Hi,
Use logging for this.
http://help.sap.com/saphelp_nw04/helpdata/en/e2/75a74046033913e10000000a155106/frameset.htm
/people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ayyapparaj
do you have a code snipplet kind of tutorial ..?
regards
sas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is manual tracing only..in this, we need to put the statements
objMessage.reportSuccess("value1 "+<value1>);
objMessage.reportSuccess("value2 "+<value2>); where we need to display the values of variables in the application.
Or if you want to find the statement at which the application is terminated..
put statements
objMessage.reportWarning("1");
<Stmt>
objMessage.reportWarning("2");
<stmt>
etc....
Regards
LakshmiNarayana
Hi Sas
1)Goto "WebDynpro Components">"Your Component">Message Pool
2)Add Message
a) Message Key -- >this is the name of the message
b) Message Type ->error/standard/warning/text -->choose the appropriate one
c)Message Text--> this is the message tobe displayed when error occurs
3) Create a UIElement "Message Area" (Click on error message to navigate to error)
following is the code to display the error message
IWDMessageManager manager = null;
IWDAttributeInfo attibute = wdContext.getNodeInfo().getAttribute(IPrivateXXXView.IContextElement.xx);
String message = wdComponentAPI.getTextAccessor().getText(IMessageXX.UR_MESSAGEKEY);
manager.raiseInvalidContextAttributeException(wdContext.currentContextElement(), attibute, message, true);
manager.raisePendingException();// this statement will not allow the pointer to go to next,until it satisfies the condition
Best Regards
Chaitanya.A
Hi,
Actually I don't know whether log will be prepared or not..
But Onething I Can suggest ..we can trace it using IWDMessageManager.
Create object of IWDMessageManager
IWDMessageManager objMessage=wdComponentAPI.getMessageManager();
and put statements like
objMessage.reportSuccess("value = "+<value>);
where you need to trace in the application
Ragards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.