on 01-20-2016 1:35 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.