Skip to Content

Field validation on VA21/VA22

Hi,


I'm trying to validate user inputs on VA21/VA22 on the table of screen 4901 (Ordering Party).

What I want is when the user presses ENTER or SAVE I'll do some checks on the KDMAT field and if the check fails issue a warning (for now but in the future will be an error) and let the user change the field accordingly.

If I use form USEREXIT_SAVE_DOCUMENT_PREPARE from include MV45AFZZ the warning is issued but I can't change the value of the field after dismissing the message. The same happens with when pressing ENTER.

My question is how can I achieve that?

Is it ok to make an insert in PAI of the screen 4901 and put flow logic there with a CHAIN....ENDCHAIN for that field? If not, how can I do this?

Thank you!

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Oct 02, 2018 at 05:57 PM

    There is already a chain on kdmat in 4901. I would use that and a enhancement point in the include to add your check(s). I'm sure there are some other ways to do that, and I hope you get some more replies!

    Michelle

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 03, 2018 at 02:14 AM

    if its a warning message, after you enter then prorgram will keep going then it wont stop to let you change that field. try message type E instead.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2018 at 10:59 AM

    Hi,

    I've made an insert on screen 4901 with a CHAIN.....ENDCHAIN just for the KDMAT field and put the module on the include MV45AIZZ used for user modifications.

    All working!

    Add a comment
    10|10000 characters needed characters exceeded