internal table for smartforms, making a calculation

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
ixxel
Posts: 222
Joined: Mon Oct 21, 2002 4:36 am
Location: Belgium (Aalst)

internal table for smartforms, making a calculation

Post by ixxel » Thu Dec 05, 2002 9:36 am

Hi

I have the following issue.

i have a internal tabel, with i v succesfull imported in my smartform. But now i want to make a caluclation.
example of my internal itab

labor LFMIG NTGEW BRGEW
001 4 5 ...
001 5 100 ...
002 5 60 ...

And i must have the following result in an internal table if possibe so i just have to write out:

001 9 105 ....
002 5 60

Can this be done?

thanks

Kristof

Ixxel

Guest

Post by Guest » Fri Dec 06, 2002 11:13 am

yes that can be done in the smartforms. in smartform u sort the internal table by field 'labor' and tick the end of control option in DATA tab. The event on sort end will be created u can display the total. While looping internal table u can do the sum of the fields.

pali

Post Reply