Skip to Content
avatar image
Former Member

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

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    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.



    Add comment
    10|10000 characters needed characters exceeded