‎2007 Mar 27 11:19 AM
Hi
Any idea how to use function module HRFORMS_CALL_PDF?
Regards,
Sheetal
‎2007 Mar 27 11:23 AM
FU HRFORMS_CALL_PDF
____________________________________________________
Short Text
HR Forms: Print Form
Functionality
Returns the specified forms in PDF format.
You can print a single instance FORM_OBJECT or several instances
FORM_OBJECT_LIST.
Form Object
Description
The FORM_OBJECT instance of the CL_HRFORM_HRF02 class is created in the
HRFORMS_CALL_INIT function module and filled with data in
HRFORMS_CALL_PERNR.
Form Objects
Description
The FORM_OBJECT_LIST instances of the CL_HRFORM_HRF02 class are created
in the HRFORMS_CALL_INIT function module and filled with data in
HRFORMS_CALL_PERNR.
Purpose
The HRFORMS_CALL function group is used to access HR forms from other
transactions, such as the payroll log.
Integration
The function modules are designed so that you do not need to use any
objects in your application that are assigned to the PAOC_PAY_HRFORMS
package other than these modules.
If you work in an internal SAP system, note that this package is part
an add-on which means it does not automatically exist in all developme
systems. Do not access the modules directly in these systems. Instead,
you must first check that the modules are available in the system in
question, and then access them dynamically.
Access the modules in the following order:
o If necessary, HRFORMS_CALL_F4 as input help for the name of the HR
form
o HRFORMS_CALL_EXIST as an existence check for the form
o HRFORMS_CALL_INIT to create an instance of the form object
o HRFORMS_CALL_PERNR to insert an employee's data in a form
o If necessary, HRFORMS_CALL_PRINT to print the form
o If necessary, HRFORMS_CALL_DISPLAY to display the form
o If necessary, HRFORMS_CALL_PDF to read the form as a PDF file
o If necessary, HRFORMS_CALL_MESSAGES to read statistics or error
o If necessary, HRFORMS_CALL_PDF to read the form as a PDF file
o If necessary, HRFORMS_CALL_MESSAGES to read statistics or error
messages from form processing
‎2007 Mar 28 11:48 AM
Hi
Still I am not getting how to actually use it.
Can I get a peice of code where it has been used?
Thanks,
Sheetal.
‎2014 Mar 05 12:35 PM
Altough you question is rather old i will try to answer it for others information. The sequence of FM is this :
CALL FUNCTION 'HRFORMS_CALL_EXIST'
EXPORTING
formname = ld_hrform
CALL FUNCTION 'HRFORMS_CALL_INIT'
(...)
IMPORTING
form_object = lo_hrform
CALL FUNCTION 'HRFORMS_CALL_PERNR'
EXPORTING
form_object = lo_hrform
CALL FUNCTION 'HRFORMS_CALL_PDF'
EXPORTING
form_object = lo_hrform