‎2007 Jul 27 6:39 AM
HI ALL,
HOW TO FIND LENTH OF NUMERIC FIELDS...........?
REGARDS,
IMRAN
‎2007 Jul 27 6:49 AM
Hi,
check this code :
data: len type i.
DATA : a type string.
a = '23232323'.
len = strlen( a ).
write : len.
reward points, if helpful,
Sandeep Kaushik
‎2007 Jul 27 6:41 AM
Hi,
What you can do is ASSIGN it to a STRING Variable and then use STRLEN().
As follows.
DATAL str type string.
str = num.
strlen(str) wil give you the result.
Regards,
Sesh
‎2007 Jul 27 6:41 AM
Hi,
move the numeric field into character field
and use the key word
strlen ( char )
reward points if helpful
thanks & regards,
venkatesh
‎2007 Jul 27 6:43 AM
hi Imran,
use DESCRIBE Statement
DATA: FLD(8),
LEN TYPE P.
DESCRIBE FIELD FLD LENGTH LEN.
‎2007 Jul 27 6:49 AM
Hi,
check this code :
data: len type i.
DATA : a type string.
a = '23232323'.
len = strlen( a ).
write : len.
reward points, if helpful,
Sandeep Kaushik
‎2007 Jul 27 6:58 AM
hi
i think this code will be self explanatory to you
data i1 type i.
data i2 type i.
i1 = 6532.
write i1.
DESCRIBE FIELD i1 LENGTH i2 in BYTE MODE.
write i2.
reward points if usefull