Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

report

Former Member
0 Likes
295

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
278

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.

1 REPLY 1
Read only

Former Member
0 Likes
279

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.