Thank you.
I changed my validation to BKPF-BLART <> 'ZA'
check - BSEG-SGTEXT <> ''
error- wrong document type
when I use KR and leave the text field blank, it gives me an error, wrong document type and the condition is true and check is false
when I changed it to ZA, the condition is false, but I still get that error message(material group is required) This is not the same as the error I define in the validation, but this is the error message defined in the user exit of the validation . I don't know why it is still going to that exit.
Any idea?