cancel
Showing results for 
Search instead for 
Did you mean: 

Get cost center, department name from Compound Employee API

former_member60331
Participant
0 Kudos

Hi,

We are fetching employee master data using compound employee API. Now the end system want Cost Center Name, Legal Entity Name, Department Name etc.

I am already getting id for Cost Center, Legal Entity, Department etc in compound employee's job_information.

xpath - queryCompoundEmployeeResponse/CompoundEmployee/person/employment_information/job_information

Can we utilized the custom fields in compound employee api to send these information from successfactors?

I am currently using content enricher to do that however i have 14 touch fields where default_Name is required for externalCode hence it will lead to performance issues later and is not the optimized solution.

Fields for which default_Name is required -

cost_center,company,department,business_unit,division,manager_id,pay_group,nationality

Regards,

Akash

Accepted Solutions (0)

Answers (5)

Answers (5)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Swathi,

I am able to access the link without any issues.

Pasting the same link

https://blogs.sap.com/2019/11/08/handling-large-data-with-content-enricher-and-odata-v2-adapter/

Regards,

Sriprasad Shivaram Bhat

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Akash,

Few pointers you can note.

1) If field level delta required? If Yes go for CE.

2) IF data from multiple portlets are considered? If Yes go for CE.

3) How many employees do you have in total for Full load consideration ( how frequent full load gonna run )- It can give you an idea.In case of huge no of employees then use Looping Process call to improve performance.

4) If nothing above is required then go for OData and you might face same issue in case navigating into multiple levels from base entity.But its good to give a try.

Regards,

Sriprasad Shivaram Bhat

former_member60331
Participant
0 Kudos

Hi sriprasadshivaramabhat,

Thank you for the reply.

Even after the hashmap is used, full employee load is taking around 1 min and my end client want to used the response directly in the web application.

Can i use odata API to fetch employee master data, as it has a better performance compared to SFAPI? I couldn't any single odata api for all the employee master data.

Regards,

Akash

former_member60331
Participant
0 Kudos

Hi sriprasadshivaramabhat,

Thank you for the reply.

Even after the hashmap is used, full employee load is taking around 1 min and my end client want to used the response directly in the web application.

Can i use odata API to fetch employee master data, as it has a better performance compared to SFAPI? I couldn't any single odata api for all the employee master data.

Regards,

Akash

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Akash,

You can implement steps mentioned below which drastically improves performance.I am not sure whether its good practice hold these values in Compound Employee( Usually we dont get this luxury 🙂 ).

https://blogs.sap.com/2019/11/08/handling-large-data-with-content-enricher-and-odata-v2-adapter/

Other option would be getting all the FO objects ( as per your requirement ) and store it in hashmap. Then make a check every time for your employee manually instead of using Content Enricher.

Regards,

Sriprasad Shivaram Bhat

0 Kudos

Hi sriprasadshivaramabhat,

The link that you have mentioned to use content enricher doesn't work anymore. It would be great if you can post the updated link.

Regards,

Swati