11-24-2007 4:28 AM
Hi,
I am printing line items in smartform, at the end it should display no of items & total amount how to do so. Please give steps in detail.
Item Currency Amount
1 Inr 10
2 Inr 50
Total 3 60
LIke this, Points Assured
11-24-2007 4:32 AM
Put the code in the MAIN section of the MAIN window to calculate the no of items and Total Amount.
l_tot_no = l_tot_no + 1.
l_amount = l_amount + ITAB-AMOUNT.
Print these both variables in the FOOTER section of the MAIN window.
Regards,
Naimesh Patel
11-24-2007 5:35 AM
Please tell where exact i ve to put code explain in detail
Help encouraged
Thanks
Message was edited by:
Rahul
11-24-2007 5:39 AM
You can put the code as suggested.
FIRST PAGE
> MAIN WINDOW
> TABLE
> HEADER
> MAIN
> CODE TO CALCULATE " << place to code for total
> TEXT TO DISPALY THE LINE ITME
> FOOTER
> TEXT TO DISPLAY THE TOTAL
Regards,
Naimesh Patel
11-26-2007 6:10 AM
Hi,
the item will work but the sum of items should be displayed in footer i want to do all the sum of totals in line items & display in footer.
how to do so.
Thanks in advance.
11-26-2007 6:10 AM
Hi,
the item will work but the sum of items should be displayed in footer i want to do all the sum of totals in line items & display in footer.
how to do so.
Thanks in advance.
11-26-2007 6:42 AM
calculate the total in the smartform loop where you are printing the itab values..
and print this total in the footer...
11-26-2007 7:17 AM
11-26-2007 7:32 AM
Hi Rahul,
You can code in smartform itself using program lines inside th loop.
Regards,
Sreeja.