So the scenario is when a user enter a value in delivery note number then it must go through the validation which I need to put on.

Validation = delivery note input character should not be greater than 10.
I know the BAdI name as well: MB_MIGO_BADI.
Question is how to approach that?
And how to write the code?
Can you guys help me with that.