Human Capital Management Blogs by SAP
Get insider info on HCM solutions for core HR and payroll, time and attendance, talent management, employee experience management, and more in this SAP blog.
cancel
Showing results for 
Search instead for 
Did you mean: 
lsharma
Product and Topic Expert
Product and Topic Expert

In this blog I am going to show how to create Pay component in One-time Payment Portlet using Integration Center. We come across various scenarios while Implementing EC and ECP where we need to create or Default pay component or allowances based on certain events in employee cycle like Hire, Promotion, Transfer etc. This can be easily achievable using Business rules if events occurred or changes saved in standard Portlets Like Personal Information, Dependent Information, Job Information / Position Information, work Permit etc. But Issue arises when we have custom MDF Portlet or Portlet which directly not accessible or an event triggered in those Portlet will not directly go and create Pay components in One-time Payment due to some limitations in business rules.

While Implementing ECP, one more concern arises if we will not create pay component in Standard Portlets like One-time Payment, Recurring Payments or Deductions and One-time Deductions from custom MDF portlet then we will need to enhance standard Employee replication program using BADI which leads to inconsistencies in future during ECP system Upgrade. So, to avoid enhancing the Standard replication program I used to Create Pay component in EC Standard Portlet like One time Payment, Recurring Payments or Deductions and One-time Deductions from Custom MDF Portlet and from the standard Portlets using the Standard replication program data will be replicated back to EC Payroll system for further processing.

Without wasting more will directly come to my scenario. We need to create One time pay component based on the Employee Absences with absence hours and replicate back to EC Payroll system. There is no direct integration with Employee time object with one time portlet means if we create absences in EC Time off screen it will go and create Pay component in One of EC standard Portlets.

So, I used IC (Integration Center jobs) which will look Time type / leave type and approval status and custom field in Employee Time Object.

Let’s proceed with scenario

 First Create Absence type in EC Time off for an Employee.

lsharma_0-1676306146632.png

 

 

We can see Absence is Approved for an Employee.

lsharma_1-1676306146639.png

Access Integration Center: Log into Employee Central and navigate to the Integration Center.

  1. Click on “My Integrations”

lsharma_2-1676306146643.png

b. On the top Right hand side click on Create

lsharma_3-1676306146656.png

c. Select “More Integration Types”

lsharma_4-1676306146668.png

d. Select the Triggered Type as “Scheduled”, Source type as “SuccessFactors”, Destination Type as “SuccessFactors” and Format as “OData V2”. Click on Create

lsharma_5-1676306146680.png

e. Search for Entity Employee time and Select Employee time and Click on Select

lsharma_6-1676306146694.png

f. Specify the Name & Description and click on Next Button

lsharma_7-1676306146702.png

g. In the Configure Fields Section, you will Entity we select in the initial was Employee time Object (it might differ in your case like any custom object).

i) Select Upsert Multiple from Operation (to update multiple records at same time)

ii) Click on “Switch to Field Mapping view” button (second button in the right side of the screen)

lsharma_8-1676306146713.png

h. In this screen we will see three sections first one showing Input / Source Entity, in the second or Middle one is called Destination Fields (by default system will source Entity and the Third one is Preview which is actually output in code form.

i) Click on “Delete/Trash” button given in Destination Section because we want update data in the different format which is going to be One time Payment (EmpPayCompNonRecurring)

lsharma_9-1676306146722.png

i. Once Employee time Object deleted from Destination Fields. It will look like this

lsharma_10-1676306146732.png

j. Click on Add Entity or ‘+’ button to add entity in which format we want update the data. Search for One time Payment (EmpPayCompNonRecurring)

lsharma_11-1676306146740.png

k.  Screen will look like this

lsharma_12-1676306146749.png

l. Now we need to do the field mappings

i) Map User (userId) String(100) with User ID (userId) String(100) using drag and drop. This is needed because system will identify or create Record for the same employee for whom Absence or time off was recorded.

lsharma_13-1676306146759.png

ii) Map the Pay component. To do so first click on “Switch to Detail view” button (first button from Top right side). Then Select the Pay component Field and in the Default Value field mention Pay component Code. In my case I have mentioned pay component 4720 and your case it might be different.

lsharma_14-1676306146766.png

iii) Map Issue Date with the Start date of Employee time Object. To do this follow the same as first step.

iv) Lastly Map we need to map the Amount field of One time Payment with a Custom field created in the Employee time object using the same drag and drop approach which we used in first and third step.

v) Click on next button

lsharma_15-1676306146797.png

m. In Filter and sort, we need to identify for which type for Leave or Absence type System will go and create the Pay component.

i) Click on Browse button in Advanced Filters

lsharma_16-1676306146802.png

