Hi,
You can'n use the ABAP message syntax in webdynpro. If you want to display the message go through the below steps,
DATA:
lo_api_controller TYPE REF TO if_wd_controller,
lo_message_manager TYPE REF TO if_wd_message_manager.
"Error message display lo_api_controller ?= wd_this->wd_get_api( ). CALL METHOD lo_api_controller->get_message_manager RECEIVING message_manager = lo_message_manager. * report message CALL METHOD lo_message_manager->report_error_message EXPORTING message_text = 'Please enter correct address type'.
like this we have many types of message as follows, and we can call this message using the code wizard,
REPORT_ATTRIBUTE_ERROR_MESSAGE (Parameter PARAMS)
REPORT_SUCCESS (Parameter PARAMS)
REPORT_WARNING (Parameter PARAMS)
REPORT_ERROR_MESSAGE (Parameter PARAMS)
REPORT_FATAL_ERROR_MESSAGE (Parameter PARAMS)
REPORT_ATTRIBUTE_EXCEPTION NO (Parameters ELEMENT, ATTRIBUTE_NAME)
REPORT_FATAL_EXCEPTION
REPORT_ATTRIBUTE_T100_MESSAGE (Parameters P1, P2, P3, P4)
REPORT_T100_MESSAGE (Parameters P1, P2, P3, P4)
For more details go through the below links,
http://help.sap.com/saphelp_erp60_sp/helpdata/en/d8/2a934259a5cb6ae10000000a155106/content.htm
http://scn.sap.com/message/7229812
Regards,
John.