In this blog we will come to know the simple steps to be followed in
order to
·
Create a
Form Scenario using FPM forms
·
Creating a
HCM Process
·
Enabling the
print functionality for FPM forms
·
Testing the
Process
Creating a form scenario using FPM forms:
1. Run the transaction HRASR_DT, select form scenario and give a name to it. In the Form Type choose FPM Form.
2. Come to the Back-End Services, select the default SAP_PA and
choose few fields. I am not explaining here the custom generic service class (BAdi).
3. In the Form section, choose type as Form and give a name to the
form then click on create icon.
4. As soon as you click on create button a form configuration will
open in the internet explorer there you can design the form. In the
repositories section you will find all the fields which you have selected in
the Back-End Services (step 2). We have to drag and drop the fields from
repositories to layout.
Creating a HCM Process:
5. After saving the form scenario, in the same transaction
(HRASR_DT) switch from form scenario to Process and create a new process.
6. Since we are looking only for print functionality there is no
need of developing a workflow, instead in the workflow section for the workflow
template choose NO_WORKFLOW.
7. In
the Process Start assign the HR administrator role (HRASRA) for the process
initiator.
8. Assign the form scenario to the process.
Enabling the print functionality
for FPM forms:
9. To achieve the print functionality first we have to set the
parameter ‘GEN_PDF’ in IMG configuration. Go to SPRO TransactionàPersonnel ManagementàHR Administrative ServicesàSettingsàSettings for HCM Process
and Forms.
10. In the form scenario to the Print Form node we
have to assign an adobe form (static print form) and an interface.
11.
Change the Layout of adobe form to ZCI (Zero Client Installation) type.
12. In the
context of the adobe form, you will find all the fields of the FPM form
automatically transferred to adobe interface. Drag and drop the required fields
to the adobe form context.
13. Design
the Adobe form and bind the relevant FPM form fields to the corresponding Adobe
fields and if you want to write any custom logic then write that in the
interface.
Testing the Process:
14. Run the transaction code ‘HRASR_TEST_PROCESS’, choose the
process and input the process initiator PERNR who is assigned with
administrator role (HRASRA) and select application start type as Web Dynpro
Screen.
15. Click on the button Form UtilitiesàGenerate PDF
16. A PDF form will be generated which you can either save or take
a print out of it J