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

exception handling in webdynpro


we have a project architechture where webdynpro communicates with session can we perform exception handling in do we show the exception in the an alert or something saying that this is an exception.

i am also unable to find the log file for viewing the details of an exception. where can i find the log file or how do i see a log file for an exception in webdnpro.

thanks in advance,


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jun 21, 2004 at 07:59 AM

    Hallo Harish,

    look at Sample Application 'Error Messages and Error Support' ( You can find it in the 'Web Dynpro Sample Applications and Tutorials' section containing the Web Dynpro feature-to-sample-matrix.(

    In addtion the NetWeaver Help contains a special section dealing with this topic: 'Web Dynpro'-'The Development Process' - 'Error Handling'.

    You can easily find the relevant NetWeaver Help information by utilizing the sophisticated SDN search functionality: in the search form at the left side type in 'Web Dynpro Error Handling' and select '' in the dropdown listbox.

    The default trace file of your SAP J2EE Engine is stored in <Drive>\usr\sap\<System ID>\JC00\j2ee\cluster\server0\log with the name 'defaultTrace.trc.0'.

    Greetings, Bertram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 22, 2004 at 06:45 AM


    Thanks for the reply.

    But,our objective is to make the back end perform some validations and communicate with webdynpro and show the exceptions that arise due to invalid access or something like that which tell the user that he cannot perform the action and proceed further as his request is not valid.

    these validations are performed in the backend(R/3) system and the result of the validation should be shown to the user in the webdynpro.

    <b>this is our scenario:</b>

    1. User/Initiator selects the PO Items for collaboration on the Inquiry UI Screen.

    2. User clicks on the “Collab” button.

    3. Validate if the Line Items selected are valid for collaboration. A selected Line Item is not valid for collaboration if:-

    (i) It is already in collaboration. i.e the status of the Line item is marked “In Collaboration”

    (ii) Item has been cancelled.

    (iii) Event Management Status prevents collaboration.

    <i><b>This validation is performed by a call from UI to the Services layer. Application Service – POCollaborationService -> Method: GetCurrentPODetails

    If any of the items are not valid then an exception is raised and an error mes-sage will be displayed in the UI. The user than can unselect the invalid items and continue or cancel.</b></i>

    please advise as of how to make the back end tell UI that there is an exception and prevent the user from proceeding further until he unselects some items which he cannot change or access

    thanks in advance,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Harish,

      If the backend is R/3, I don't think you might not have to interact with session beans. Instead you could use JCO to hook to the r/3 system. If the exception is a validation error, I assume it would be and export parameter or a table of the calling BAPI. Instead if the error is because of the connection , JCO could handle it and you can get access to the JCO exception in your web dynpro code.

      In order to display the error, you could use Error handling features of Web Dynpro. If you are specific about some functionality like alert button, your could user "createConfirmationWindow" of "IWDWindowManager".

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2004 at 07:09 AM

    HI! SAM!

    can you please tell me the path in WEBDYNPRO where can i find the "IWD Window Manager" and also "IWD Message Manager."i hope these would be required.i could not find them in webynpro environment

    thenks in advance,


    Add a comment
    10|10000 characters needed characters exceeded

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.