Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HRFORMs to PDF

Former Member
0 Likes
2,200

Hi

Any idea how to use function module HRFORMS_CALL_PDF?

Regards,

Sheetal

3 REPLIES 3
Read only

Former Member
0 Likes
1,485

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

Read only

Former Member
0 Likes
1,485

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.

Read only

Former Member
0 Likes
1,485

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