Skip to Content

How to link error message with specific field of table in web Dynpro table ?

Dec 13, 2017 at 10:30 AM


avatar image

Hi Web DynPro Experts,

I have created a table in view in Web DynPro. Last column of table is editable. I want to show error message if user enters '0' value and presses enter. Again there is save button implemented by FPM. I also want to restrict user to proceed unless he/she changes '0' value to non-zero. I want to link that error message with that field having '0' value. Suppose user clicks on the error message then he/she must be pointed to erroneous field.

How could I achieve this ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Shivaji Raju Penumatsa
Dec 13, 2017 at 11:40 AM

Hi Shubham Saykhedkar,

please try with below code.

CALL METHOD lo_message_manager1->report_element_error_message

EXPORTING message_text = lv_message

element = lr_set " Element Reference if_wd_context_element

attributes = lt_error_attributes " Attribute Name " here append all field names which you want to raise error message

cancel_navigation = 'X'

enable_message_navigation = abap_true

view = lo_api_controller->name.



10 |10000 characters needed characters left characters exceeded