Skip to Content
0
Former Member
Oct 18, 2007 at 12:04 PM

SUMMING Command in Purchase Order Form

14 Views

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