cancel
Showing results for 
Search instead for 
Did you mean: 

Error Fill all required entry fields

former_member215786
Participant
0 Kudos

Hi

I am using the source code for check filelds mandatory.

call method cl_wd_dynamic_tool=>check_mandatory_attr_on_view

exporting

view_controller = lo_view_controller

display_messages = ABAP_TRUE

importing

messages = lt_messages .


The system return the message following:


However I need show the name of field obligatory


How can get this using this class?



Regards



Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

The standard method doesn't display the attribute/field name. It highlight the field and when you click on the message the respective field will be focused.

To achieve your requirement, use 'display_messages' parameter as abap_false. And in the 'Messages' parameter you will have context element and attribute name. Loop over the messages and concatenate the field name (based on attribute name) and display the message using message manager.

Or, use report_attribute_error_message (and pass your own message text) for each individual field check.

Regards,

Kiran