Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Validate field with value range

Former Member
0 Likes
1,354

Hello,

I need to validate a field. This field's domain is defined in the Dictionary as a Value Range (i. e. 'A', 'B', etc.).

How can I do it generically, that is, when I update the domain, my code will still validate correctly the values?

Thank you!

1 ACCEPTED SOLUTION
Read only

valter_oliveira
Active Contributor
0 Likes
758

Hello.

Use database table DD07L for that. It contains all the value in domains.

Regards.

Valter Oliveira.

3 REPLIES 3
Read only

Former Member
0 Likes
758

Hi ivson,

Try to use the event AT SELECTION-SCREEN ON FIELD.

Best of luck,

Bhumika

Read only

valter_oliveira
Active Contributor
0 Likes
759

Hello.

Use database table DD07L for that. It contains all the value in domains.

Regards.

Valter Oliveira.

Read only

Former Member
0 Likes
758

hi,

Write a select on DD07L table by passing DOMNAME and get DOMVALUE_L & DOMVALUE_H which has the domain values and validate accordingly ... You can get the domain name of a data element from DD04L table where pass the data element name in ROLLNAME and get DOMNAME ...

Regards,

Santosh