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

How to total the prices in Script

Hi all,

Can any one please send me the answer to total the prces of item values finally ..

i mean total count in a sap script ...

thanks and regards

Anjali

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 04:52 PM

    Hi!

    It can be solved only in the SAPScript's printer program.

    There are many ways for it:

    - you can create a global variable and add all item value into it within your loop

    - within your main loop, you can sum at the last record.

    For example:

    LOOP AT gt_main INTO wa_main.

    • write items to the form, etc

    AT LAST.

    SUM. "this command sums all numeric values into the wa_main

    • write sum to the form

    ENDAT.

    ENDLOOP.

    Regards

    Tamá

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 05:44 PM

    use summing command

    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.