‎2008 May 16 5:20 AM
hi all,
i m getting value of MRP like 9,23,103.00 in output also i defined it as MRP type I, but problem is that i want output like 923103.00 or like 923103 only. can anyone please help me?
regards saurabh.
‎2008 May 16 6:16 AM
Hi,
Try with below example.
data:mrp(12) type n value '9,23,103.00' ,
rp(11) type c .
DATA:len(2) type c,
offset(2) type n.
data:x type string,
x1 type string,
x2 type string.
split mrp at ',' into: x x1 .
len = strlen( x ).
offset = len - 8.
rp = x+offset(6).
write:/ rp.
If helpful reward with points.
‎2008 May 16 6:16 AM
Hi,
Try with below example.
data:mrp(12) type n value '9,23,103.00' ,
rp(11) type c .
DATA:len(2) type c,
offset(2) type n.
data:x type string,
x1 type string,
x2 type string.
split mrp at ',' into: x x1 .
len = strlen( x ).
offset = len - 8.
rp = x+offset(6).
write:/ rp.
If helpful reward with points.