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

Computing amount totals.

Hi,

If I need to compute amounts totals before the output header, the only way is making loops before the printing or exist other way?

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2006 at 12:44 PM

    Yes you have to perform a loop and get the sum or else you can perform it this way.

    If you are using WRITE_FORM, use the MAIN window..

    If you are using WRITE_FORM_LINES, you can directly use it in a normal window...

    ex: wa_tline is your internal table.

    In window MAIN

    /E SUM_TE

    /: BOX FRAME 10 TW

    P1 &wa_tline-TDLINE&

    Use the function module WRITE_FORM_LINES.

    Thanks & Regards,

    YJR.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2006 at 12:50 PM

    hi

    The other way is : for WRITE_FORM_LINES, use the normal window. And for the WRITE_FORM, you can use the MAIN window

    For Example

    x_line is your internal table.

    So in the MAIN window

    /E SUMMING

    /: BOX FRAME 20 TW

    PR &x_line-TDLINE&

    You can use the FM WRITE_FORM_LINES.

    Regards,

    Richa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2006 at 01:07 PM

    in this report I don't use ALV.

    Thanks!!

    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.