cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms-table-calculations tab usage............

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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