2009 Feb 24 10:20 AM
HI all,
Please let me know the logic when user enters value in ZTABLE and he should be able to enter only either 6 or 8 digits of value else throw a error message.I have created a event generator for the same but m not able to find how to calculate the entered value length for the same table.
HI all,
Please let me know the logic when user enters value in ZTABLE and he should be able to enter only either 6 or 8 digits of value else throw a error message.I have created a event generator for the same but m not able to find how to calculate the entered value length for the same table.
2009 Feb 24 10:23 AM
Hi,
data : len type i.
data : name type string.
name = 'some values'.
len = strlen ( name ).
if len LT 6 and len GT 8
"Error.
endif.
Thanks,
Sriram Ponna.
2009 Feb 24 4:35 PM
There is a small error in above code, as you mentioned you want 6 or 8 characters as valid entry so you should change the above IF condition like this
if len = 6 OR len = 8.
"Error.
endif.
2009 Jun 16 8:53 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |