cancel
Showing results for 
Search instead for 
Did you mean: 

Required field check in ALV

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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