cancel
Showing results for 
Search instead for 
Did you mean: 

SUMMING Command in Purchase Order Form

Former Member
0 Kudos

Dear friends,

I got some question about SUMMING Command in Purchase Order Form. I used SAPScript to implement PO Form and I want to summing the discount value (KOMVD-KWERT). The follows is some of my code.

In the MAIN Windows.

/: SUMMING &KOMVD-KWERT& INTO &SUMTOTAL&

And I have already define &SUMTOTAL& in the include program: ZFM06PTOP of the printed program: ZSAPFM06P.

In the Printed Program.

DATA: sumtotal LIKE komvd-kwert.

but when I debug the Form, the &KOMVD-KWERT& has value, but the value of &SUMTOTAL& is always display as 0.

I don't known why?, could you please advise.

Thank you in advances,

SeMs

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

good

try this

The SUMMING command is used for accumulating a total value for a program symbol. The command should be specified just once. Then, each time the specified program symbol is formatted, its current value is added into the total symbol. Several program symbols may all be added into a single total symbol.

Syntax:

/: SUMMING program_symbol INTO total_symbol

SAPscript cannot create the field for the total dynamically. The symbol used must be defined in a TABLES structure in the calling program.

reward point if helpful.

thanks

mrutyun^