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

Tables Calculation

Former Member
0 Likes
494

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
Read only

abdul_hakim
Active Contributor
0 Likes
440

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
Read only

FredericGirod
Active Contributor
0 Likes
440

Hi Jayasreen,

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

Rgd

Frédéric

Read only

abdul_hakim
Active Contributor
0 Likes
441

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