A Step-by-Step Guide to Implement Message Handling in Web Dynpro for ABAP

  • by Vipin Nagpal, SAP ERP Technical Consultant, SAP India Pvt. Ltd.
  • May 18, 2012
Learn how to implement message handling in Web Dynpro for ABAP. Discover three techniques for how to do this, and step through a demo scenario to see which technique is best for your situation.
Key Concept
In an ABAP custom report, you can give a message command to display a message to the end user, but the same command cannot work in Web Dynpro for ABAP. Object-oriented ABAP knowledge is required to understand the message handling implementation technique.

Messages are important in Web Dynpro applications to show the exact status of a user action. With the help of messages, users can then take the appropriate action. For example, a warning or error message can be raised to validate user input. If the screen has a text input field for the customer or vendor number and the user should input a value, but the value doesn’t exist in the master table of the SAP system, the Web Dynpro application can raise an error to alert the user to the issue.

There are four types of messages that can be raised in Web Dynpro applications: success, error, warning, and fatal errors. I’ll describe three detailed approaches to implement message handling in Web Dynpro applications: Text (which uses a place holder at run time), T100 (which also uses a place holder at run time), and Exception (which can be used when standard exceptions are raised within the hook method and can be caught). There can be a dedicated message area user interface (UI) element to display messages. You can place the message area in the screen per your own requirements; otherwise the default location of the message area is the top of the page. The target audience of this article is ABAP developers who would like to understand and implement message handling in Web Dynpro for ABAP.

Vipin Nagpal

Vipin Nagpal is an SAP ERP technical consultant specializing in ABAP. He is a certified ABAP professional consultant. He has a master’s degree in engineering from BITS Pilani University, specializing in software systems. He has more than 10 years of experience in design, development, and production support in SAP ERP. He has worked with SAP ERP implementations for industries such as chip manufacturing, healthcare, aviation, and computer hardware equipment. He has worked with SAP ERP modules in sales and distribution, material management, plant maintenance, finance, and project system. He has been part of challenging assignments including SAP implementations for Japan Airlines and General Motors. 

To contact the editor, click here.

See more by this author


Comments

No comments have been submitted on this article. 


Please log in to post a comment.

To learn more about subscription access to premium content, click here.