SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member185489
Participant
0 Kudos
2,775

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.

6 REPLIES 6

CreyJ
Participant
0 Kudos
535

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

0 Kudos
535

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 Kudos
535

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

AmlanBanerjee
Active Contributor
535

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

srinivasankh
Contributor
0 Kudos
535

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

former_member185489
Participant
0 Kudos
535

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