Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to read a decimal from string

Hi All,

lv_val = '21.45'.

how to read point( dot ) ?

i want to separate 21 and .45 ?

can u help me?

thanks,

srii.

Tags:
Former Member
Former Member replied

Hi,

you have lv_val = '21.45'.

Try this to know th position of dot in 'lv_val'

**********************************

data: L_Length type i.

IF lv_val CS '.'.

L_Length = SY_FDPOS.

ENDIF.

now L_Length will have the position of Dot in lv_val.

Regards,

Syed

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question