on 02-05-2013 1:44 AM
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.