Validation on SGTXT
I'm trying to define a validation on the field BSEG-SGTXT via formula builder. I would like to define the validation without programming a function module. The system should check the structure of the field SGTXT based on this criteria:
The allowed value is: *NUM4*NUM10*Text. NUM4 is always 4 numbers, NUM10 is up to 10 numbers. If some of the numbers are missing all the "*" must remain.
I tried something like this:
But it doesn't work correctly because if there is "*" + any other character, the system evaluates it as an error.
Any help would be much appreciated.
Thanks in advance.