cancel
Showing results for 
Search instead for 
Did you mean: 

trace webdynpro application

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Ayyapparaj

do you have a code snipplet kind of tutorial ..?

regards

sas

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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