Skip to Content
author's profile photo Former Member
Former Member

trace webdynpro application

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 08:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 08:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 08:42 AM

    Ayyapparaj

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

    regards

    sas

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.