2008 Jan 08 3:03 PM
Hi,
I have one number .
100065678984646.
from this number I want add last 5 digits to my final internal table.
regards,
Ajay
2008 Jan 08 3:08 PM
Move Number+10(5) to your internal table field.
Vinodh Balakrishnan
2008 Jan 08 3:09 PM
MOVE F1+10(5) TO F2
where F1 is your number and F2 is your internal table field
2008 Jan 08 3:11 PM
in case you number length is varying you can this logic....
DATA : l_var(16).
DATA : n_len TYPE i.
l_var = 100065678984646. "you can assign your variable..
n_len = strlen( l_var ).
n_len = n_len - 5.
l_var = l_var+n_len(5).
write l_var.
2008 Jan 08 3:28 PM
Hi
Use OFFSET command.
Data: var1 type i.
var1 = 100065678984646.
Eg.: itab-var = var1+10(5).
The last 5 digits of var1 will be copied to internal table.
Thanks & Regards
Haritha.