2007 Mar 31 5:24 PM
Hi friends
I have a text (number stored text) like '123,99' I want learn how many char after the comma.
In this sample 2. Another sample 123,987 after comma it have 3 char.
How can I learn this value?
2007 Mar 31 5:32 PM
suppose the text field is w_char .
<b>data :
w_len type i,
w_places type i.
w_len = strlen( w_char ).
search w_char for ',' . <i>**( search returns the position of the searched character in the string )</i>
if sy-subrc eq 0.
w_places = w_len - sy-fdpos - 1.
endif.</b>
now w_places contains the no of characters after ','.
reward if it helps u..
sai ramesh
Hi friends
I have a text (number stored text) like '123,99' I want learn how many char after the comma.
In this sample 2. Another sample 123,987 after comma it have 3 char.
How can I learn this value?
2007 Mar 31 5:32 PM
suppose the text field is w_char .
<b>data :
w_len type i,
w_places type i.
w_len = strlen( w_char ).
search w_char for ',' . <i>**( search returns the position of the searched character in the string )</i>
if sy-subrc eq 0.
w_places = w_len - sy-fdpos - 1.
endif.</b>
now w_places contains the no of characters after ','.
reward if it helps u..
sai ramesh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |