on 04-28-2014 5:24 PM
Hi,
I have 2 forms for printing PO's. 1st form is printing all our requirements and the next form is printing the summary of the printed forms like number of pages , processed items, Current date/time etc..
In the Summary form (2nd form) i am displaying the total pages printed, (some PO's having more than one page of line items), i am not able to calculate the additional pages printed int the first form.
Please guide any one.
Thanks in advance.
Vijay,
One option could be to create a window of type 'FINAL' in FORM1. A final window is executed at the end of processing of your form. Here you have a count of total number of pages in FORM1, try exporting that to memory, you can use variable SFSY-FORMPAGES.
Similary, in FORM2 define a another window of type final. Have logic to import from memory total pages of FORM1, and then add SFSY-FORMPAGES( which is tot pages of FORM2). Add both of them to get the final count.
Hope this helps,
Thanks,
-VM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
What is the variable you have used for printing Pageno?
Please Use SFSY-PAGE & SFSY-FORMPAGES
Regard's,
Thangam.P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What's your problem with the solution I wrote before? You are also a developer, are you? I do not see your problem, just work through the documentation and you will find your solution with the suggested stone.
SSF_open
...
First form --> get your pages, save it anywhere
...
second form <--pass the pages, print it
...
SSF_CLOSE
Be happy
Hi Vijay,
you have to be a bit creative, it's your request, not mine
A solution for it would be:
Create a singleton in your driverprogram with two additional methods implemented:
set_pages_per_form
get_pages
And of course a member, where you can save it, perhaps a table with
VBELN
Num_of_pages
Now you got everything prepared to get your problem solved:
SSF_open
...
First form --> get your pages, save it in the singleton at the end of processing (Maybe MAIN and in the very end a coding-node)
( Repeat the step for every single form )
...
Get the table from your singleton (method get_pages).
second form <--pass the pages, print it
...
SSF_CLOSE
If you do not know, how to create a singleton, use the search.
Now it is up to you, to fix your issue.
~Florian
Hi Vijay,
just have a look in the Function-group where the 'SSF_FUNCTION_MODULE_NAME' is located. In there you will find a lot of Functions and also one called SSF_OPEN
This stone let you concatenate different forms in a row. So you can print your first form, get the information you need (in your case the pages) and afterwards append your summary-form and print it.
That's it. Have fun.
~Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.