on 09-16-2008 6:31 AM
Hello everyone,
Here I have a very specific requirement in SmartForms which I am not able to do even after trying a lot of options.
I want to print Items of PO in Main Window and I am printing total on a different window which should be printed at end of all Items. Again this does not mean total is printed on last page, as the last page has Conditions which is default with every PO.
So the requirement is to find out the last but one page at runtime and print the total.
Thanks.
Hi priya,
Then create the text after the table in main window .
Just check the conditions for the text node
after the main window and only on page.
Then the data is printed after all your line items.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please look again at my suggestion. I did this already several times and it works.
in your main window, after the loop node (or tabel node) have abap-coding where you activate a switch.
you should have your separate window have the condition that it will be activated only if the switch is turned on. that's it.
define a field in the global definition. after the loop of all the items is finished in the main window set the global field to a specific value.
the window with the totals must be conditioned to be activated only when this field has the proper value.
Best Regards
Guido
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi priya,
Create the text node before the total window as i explained earlier because i worked with your scenario data is getting printed.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi priya.
In page 1 : After the main window create the text node
total amount : &w_sum&.
Declare this variable in global definition.
After the text node create the command node-->general attributes go to page i.e page 2.after that place the total mount window.
In page 2: for window-->condition only on page (page 2) create the text node for terms and conditions .
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sravanthi,
One small doubt.Whether we have to create text node below/under the main window as creating text node without window is not possible?
Shall i have to remove the text node in the Total window?
I am getting the value for Total but not printing in the total window but at the end of line items.
Thanks.
Hi Priya,
Even I faced the same problem while creating invoice.
Soln:
declare a variable "g_counter" at global definition tab with data type "I'.
In the main window just after your table and before the command line which you have used, create a program line and give input and output parameters as "g_counter"
In the body of program line just write "g_counter = g_counter + 1".
Make sure your total window is placed after the main window in sequence.
Than in the total window you can put condition as "g_counter = 1".
I am sure this issue will be reolved.
Regards,
Vinit
hi,
write total in footer of table.
also uncheck the box 'At page break'. in footer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii..
As You told that you are printing total PO items in different window. Try keeping with condition end of Main Window..
I think this could be done.
Regards,
SG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi priya.
Create two pages
page 1 : main window>after table>text>command netxpage>total amt window.
page 2 : secondary window-->text(conditions)
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi priya,
In main window after the table--> create the text node total amount.In global defintions declare the variable.
The total will be displayed on the last page as per your requirement.
Regards,
sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priya,
You have to print totals in separate page, is it correct?
Regards
jana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you r using table in footer you can print the totals
but thing is you have remove the tick
double click on footer node there you will find the at page break there you need to remove the tick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
increase the size of main window or text area whatever u r using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jana,
I want to print the total in the last but one page. for ex if there
are 4 items it will consume 3 pages to print item details and 4th page by default will have PO conditions. So now the total should get printed on the 3rd page which is last but one page and on a separate window. At runtime I am not able to find this last but one page.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.