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: 

Tables Calculation

Former Member
0 Kudos

I have created an internal table INTAB taken from table FPLT and retreiving the billing date(FPLT-AFDAT),billing %(FPLT-FPROZ)by the key field FPLNR.

Suppose I am having 10 records, I need only the latest billing date and sum of all %.

How can i do this...

PL reply imm

1 ACCEPTED SOLUTION

abdul_hakim
Active Contributor
0 Kudos

Hi

Use the below code..

LOOP AT intab.

sum = sum + INTAB-FPROZ.

AT END OF afdat.

WRITE:/ 'SUM',sum

ENDAT.

ENDLOOP.

Message was edited by: Abdul Hakim

Message was edited by: Abdul Hakim

Message was edited by: Abdul Hakim

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

Hi Jayasreen,

are you sure you need the sum of % ? it's a non-sens, you can't sum %

Rgd

Frédéric

abdul_hakim
Active Contributor
0 Kudos

Hi

Use the below code..

LOOP AT intab.

sum = sum + INTAB-FPROZ.

AT END OF afdat.

WRITE:/ 'SUM',sum

ENDAT.

ENDLOOP.

Message was edited by: Abdul Hakim

Message was edited by: Abdul Hakim

Message was edited by: Abdul Hakim