Skip to Content
author's profile photo Former Member
Former Member

Tables Calculation

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 30, 2005 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2005 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.