2008 Jul 05 7:20 AM
Dear All
I am using table control 3 fields (Rate, Qty, Amount)
now i want calculate Sum of amount
how will calculate?
MODULE CALC input.
CLEAR : WA_INVOICE_ITEM-AMOUNT,
WA_INVOICE-TOTALAMOUNT = WA_INVOICE-TOTALAMOUNT + WA_INVOICE_ITEM-AMOUNT.
WA_INVOICE-TOTALQTY = WA_INVOICE-TOTALQTY + WA_INVOICE_ITEM-QTY.
endloop.
ENDMODULE.
The above code
now i will calculate but i will press ENTER the amount last amount added i want if any changes made only total amount change otherwise not change
how will check?
Thanks and Regards
Suresh
Dear All
I am using table control 3 fields (Rate, Qty, Amount)
now i want calculate Sum of amount
how will calculate?
MODULE CALC input.
CLEAR : WA_INVOICE_ITEM-AMOUNT,
WA_INVOICE-TOTALAMOUNT = WA_INVOICE-TOTALAMOUNT + WA_INVOICE_ITEM-AMOUNT.
WA_INVOICE-TOTALQTY = WA_INVOICE-TOTALQTY + WA_INVOICE_ITEM-QTY.
endloop.
ENDMODULE.
The above code
now i will calculate but i will press ENTER the amount last amount added i want if any changes made only total amount change otherwise not change
how will check?
Thanks and Regards
Suresh
2008 Jul 05 7:30 AM
Hi check this [weblog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9802] [original link is broken] [original link is broken] [original link is broken]; by Rob
2008 Jul 05 7:46 AM
hi,
now i will calculate but i will press ENTER the amount last amount added i want if any changes made only total amount change otherwise not change
i didnt understand this..wat exactly u want to do..
anyway if you want to calculate the total amount for all the lines in table you can calculate it..
but let me know at wat event you want to do this in your requirement...
2009 Jan 05 9:29 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |