Skip to Content
avatar image
Former Member

Pagecounter in FPCOPARA with PDF-Formular


from the transaction FPCOPARA we are printing on a PDF-Formular.

The problem is that we don’t have a pagecounter.
We need a pagecounter.

In HCM there in the SFP-interface PYXXFO_SAP_PAYSLIP_DE_O is the field G_TOTAL_PAGECOUNT.
This field contains the number of pages that are already printed, so that it is possible to a have counter over all pages.

SAP-note 1415445:

13) Cross-personnel-number page counter for insertion
For performance reasons, the layout should always be called with the data for one personnel number only. However, as the page counting starts from the beginning during every call of the layout, you cannot use a cross-personnel number page counter.

A solution would be to write the page counter to the ABAP memory and to read it from there again. In the Form Builder form SAP_PAYSLIP_DE_P, we already use this with the global variable G_TOTAL_PAGECOUNT (see SAP Note 1430459, point d.). However, in the layout for this base value, you must add the number of the current page to this personnel number in a script (

The BAdI HRFORM_HRF02 is also important.

The field G_TOTAL_PAGECOUNT is not included in FMCA_DUNNING.
There is no BAdI like HRFORM_HRF02.

How can a cross-dunning-number page counter be realized?

Best regards,
Andreas Krämer-Mix

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers