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

Decimal places

Former Member
0 Likes
1,356

Hi Friends,

I have an file output like the one below in which iam getting this value from another table, my requirement is that i do not want any decimal points betwen the No.s i want to delete them.

Please provide me a solution. Thanks for your help.

12.75085

745.65085

23.6085

Thanks

Meenakshi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,320

my understanding is you dont want decimal places

for eg if number is 123.456 it should change to 123456

in the internal table

tab-filedname = 123.456

split tab-fieldname at '.' into lv_num1 lv_num2

concatenate lv_num1

lv_num2

into tab_filedname.

reg

9 REPLIES 9
Read only

Former Member
0 Likes
1,320

Hi,

Then uncheck fixed point arithmetic in the attributes of program.

Is this u needed?

Read only

0 Likes
1,320

Move the Value to a Char data type or to String type

then use the command replace '.' with SPACE (OR) blank.

Then use the command Condense,

Read only

Former Member
0 Likes
1,320

Hi,

Goto Report of ur program -> then goto 'Attributes' of ur program there remove "Fixed point arithmetic"

Then activate ur proram and check the output.

Regards,

Neelima.

Read only

Former Member
0 Likes
1,320

Hi,

Goto Attribures in u r program----


>Uncheck on the FIXED POINT ARTHEMATIC.

U wont get any decimals in between the numbers...

Regards

Kiran

Read only

Former Member
0 Likes
1,320
  • Supposing that field is wa_value

replace ',' in wa_value with space.
condense wa_value.

Thanks & Regards,

Lalit Mohan Gupta.

Read only

Former Member
0 Likes
1,321

my understanding is you dont want decimal places

for eg if number is 123.456 it should change to 123456

in the internal table

tab-filedname = 123.456

split tab-fieldname at '.' into lv_num1 lv_num2

concatenate lv_num1

lv_num2

into tab_filedname.

reg

Read only

kamesh_g
Contributor
0 Likes
1,320

Hi

While passing the values to internal table Use NO-GROUPING at the end .this will solve your problem

Read only

kamesh_g
Contributor
0 Likes
1,320

HI

Had ur problem solved

Read only

Former Member
0 Likes
1,320

helpful