Application Development 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: 

validation against a domain.

Former Member
0 Kudos

hi how to validate a field value in internal table against a domain and how to validate a filed in internal table whether it is numeric type or not or date type or not or time data type or not. please help me. Answers will be surely rewarded.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

if it function exit numeric len 6

You can use DESCRIBE to get the Type and Length of the field.

7 REPLIES 7

Former Member
0 Kudos

if it function exit numeric len 6

You can use DESCRIBE to get the Type and Length of the field.

Former Member
0 Kudos

Hi,

While declaring the internal table u try to declare like that domain only . eg. if date filed then use like sy-datum.

U may find few Function module regardign format validation . Search in Se37, format.

Cheers

Former Member
0 Kudos

You can use function module NUMERIC_CHECK to test if it is numeric.

Former Member
0 Kudos

U can use the below variations with describe field to get the type and other information.

DESCRIBE FIELD f.

Extras:

1. ... LENGTH len

2. ... IN CHARACTER MODE

3. ... IN BYTE MODE

4. ... TYPE type

5. ... TYPE type COMPONENTS n

6. ... OUTPUT-LENGTH len

7. ... DECIMALS n

8. ... EDIT MASK mask

9. ... HELP-ID hlp

Former Member
0 Kudos

For validating against the domain you can read the domain characterstics from DD01L table and compare with your field.

Please note the values for the domains are stored in DD07L table.

0 Kudos

DD07L contains the domain values.

Former Member
0 Kudos

Hi,

Use the FM GET_DOMAIN_VALUES to get the domain values..

Thanks,

Naren