2007 Nov 24 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
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
2007 Nov 24 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
2007 Nov 24 5:35 AM
Please tell where exact i ve to put code explain in detail
Help encouraged
Thanks
Message was edited by:
Rahul
2007 Nov 24 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 TOTALRegards,
Naimesh Patel
2007 Nov 26 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.
2007 Nov 26 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.
2007 Nov 26 6:42 AM
calculate the total in the smartform loop where you are printing the itab values..
and print this total in the footer...
2007 Nov 26 7:17 AM
2007 Nov 26 7:32 AM
Hi Rahul,
You can code in smartform itself using program lines inside th loop.
Regards,
Sreeja.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |