cancel
Showing results for 
Search instead for 
Did you mean: 

One Smartform - Multiple PERNRs - Output is Single PDF

Former Member
0 Kudos

Hi Gurus,

Scenario:

100 Employees receive Appraisals.

Out of which -

50 receive Bonus

30 receive Variable Pay

20 receive Other Incentives

The Forms for Bonus / variable pay and other incentives are different.

Smartform 1: Bonus

Smartform 2: Variable Pay

Smartform 3: Other Incentives

The output that i need is when the Form Generation Program is executed, i should be able to club into one Single PDF File for each

a. 50 PERNRs who receive bonuses with Smartform 1;

b. 30 Variable Pay PERNRs with Smartform 2; and

c. 20 Other Incentive PERNRs with Smartform 3.

Currently, when the Form Gen. program is executed, it is creating one smartform for one PERNR....thereby, creating 100 PDF files.....

Kindly help.

Kumarpal Jain.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

answered on another thread. thanks.

Former Member
0 Kudos

hi,

you have to change the print program and smartforms for this issue.

Put all data in one (internal) table and put it in the smartforms interface. Instead of pernr by pernr.

second; rebuild your smartforms on such a way that it loops over your pernr (and inside that loop your original smartform statments). At the start of every loop you must start a command for a pagebreak (exept the first loop).

Reset your page cointer on that point.

success,

Gr., Frank

Former Member
0 Kudos

Hi,

Then in the print program club all the pernrs data into an internal table and then pass it to the smartform interface.

Then in the smartform loop that internal table and inside which you loop the particular pernr details internal table.

This way you can print all the pernr's data in a single go and also the output merged pagewise pernr wise in a single PDF.

Regards,

Ram