cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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 ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Regards,

Shivajiraju.

Answers (0)