cancel
Showing results for 
Search instead for 
Did you mean: 

Download several employees into one PDF file

Former Member
0 Kudos

Hi everyone,

I'm looking for solution to a issue i'm facing with :

I've a program which create a PDF form for each employee.

Everything work fine except that we want that if the user download the pdf it will be in one file and not in separated files

(one file for each employee) like in SMARTFORMS.

Is it possible and if yes can you give me example for that .

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

OttoGold
Active Contributor
0 Kudos

You cannot concatenate PDF files easily (in ABAP).

So you have two options:

1) When you need to combine more PDF files into a single one:

or 2) (I prefer this one) create a new form layout, create one more level above the employee layout you already have and create a table of tables (nested tables). I answered the very similar questions few weeks ago, so if you would like to search, the answer is there...

Regards Otto

OttoGold
Active Contributor
0 Kudos

Something like described here:

Otto

Former Member
0 Kudos

Hi,

The program create form for pernr(Employee) now if the user run the program with more than one pernr

we want one pdf file contain all the forms of the employees and not one pdf for each employee.

Is it possible ?

If not is there a way to convert my form to SmartForm. ?

I know that what we need is possible with SmartForm like payslip.

Thanks.

Edited by: Gil Hadida on Sep 20, 2010 10:51 AM

OttoGold
Active Contributor
0 Kudos

if you don´t like how Adobe forms work, you can always create smartform, where this feature is available and when sending/ viewing etc. you can export smartform into PDF file. You don´t have to create the main functionality as Adobe form.

Short answer is no: what you want is not possible.

Otto

Former Member
0 Kudos

Hi Otto,

Thank you for your respone.

Is there a way to convert my Adobe form to SmartForm ?

Gil.

OttoGold
Active Contributor
0 Kudos

No way, create smartform from scratch, of course you can use any printing coding + interface. All design must be recreated. Otto

andrs_sarcevic
Contributor
0 Kudos

Hi Gil,

You can try using the same spool request when you call the function to open the job (FP_JOB_OPEN). You open the spool request for your first employee, use the same request for each one and close it on your last employee.

Parameters - FP_JOB_OPEN

SFPOUTPUTPARAMS-REQNEW.

SFPOUTPUTPARAMS-SPOOLID.

SFPOUTPUTPARAMS-REQFINAL.

Parameters - FP_JOB_CLOSE

SFPJOBOUTPUT-SPOOLIDS.

I've done this for smartforms, so I'm sure it will work for Adobe Forms.

Cheers.