ii) Click on Entity Tree View Heading and it will expanded to show Input entity i.e, Employee Time Object which in our case. Select the Time Type and Click on Greyed button Change Association to “Time Type”

lsharma_17-1676306146810.png

iii) System will Time Type in Field and in the corresponding Value we need to mention from which Time type system Select the data. In my case I have use “LOA_STD”.

lsharma_18-1676306146818.png

iv) Again, click on “Add Filter set” and follow step 1, 2 and 3 but this time select field “Approval Status”

lsharma_19-1676306146824.png

v) Why have I used “Approval Status” field? Because when EC Time off has been requested it may have pending, Rejected, Cancelled and Approved. So, system should only select value of “Approved” Time off requested. Otherwise, system will bring unnecessary values which might lead to issues. Hence use Approval Status field with status Approved. Make sure Value should be maintained in Capital letters as “APPROVED”.

lsharma_20-1676306146831.png

vi) Need to set last filter, click on “Add Filter set” and follow step 1, 2 and 3 but this time I’ll select the custom field “Used Hours to be paid at 70%” which contains the no. of hours which need to be replicated.

lsharma_21-1676306146837.png

vii) IC (Integration Center) job should only select the employees with those records which contains value greater than ZERO. Then click on ‘Save’ to save to the configurations

lsharma_22-1676306146843.png

lsharma_23-1676306146850.png

viii) System will show message that ‘The integration saved successfully. Click ‘Ok’ to continue

lsharma_24-1676306146858.png

ix) Now click on ‘Test View’ button and ‘Preview’ button to see whether system is bringing correct data for the employee which I have created in the starting. Click on ‘Next’ button if everything looks okay

lsharma_25-1676306146868.png

lsharma_26-1676306146876.png

x) Now, I must set the frequency of this IC job so that it will bring the data which would be created in EC time off object for employees regularly. There are various options are available in the Scheduling section. As you can see in the screen shot. I am going set the frequency ‘Multiple executions per day’. In this frequency recurring job will executed in a day.

lsharma_27-1676306146881.png

xi) To set up ‘Multiple Executions Per Day’ we must set up Time-based filters given under section Filter and Sort.

a) First go to ‘Modified of Effective Since’ and click on the drop down and select Modified or effective since. In this option system will select only those data which were modified.

lsharma_28-1676306146885.png

b) Click on Edit on the second field where it is showing “<datetime,LASTR..” and then select ‘Last Run Time’. We need to do this because system should only select Delta data means data which were modified or created after last execution of IC job. If we don’t do this one system will bring everytime new all data which were created. This only need to do when we are setting up frequency ‘Multiple executions per day.

lsharma_29-1676306146893.png

c) After setting the setting up “Time-based filters”. Click on Next. In the Scheduling section, I set this job every One hour and Six times. Then Click on Set Schedule

lsharma_30-1676306146899.png

xii) Click on Next button. It will bring to the last section which Review and Run. In this we will execute the job and set the schedule. Again click on ‘Set Schedule’ button

lsharma_31-1676306146910.png

System will show up message ‘The Integration job Setting were successfully saved, and the job was submitted”. Click ‘OK’. Job will be scheduled on the time and date which I mentioned in Scheduling.

lsharma_32-1676306146919.png

xiii) But if we want to run the job immediately and see whether it successfully created the record in One time portlet or not.

a) Click on ‘Run Now’ Button. Look and Run time field it will show time date and refresh button. Click on refresh button. Once it will show a ‘Running man’ means job is executed successfully.

lsharma_33-1676306146929.png

b) Click on Time and date in Last run time field. It will bring Execution manager screen where I can see system has successfully created one record in One Time Payment portlet (EmpPayCompNonRecurring)

lsharma_34-1676306146939.png

xiv) Go to the employee and check One time portlet. I can see Paycomponent 4720 created in with the correct amount

lsharma_35-1676306146950.png

I have demonstrated how we can create Integration centre job to create pay component in One time Portlet. Hoping that this blog helps you in various scenarios during implementation where we must create pay components based on some custom portlets or Objects which will trigger business rule to create pay components.

In the next blog I’ll show how to Delete Pay component using Integration centre.

Thanks

Lalit

 

 

 

 

 

 

 

3 Comments

Good one Lalit! 

0 Kudos

My role requires me to work a 24/7 shift rotation. How do we submit shift penalty allowances for Morning, afternoon, night and weekend shifts, overtime and travel to and from work claims? This was previously done quite simply using peoplesoft. 

Trudi1
Explorer
0 Kudos

Hi Lalit

Excellent post, thank you. however the issue we are facing is that when we updating the leave start date for the existing approved leave, there is duplicate one time payment created via IC job instead of updating the effective date and amount. do you have any solution on this scenario? Much appreciated