Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Validation on SGTXT

Dear Experts,

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.

Regards,

Ondrej Zatopek

replied

Not at all You know, that you have a program DEMO_REGEX_TOY, which helps you to find fitting REGEX statement for your needs. If you experience a problem, you can consult your ABAPer.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question