cancel
Showing results for 
Search instead for 
Did you mean: 

Merge PDF documents into one PDF document

AntonPierhagen
Active Participant
0 Kudos

hi expets

I have got an question. I have several different PDFs.

Four main PDF and 20 PDFs which are ment as attachements.

Via ABAP code i would like to chose dynamicaly several of those attachement PDFs and merge them within one of the main forms.

So as result you will have one pdf which you can see in the print preview and send as one to the spool.

But is this possible?

Kindly hear from you!

Anton Pierhagen

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi *,

Add below  parameter values in report program in FP_JOB_OPEN function module.


SFPOUTPUTPARAMS-BUMODE = 'M'.
SFPOUTPUTPARAMS-PREVIEW = ' '.


Call different adobe forms without using FP_JOB_CLOSE.


It will merge pdf files.

At the end, call FP_JOB_CLOSE.


and then get the merged pdf as FPFORMOUTPUT-pdf.


Thank you.

Chandler Bing

Former Member
0 Kudos

i've seen this question come up several times but i've never seen a working solution.

One thing you can think on is retrieving the chosen PDFs, convert them back into the data dictionary structures and pass them via a table to your form - thereby recreating one form from several.

i'm not exactly sure how this would work using different forms - we use this method to allow the user to choose X number of a report and generate 1 file with all the pages.

Former Member
0 Kudos

This message was moderated.

AntonPierhagen
Active Participant
0 Kudos

hi all

I have found the answer. There is a tool which can be used for it and also in the customizing of the particulary SAP module it can be arranged via the customizing

Former Member
0 Kudos

Hi Anton,

I have the requirement to merge several PDF file to one in ABAP.

Please share what tool you have used and how to go about doing the same.

Thanks in Advance!!

Rajnesh

AntonPierhagen
Active Participant
0 Kudos

I have been searching,

It is almost 2,5 year ago when i found the answer for my question.

I think it was PDFSAM.

Kind regards,

Anton Pierhagen