on 12-12-2006 10:53 AM
Hi,
I'm trying to make a required field check on a ALV field. I can see that the function works as required and produces an error to display in the message_manages
but when I return to the program no error is shown and no red box is displayed arround the field.
Any help is welcome...
Thanks,
Kris
This is my code:
DATA: l_attr_list TYPE cl_wd_dynamic_tool=>t_check_mandattr_tab,
l_attr TYPE cl_wd_dynamic_tool=>t_check_mandattr_struct,
errors TYPE boolean.
l_attr-node_path = 'QUOTATION_TO_CREATE'.
l_attr-element_index = 0.
l_attr-attribute_name = 'KWMENG'.
APPEND l_attr TO l_attr_list.
errors = cl_wd_dynamic_tool=>check_mandatory_attributes(
attribute_list = l_attr_list
display_messages = abap_true
context_root = wd_context
).
CHECK errors EQ abap_false.
Hi Hans,
What ever you said is not possible because while returning to your program, the data won't be saved and it will closed in any situation.
If you want to do like this, Please display the pop-up before you are going to Program saying that " Do you want to save this data?" that time it will display the error and you can do what ever you want.
I think My answer will give helpful information to you. If not please reply with some more information then i will try to reslove your problem
Warm Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.