* Call kernel method to do the merge of the specified files. LOOP AT lt_pdf_table INTO DATA(lwa_form). * Add documents to attribute table of PDF merger Reffered from the program:RSPO_TEST_MERGE_PDF_FILES.The same classĬan be used to write to a SAP application server. We will use standard class cl_rspo_pdf_merge methods which can be Lo_pdf_merger TYPE REF TO cl_rspo_pdf_merge, DATA:lt_data TYPE STANDARD TABLE OF tabl1024, "RAWSTRING Lty_t_forms TYPE STANDARD TABLE OF lty_forms WITH EMPTY KEY.Ĭall function module,’ FP_GET_PDF_TABLE’, to merge multiple generated files into a single pdf. Note: You can use LOOP.ENDLOOP to call FP_FUNCTION_MODULE_NAME and it’s generated function module if you have more than two adobe forms. WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ![]() MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno Call ‘FP_JOB_CLOSE’ to close the spool job. Get the Adobe Form function Module using FP_FUNCTION_MODULE_NAME and call the generated unction module for your 1st Adobe Form. *Remember all the values should be passed exactly the same in order to WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno Ls_fp_outputparams-bumode = 'M'."This is Bundle Mode ![]() Ls_fp_outputparams-assemble = 'S'."bigger data Ls_fp_outputparams-getpdf = 'M'."(Default value = 'X') Ls_fp_outputparams-dest = 'LP01'"Depends on user settings So let’s get started.Ĭall function module FP_JOB_OPEN, with below parameters- Data:ls_fp_outputparams TYPE sfpoutputparams. So, here I’ll provide the complete end-to-end solution with steps as well as the complete code, so that it really helps you. ![]() However, after doing a lot of googling and reading numerous threads, I came across various solutions but some gave output as spool or some merged the forms but didn’t gave user to download the generated pdf into the system with desired location and name. Hi fellow ABAPERS, sometimes we could a client requirement of merging multiple adobe forms and displaying it as one single pdf to the end-user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |