Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Forms and adobeforms in one job

Former Member
0 Kudos

Is it possible to mix Smart Forms and PDF based (Adobe) forms in one job ???

2 REPLIES 2

alexander_bolloni
Contributor

Hello Mohammad,

within one spool request you cannot mix SF and IFbA, since these have (very) different formats.

What you could do (but you need a custom program for this) is to create two separate spool requests (one from SF, one from IfBa) for the same printer (it must be a PCL or PostScript printer). And then you could use an obscure feature in SAP spooler called "composite spool requests".
There exists an API (ABAP functions) which allows you to create a "master spool request" which does not have actual contents but which contains only a reference to several "child spool requests".

This way you construct a "master" request which you can print, which will in effect then send the SF and the IFbA requests together in one printer output stream.

You use functions

RSPO_SR_OPEN (DOCTYPE = 'COMP', no immediate print!)

RSPO_SR_ADD_PARTS (to add a list of child requests)

RSPO_SR_CLOSE (to finish the master request)

to construct the composite request.

Regards,

  Alexander

0 Kudos

Hello Alexander,

thank you for the short tutorial. I'm currently trying to implement that solution, but without success.

I managed to create the composite spool and to add a Smartform (DINA4) and a PDF (G_RAW) to it. Unfortunately the composite spool is now using DINA4 to print the PDF (maybe since the Smartform part is the first part of the spool).

Any idea on what I'm doing wrong?