2010 Apr 30 12:36 AM
Hi I have a text field which have legth 60 . it gets filled fully or partially. and finally i want to take only the last ten digits into another variable. please let me know the way
eg error in the material whcih have the number as 4000888
here i want the last 10 characters to be taken.
the length of this message can varry
2010 Apr 30 1:04 AM
Hi,
Below is the logic to get the last 10 charaters of the message.
data : var1(60) type c,
var2(10) type c,
var3 type i.
var3 = strlen( var1 ).
var3 = var3 - 10.
var2 = var1+var3(10).
Regards,
Naveen
2010 Apr 30 1:04 AM
Hi,
Below is the logic to get the last 10 charaters of the message.
data : var1(60) type c,
var2(10) type c,
var3 type i.
var3 = strlen( var1 ).
var3 = var3 - 10.
var2 = var1+var3(10).
Regards,
Naveen