hi,
data : l_value(16) type c,
l_input type f.
l_input = '3.0275000000000000E+02'.
CALL FUNCTION 'QSS0_FLTP_TO_CHAR_CONVERSION'
EXPORTING
I_NUMBER_OF_DIGITS = 2
I_FLTP_VALUE = L_INPUT
I_VALUE_NOT_INITIAL_FLAG = 'X'
I_SCREEN_FIELDLENGTH = 16
IMPORTING
E_CHAR_FIELD = l_value.
write l_value.
try with this
sasi
Try the following code,
data: name1(120) type c.
data: name2(2) type c.
data: len type i.
move '3.0275000000000000E+02' to name1.
len = strlen( name1 ).
len = len - 1.
move name1+len(2) to name2.
Write:/ name1.
Write:/ name2.
Clear: name1,
name2,
len.
This is working fine.
Hi,
1. Copy itab-toleranzob to a character variable
2. Use strlen to find the length
3. Then exract the last 2 character of the character variable
Hope it helps.
Add comment