Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.