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

ALV problem

Former Member
0 Likes
395

Hi all,

I have an internal table in which i have amount fields of type p decimals 5.

now i have to pass this internal table to alv. i made the field catalog. i nedd totals and subtotals for each amount field.

i set

fieldcatalog-do_sum = 'X'

for each amount field.

wat its not working. how it will work for decimal data type.

thanks in advance.

Varu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
357

in the field catalog also add this and checkout

fieldcatalog-datatype = 'CURR' . or try with 'QUAN'

3 REPLIES 3
Read only

Former Member
0 Likes
357

Hi,

Declare other DECIMAL fields of the Internal Table also like TYPE P decimals 5.

and pass the decimal values into these P fields. for ex:

Let the decimal value is 125.25

in P it may take/become 125.25000.

then it is easy to sum.

Regards,

Anji

Read only

Former Member
0 Likes
358

in the field catalog also add this and checkout

fieldcatalog-datatype = 'CURR' . or try with 'QUAN'

Read only

0 Likes
357

Thanks Chandra.

Its working. Points Rewarded.

Regards,

Varu.