on 08-01-2008 11:44 AM
Hello gurus,
I am trying to use the SUMMING command in SAPScript to output a total on each page of a transfer order.
According to the sap help, I need to declare the summing total variable within the print program using the TABLES statement, I'm trying to total LTAP-VSOLA so should I be declaring a table of this type? ANd if so, shouldn't I be using a DATA statement for this? I'm confused as to what the help actually means?
Has anyone used this statement before and have an example that I can see?
Thanks,
Ruby
Try like:
/: DEFINE &TOT_PRICE&
/: SUMMING &KOMVD-KBERT& INTO &TOT_PRICE&
or
/: DEFINE &SUM& TYPE NETWR and write in the loop
/ &SUM& = &SUM& + &BSEG-WRBTR&
and use this SUM field
normally I would prefer to calculate this kind of stuff in the print program. But I guess you are using the original SAP program.
Amit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.