on 09-26-2007 5:47 AM
Dear Expert,
We want to have 2 or more spool requests in one page(to minimize the wastage of paper). is it possible? if yes then how?
Kindly suggest
Thanx in advance
Kishore
hi,
try this one also.
put at some time two and more (different) smartforms into one spool, so this is surely working - if you have access to the spool parameters.
They can be found at many places, e.g. in the popup when pushing the print-button. Also in the import-parameter of the smartform-function module, but in itcpo it's:
itcpo-TDNEWID for 'new spool' (flag for the first doc)
(itcpo-TDDATASET
itcpo-TDSUFFIX1
itcpo-TDSUFFIX2 ) for the spool name
itcpo-TDIMMED = space (immediate output can't work)
itcpo-TDFINAL for 'no append' (flag for the last doc)
I see you have a parameter in PRINT_DUNNING_NOTICE, but the second call it's not so easy.
It's a generic call, I don't have time to figure out the exact situation - just have a look, where such values like tdnewid come from in 2nd call.
Maybe a watchpoint might help; in FM OPEN_FORM it's parameter OPTIONS (like ITCPO) which you should have a look at.
There are also separate function modules, which can open and close spool requests (if you like to create several spools in one report) - but these might be too much overload for your problem (right now).
regards
ajai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Ajai's approach would not save paper, except for cover sheets I suppose, if they are being printed.
It would just put multiple documents into a single spool request.
By the way, what ajai says about itcpo values is necessary for putting a document into an existing spool request, but not sufficient. See SAP note 85318 - and good luck with interpreting it!
John
hi
You can control this with flags of the printing options.
Two flags 'new spool request' and 'protection against append' handle the possibility of 'two prints in one spool'.
If two requests are combined into one spool is based on the spool name (also in the printing options) - if name is same, then appending is done (and the flags are matching).
So you should define unique names for the two documents to be grouped (e.g. concatenate the billing doc number and something else). Also the last (billing doc?) can set the protection flag - maybe the first should have the 'new spool'-flag.
For testing you can use a test-report, just make some write statements, have the flags in some parameters and plan a job with several steps - in each step some different flag combinations from report-variants. Then you can test the behavior quite easy
regards
ajai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.