2009 May 26 12:57 PM
Hi everybody
how can i findout, how much length a field has.
Example this.
data gv_get_header type c length 105 value 'ANGR'.
the variable gv_get_header is had four length.
thx anujit
2009 May 26 1:01 PM
Hello,
You can use the command STRLEN.
w_len = strlen( <variable> ).
Hope this helps you.
Regards,
Sachinkumar Mehta
Hello,
You can use the command STRLEN.
w_len = strlen( <variable> ).
Hope this helps you.
Regards,
Sachinkumar Mehta
2009 May 26 1:01 PM
Hi,
use STRLEN
Excample:
DATA: int TYPE i,
word1(20) TYPE c VALUE '12345'.
word2(20) TYPE c.
word3(20) TYPE c VALUE ' 4 '.
int = strlen( word1 ). WRITE int.
int = strlen( word2 ). WRITE / int.
int = strlen( word3 ). WRITE / int.
Regards
Nicole
2009 May 26 1:01 PM
Hello,
You can use the command STRLEN.
w_len = strlen( <variable> ).
Hope this helps you.
Regards,
Sachinkumar Mehta
2009 May 26 1:03 PM
REPORT ZREPORT.
data gv_get_header type c length 105 value 'ANGR'.
data: ln type p.
ln = strlen( gv_get_header ).
write ln.
2009 May 26 1:03 PM
2009 May 26 1:04 PM
hi,
As said by others STRLEN will solve ur problem...
Thanks
Suraj
2009 May 26 1:04 PM
Hi,
use strlen command to find the length of the string.
ex:
data length type i.
length = strlen (gv_get_header).
Regards,
Venu
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |