on 03-11-2009 5:06 AM
Hi All,
We are currently upgraded to Netweaver 7.0 EnhP1. Earlier versions cl_wd_dynamic_tool=>check_mandatory_attributes worked fine. But now after the upgrade it is not throwing errors for mandatory fields.
Any reasons for this.
Regards,
Lekha.
Solved by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have some mandatory fields in my view. Using the following code i am checking whether they are filled up or not. Say i have 5 fields, if i have not filled these 5 fields, i am getting 5 error messages saying Fill the mandatory fields. But i am not getting which fields is blank in the text even though the field is highlighted.
data: lt_msg TYPE cl_wd_dynamic_tool=>t_check_result_message_tab,
lo_view_controller TYPE REF TO if_wd_view_controller,
lo_message_manager type ref to if_wd_message_manager.
lo_view_controller ?= wd_this->wd_get_api( ).
lo_message_manager = lo_view_controller->get_message_manager( ).
cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
EXPORTING
view_controller = lo_view_controller
display_messages = abap_true
IMPORTING
messages = lt_msg ).
Hi Lekha,
I am using in the EnhP1 and its working ok.
lv_error = cl_wd_dynamic_tool=>check_mandatory_attributes(
attribute_list = lt_mcheck
display_messages = abap_false
context_root = mr_node ).
Please check the signature and values passed.
Best regards,
Rohit
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.