Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table Control Sum Calculate

Former Member
0 Likes
697

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

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
597

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

Read only

Former Member
0 Likes
597

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...

Read only

Former Member
0 Likes
597

Problem Solved