10-18-2006 3:12 PM
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.
10-18-2006 3:15 PM
if it function exit numeric len 6
You can use DESCRIBE to get the Type and Length of the field.
10-18-2006 3:15 PM
if it function exit numeric len 6
You can use DESCRIBE to get the Type and Length of the field.
10-18-2006 3:21 PM
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
10-18-2006 3:24 PM
You can use function module NUMERIC_CHECK to test if it is numeric.
10-18-2006 3:32 PM
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
10-18-2006 4:19 PM
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.
10-18-2006 4:22 PM
10-18-2006 4:50 PM
Hi,
Use the FM GET_DOMAIN_VALUES to get the domain values..
Thanks,
Naren