cancel
Showing results for 
Search instead for 
Did you mean: 

SUMMING command in SAPScript

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

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.

Answers (0)