Application Development 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: 

Decimal places

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Then uncheck fixed point arithmetic in the attributes of program.

Is this u needed?

0 Kudos

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,

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Goto Attribures in u r program----


>Uncheck on the FIXED POINT ARTHEMATIC.

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

Regards

Kiran

Former Member
0 Kudos
  • Supposing that field is wa_value

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

Thanks & Regards,

Lalit Mohan Gupta.

Former Member
0 Kudos

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

kamesh_g
Contributor
0 Kudos

Hi

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

kamesh_g
Contributor
0 Kudos

HI

Had ur problem solved

Former Member
0 Kudos

helpful