11-30-2005 7:57 AM
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
11-30-2005 8:06 AM
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
11-30-2005 8:03 AM
Hi Jayasreen,
are you sure you need the sum of % ? it's a non-sens, you can't sum %
Rgd
Frédéric
11-30-2005 8:06 AM
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