Skip to Content
0

Get Different Spool requests for multiple print documents of same business partner

Dec 13, 2016 at 10:19 AM

512

avatar image

Hi All,

We have a problem in SAP ISU when we print multiple print documents for the same business partner ( using tcode EA60, EA29 ).

These standard tcodes trigger a custom application form( print work bench) in SAP. It finally generates a spool which is sent to third party systems for formatting etc.

Now, if multiple documents for a business partner are printed together , then the output for all three is found together in one spool output. I want them to come as separate spool output files ( one spool output file per print document ). If multiple documents of different business partners are printed together then separate spool files are generated.

Any ideas? Print parameter settings are correct.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Amlan Banerjee
Dec 29, 2016 at 04:38 PM
1

Hi Suman,

One way out would be to that in the print program you can loop through the internal table containing invoice numbers(print doc No) , calling OPEN_FORM, WRITE_FORM etc for sap script inside the loop for each invoice, creating separate spool request for each invoice.

You can make use of these FMs RSPO_RETURN_ABAP_SPOOLJOB or RSPO_RETURN_ABAP_SPOOLJOB_RW .
They are helpful in splitting the spools. It splits the spool document wise

Thanks,
Amlan

Share
10 |10000 characters needed characters left characters exceeded
Jürgen Creyaufmüller Dec 13, 2016 at 02:07 PM
0

Dear Suman,

SAP tries to add a new spool to existing spool files, if printer, title, datset ... fit.

I do not know which technology you use (Sapcript, Smartforms, Adobe), so I cannot tell the parameter/fields . Can you check the call that starts the output and set e.g. field TDNEWID = TRUE . Then it should be in a separate spool. Or you can modify TDDATASET, TDSUFFIX1 and TDSUFFIX2 (in a sapscript printing case) to split the spools.

Regards

Jürgen

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Jurgen,

Thanks for your response and Sorry for my late response. unfortunately I haven't been able to find a solution yet. And for your question, we are using smart form based output.

The TDNEWID is already set as true. that's the reason when multiple documents are printed together of different business partner then separate spools are created. However when different bills for one customer is printed together and it is appended in one spool together. We want different spools created for every document even if they belong to one customer. This looks to be a standard process and I have no clue yet how to fix this...:(

Regards,

Suman

0

Dear Suman,

can you try to set TDDATASET, TDSUFFIX1 or TDSUFFIX2 in structure OUTPUT_OPTIONS (SFCOMPOP) with different values, e.g. TDSUFFIX2 with the document number?

Regards

Jürgen

0
Srinivasan Kanniwadi Jan 12, 2017 at 12:28 PM
0

Hi Suman,

Have you explored the option to add your logic in FQEVENT R392? Here you can Change Print Object meaning you have control to determine new spool requests under parameters:

tdsuffix2
tdcovtitle
tdnewid
tdfinal 
for XY_PRINTPARAMETER

You may have to gather the Print header object at the beginning of invoice print and sort based on BP and Print doc first at FQEVENT R390, something like:

SORT xyt_eiterdk BY partner ASCENDING.

Thanks,

Srini

Share
10 |10000 characters needed characters left characters exceeded
Suman Biswas Jan 19, 2017 at 02:29 PM
0

Thanks for your support guys. This is solved now. The open/close optimization active checkbox was causing the issue. Overlooked it.

Share
10 |10000 characters needed characters left characters exceeded