Hi Narasimha,
Is your requirement is to display an error message for an attribute
Please use the method REPORT_ATTRIBUTE_ERROR_MESSAGE
Sample code:
- CALL METHOD lo_message_manager->report_attribute_error_message
- EXPORTING
- message_text = 'This field cannot be empty !!!'
- element = lo_el
- attribute_name = 'CARRID'. " Attribute Name
Note: here lo_el - the context element of your attribute
Hope this helps you.
Regards,
Rama