Application Development and Automation 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: 
Read only

Print from two Smartforms duplex

Former Member
0 Likes
749


Is it possible to have two Smartforms and have the output from each print on 1 sheet of paper via duplexing?  I have Smartform "A" that I want to print on front of page and Smarform "B" that I want to print on the back of the page, is this possible?

Thanks Gary

1 ACCEPTED SOLUTION
Read only

Florian
SAP Champion
SAP Champion
0 Likes
676

Hi Gary,

just a thought and not sure if this will work, but what if you work with SSF_OPEN and SSF_CLOSE.

I can imagine that this will work.

~Florian

3 REPLIES 3
Read only

Former Member
0 Likes
676

Hi.

Wyh dont you make just one smartform using duplex page? that is possible. The printer need to able to print duplex.

I think that it is not possible to make 2 smartforms and print one in the front page and another one in the back.

Regards

Miguel

Read only

Florian
SAP Champion
SAP Champion
0 Likes
677

Hi Gary,

just a thought and not sure if this will work, but what if you work with SSF_OPEN and SSF_CLOSE.

I can imagine that this will work.

~Florian

Read only

Private_Member_7726
Active Contributor
0 Likes
676

Hi,

That smartform does not permit to simply include another smartform is a limitation, but I don't believe there is a solution for combining smartforms that would sufficiently communicate developer's intent, and would be simple and transparent enough...

It would be possible to get the output of both smartforms as OTF data and then combine them. Renumbering pages across two OTFs is even fairly easy, provided the driver program (or something else - let's call it "output control module") keeps track of the last page number (in the spool). Algorithm to strip away OTF commands that indicate end of one form and OTF stream and the start of next OTF stream and the form would also be possible. Resetting the tray selection and print mode for first Open Page command of second form would also be possible. OTF format description can be found here. I guess it would be a fairly robust solution (and I don't think the OTF format itself is being extended by SAP anymore).

OTF manipulation and writing to SAP spool can even be made into separate "output control" module with an API, which smartform driver programs or Print Workbench Forms then can use. The SAP Print Workbench Application Form type Collection permits to combine Several Application Forms (Smartform or Sapscript based) and thus kind of express intent - I'm combining these forms into one "Document".

I have combined several Application Forms via renumbering the pages in OTF, so that the Output Management System, which receives the resulting Postscript (produced by SAP Spool System) recognizes both forms as one "Document" and creates one PDF out of them it. Do I think at the end of the day that it's an elegant, transparent, simple to maintain solution? Absolutely no - like every "proprietary" solution of that kind. Would I do it again if I had to..? Yes

cheers,

Janis