Quantcast
Channel: SCN : Unanswered Discussions - SAP ERP Human Capital Management (SAP ERP HCM)
Viewing all articles
Browse latest Browse all 8361

Merge PDF global page count

$
0
0

Hello SAP-Community,

 

For mass PDF-Processing (Payslips) i am using BAdI-Implementation HRFORM_HRF02 which contains two Methods BEFORE_PDF_PRINT and AFTER_PDF_PRINT.

 

The Method AFTER_PDF_PRINT contains a Structure IM_FORM_OUT_PARAMS with a Parameter PAGES which i use for global page counting. Page counting is used for envelope stuffing machine. When i process one PDF-file with each person and save it in directory there is no problem with the Parameter PAGE. This paramerter checks the number of pages within PDF-File and gives it back.Works perfekt.

 

Now i need to bundle (merge) my PDF-Files into single one and save it in directory. For that i used functionmodule FP_JOB_CLOSE like in test-Report FP_GET_PDF_TABLE. In the method BEFORE_PDF_PRINT i provide for bundling needed parameters:

 

 

CH_SFPOUTPUTPARAMS-GETPDF = 'M'.
CH_SFPOUTPUTPARAMS-BUMODE = 'M'.
CH_SFPOUTPUTPARAMS-ASSEMBLE = 'X'.
CH_SFPOUTPUTPARAMS-PREVIEW = ' '.

 

My Problem is that IM_FORM_OUT_PARAMS-PAGE is not assigned while i bundle. I cannot get the number of pages for each pdf-form. How can i solve this problem?? Thanks for any suggestions!


Viewing all articles
Browse latest Browse all 8361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>