Custom Function
Custom Function
This presentation is designed to provide you with the knowledge and skills
necessary to create a custom function for SSHR responsibility. This course
covers implementation after the following phases:
The course consists of brief lecture/discussions followed by related screenshots which provide
opportunity for practice. Because the structures you create for the system are interrelated it is
important that you successfully complete each activity before continuing on to the next step.
Components of a function
Before we create a custom function, we need to understand the set up of a seeded function.
The structure of a function is different when called from Employee Self Service and Manager Self
Service responsibility
This function can be called via the Employee Self-Service (ESS) and Manager Self-Service
(MSS) responsibilities
pAMETranType=SSHRMS&pAMEAppId=800&pProcessName=HR_PERSONAL_INFO_JSP_PR
C&pItemType=HRSSA&pCalledFrom=HR_PERINFO_SS&pPersonID=&pFromMenu=Y
pAMETranType &AMEAppId : Add this parameter to all functions that use AME to process
approvals. The parameter provides the transaction type name of SSHRMS. If you define your
own transaction type provide that transaction type name here
pProcessName : This is the workflow process name used by the function. This can be changed
to the name of the configure process
pItemType : This is the internal name for the predefined HRMS Self Service workflow item type
HRSSA
pCalledFrom : Add this parameter to all the _SS functions that are launched through workflow. It
indicates which function calls the current function
OA.jsp?akRegionCode=HR_CREATE_PROCESS_TOP_SS&akRegionApplicationId=800&OAFu
nc=HR_PERINFO_SS
OA.jsp?akRegionCode &akRegionApplicationId: The application calls the HR workflow
service
with a parameter specifying the function’s (Personal Information) workflow process for the
workflow item
type
OAFunc : This parameter points to the function name. This parameter enables you to do
personalization for a specified function
Function parameter
pCalledFrom=HR_PERINFO_SS&addBreadCrumb=Y
Add this parameter to MGR_SS functions or Enter Process functions if you want to display a
navigation link, or breadcrumb, on the page.
&addBreadCrumb : Add this parameter to MGR_SS functions or Enter Process
functions if you want to display a navigation link, or breadcrumb, on the page.
OA.jsp?akRegionCode=HR_PERSON_TREE_TOP_SS&akRegionApplicationId=800
OA.jsp?akRegionCode : This corresponds to the Person Search page. When the user selects a
person from this page, SSHR calls the AOL function specified by the pCalledFrom parameter,
appending the selected person_id to the pPersonID parameter specified for that function
In this section we will create a custom function based on a seeded function used in ESS and
MSS.
Using Personal Information as the example let’s first create a custom ESS function.
The easiest method to create a new function is to query the seeded function and copy the
Function details and change the Function name
There is nothing to be added under the Web Host and Region tabs
Save and now our custom ESS Personal Information function - XX_HR_PERINFO_SS
function is ready
MSS Function:
1. Create a new function XX_HR_PERINFO_MGR_SS
2. Copy the Function Type from the Properties tab of the seeded function
2. Copy the Parameters of the seeded function and change the pCalledFrom to the ESS
function we have created earlier, i.e XX_HR_PERINFO_SS.
Note: If you are required to create a custom function to be used in Manager Self Service,
you will need to first create the custom function that will be called by Employee Self
Service responsibility.
If you just add any random name in the ‘pCalledFrom=’ then the MSS function will not
work properly.
It is for the same reason that creation of the ESS function has been covered first.
3.Move to the WebHTML tab and copy the HTML Call from the seeded function
Once this is done, Save and you will have the custom MSS Personal Information function -
XX_HR_PERINFO_MGR_SS ready
Creating a transaction using the custom function
Now that the custom functions are created, we need to add them under their respective menus
1. Add XX_HR_PERINFO_SS under the Employee Self Service menu. Ensure that you add
a prompt
2.Add XX_HR_PERINFO_MGR_SS under the Manager Self Service menu. Ensure that you
add a prompt
3. Add the functions under the ‘Global Self Service Functions Custom’ menu
You need to add all your custom functions to be used in Self Service under this menu to
make them assessible.
Log in to Manager Self-Service responsibility
Similarly under Employee Self-Service responsibility