on 03-10-2008 10:10 AM
Hi sap gurus,
i am designing a smartforms in which i have created a table of data. this contains line items.
one of the field is amount.
a) how to sum up all the amount of each line item so as to display at the footer.
please tell me how to use
calculations tab in table --> to calculate the sum...
please tell me if u r not clear about my question......
Thanks
krishna
Edited by: krishna chaitanya on Mar 10, 2008 11:15 AM
Hi,
In smartform
Click on global definition> declare one variable to collect the SUM amount.Ther in INITIALIZATION->import parameter pass your ammount field.
And wite code there
v_amount = v_amount + 1.
In main window pass this amount field where you want to display
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can use variable to sum up. Declare it globally
within Main window use program lines
v_sum = wa_ekpo-netpr + v_sum.
in footer window display it as text element
Regards
Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.