10-25-2006 6:35 AM
Hi,
str = '136.59900'
search str for '.'
IF sy-subrc = 0.
pos = sy-fdpos.
ENDIF.
but pos is zero.
when i use 'CA' instead of search, result is str including dot. why? anybody give me an explanation?
if str ca '.'.
write:/ 'Including dot'.
else.
write:/ 'Not including dot'.
endif.
10-25-2006 6:41 AM
Hi daniel,
1. Dot is a special pattern character.
2. hence, give THREE DOTS.
3. like this.
search str for '...'.
4. Then it will search for One Dot
5. SY-FDPOS = 3.
regards,
amit m.
10-25-2006 6:47 AM
hi, Amit
Thank you very much!
The problem has been solved correctly
10-25-2006 6:46 AM
Hi.
Try this.
str = '136.59900'.
find '.' in str match offset off.
IF sy-subrc = 0.
pos = off.
ENDIF.