on 04-25-2007 8:45 AM
Hi,
Can anyone please help me with this.
I have a pre-pprinted invoice form.
I want to restrict the no.of line items printed on each page to 7 and then calculate the sub total and total.
I am using the standard form and print program for this.
Also I cannot reduce the size of the main window where the line items will be printed.
Thanks.
I dont think you can get this stuff done while printing it out,
The best way to do is, before throwing it for printing see that the below logic is added to your item table .
1.
In the item table , take another field of Counter ok and try to increment this counter for every 7 records , ( first seven item records count = 1, and for > 7and <14 records count = 2 so on..) .
2.
Take another table having only Counter field ( see if it matters to take other key fields also into it ) ,say table gi_header.
3. Finally
under main window
loop the header table first (GI_HEADER)
under this use your ' TABLE node' on item table and in Conditions Tab- set Gwa_item-count = gwa_header-count.
after this table node , set a COMMAND NODE and set the next page to page1 or page 2 as asked .
I can Asure you this is going to meet your requirement .
Please do not forget to reward it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a Table in Main window of Smartform . In this Table under the Data Tab you can define the number of records you want to display. In your case 7
And in the same Table Option under the tab Calculation you can perform your subtotal calculations.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah it will not print on next page for that you have to repeat the process, but if you want to do for both then take a counter and count inside the loop and check the condition for it.
When the counter is > 7 call the next page.
For this you can use Condition Node inside your table .
Regards,
Amit
Reward all helpful replies.
Could you please explain by what you mean to repeat the process? I have already taken a counter and incremented it inside the loop.I checked the command to go to the next page but still it prints only 1 to 7 line items if I give that in the data tab in the table.I f i dont then it prints all items on one page.
Hi,
Since u cannot restrict the size of main window and cannot make other changes , then create ur own Z form for this.
Regards,
Sonika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.