cancel
Showing results for 
Search instead for 
Did you mean: 

Merge multiple pages of Adobe forms into 1 file

Former Member
0 Kudos

Hi,

I am new to adobe forms, and I have this requirement from my user which is to merge the mutiple pages of adobe forms...Currently we are printing Invoice summary for Japan in transaction ISJP_PR the frequency of printing is every month and the volume is quite high its like 300+ per printing. Is there any function like 'RSTXPDF4' for adobe forms?

Thanks in advance!

Accepted Solutions (0)

Answers (3)

Answers (3)

aidan_black
Active Contributor
0 Kudos

Hi,

See the KBA 1602625 for a solution for this problem.

Regards,
Aidan

Florian
Active Contributor
0 Kudos

What about setting the parameters in a proper way, so the spool doesn't print immediatly and do the job for you. You just need to set a few parameters in a correct way, but that is easy to find in the official documentation SAP offers us.

You need to share some more details. Are you allowed to enhance the program. How is it called and all the other stuff to get a detailed answer.

~Florian

BTW: You might work through this blog

0 Kudos

Hi,

You can use the function module ' CONVERT_ABAPSPOOLJOB_2_PDF'.

Using the spool numbers, store PDF data into internal table. Using internal table data convert into a single pdf. Using function module  SCMS_XSTRING_TO_BINARY.

Thanks,

Krishna.

Florian
Active Contributor
0 Kudos

Hi Krishna,

I'm not sure, if you are able to concatenate in that way Adobe-Forms. Please share more details. Perhaps you got a sample-report?

~Florian

0 Kudos

Hi Florian,

Here is the sample report  to merge spools .

Loop at it_spool into ls_spool.

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

       EXPORTING

         SRC_SPOOLID              = ls_spool-spool no

         NO_DIALOG                = ' '

       IMPORTING

         PDF_BYTECOUNT            = L_BYTECOUNT

       TABLES

         PDF                      = LIT_PDF

       EXCEPTIONS

         ERR_NO_ABAP_SPOOLJOB     = 1

         ERR_NO_SPOOLJOB          = 2

         ERR_NO_PERMISSION        = 3

         ERR_CONV_NOT_POSSIBLE    = 4

         ERR_BAD_DESTDEVICE       = 5

         USER_CANCELLED           = 6

         ERR_SPOOLERROR           = 7

         ERR_TEMSEERROR           = 8

         ERR_BTCJOB_OPEN_FAILED   = 9

         ERR_BTCJOB_SUBMIT_FAILED = 10

         ERR_BTCJOB_CLOSE_FAILED  = 11.


append lit_pdf to lit_pdf_final.

endloop.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

       EXPORTING

         buffer             = lit_pdf_final

       IMPORTING

         output_length = l_bytecount

       TABLES

         binary_tab    = gt_content_bin.

CALL METHOD cl_crm_documents=>create_with_table

     EXPORTING

       business_object     = business_object

       properties          = tt_property

       file_access_info    = tt_access

       file_content_binary = gt_content_bin

     IMPORTING

       loio                = g_loio

       phio                = g_phio

       error               = g_error.

  This should be able to merge all the spool into a single pdf document.

Thanks,

Krishna.

Florian
Active Contributor
0 Kudos

Did you try that for Adobe Interactive Forms?

I know that stuff, but I'm pretty sure it will just work for list output/Sapscript/Smartforms. But never mind, I will take my time and try it with some of the Adobe-spools.

Thanks for sharing your thoughts.

~Florian