Introduction:
In today's globalized business environment, multilingual support is crucial for ensuring effective communication and user experience. SAP SuccessFactors offers powerful HR solutions, but customizing and translating picklists to suit diverse user needs across different regions and languages can be a challenging task. In this article, we'll explore how a custom SAPUI5 application could look like that integrates with the SAP Translation Hub of the SAP Business Technology Platform (BTP) to seamlessly translate picklists in SAP SuccessFactors.
Overview of the Solution:
This article is about building a sample SAPUI5 application that acts as a frontend interface for translating picklists in SAP SuccessFactors. Leveraging the SAP Translation Hub provided by the SAP BTP, we'll enable dynamic translation of picklist values into multiple languages. This integration will streamline the translation process and enhance user experience for global users of SAP SuccessFactors.
This article should therefore be seen as an example how standardised AI services can be leveraged for custom SAP Successfactors use cases and not as an official product recommendation.
Prerequisites:
Before proceeding, ensure you have the following prerequisites in place:
Step-by-Step Implementation:
Access your DEV space of the BAS to start off with the implementation. The DEV space should be entitled to work with FIORI applications
An example of the Translator app can be found here. This repository might serve as staring point for the implementation and or adaption of the project as it already holds some logic which can help you to speed up your project. If you want to use it, feel free to clone the git repository into your BAS with the clone transaction, provide the repository URL and continue with the blog.
One thing that needs to be adapted in any case in the template to make it fit to your SAP SuccessFactors environment is the metadata structure of the write back payload. Therefore access the PicklistValueView.controller.js in the webapp > controller directory of your cloned application and adapt the uri to the SAP SuccessFactors datacenter api endpoint your instance is located in. A list of datacenter and endpoints can be found here
2. Integration with SuccessFactors APIs
After you cloned the template from the Github repository and adapted the uri you need to define the respective destinations in the BTP subaccount for this application. For the access to your SAP SuccessFactors environment the app uses a destination called SFADMIN. Make sure you use the API endpoint of your SuccessFactors environment and an appropriate authentication method. For a list of SAP SuccessFactors datacenter APIs click here
3. Implement Translation Service Integration
Integrate with the Translation Service APIs provided by the SAP BTP. Use the APIs to dynamically translate picklist values into multiple languages based on user preferences. Therefore you need to subscribe to the SAP Translation Hub in your subaccount. Please also check the scope of languages which are currently supported by the SAP Translation Hub.
Create a service instance of the Document Translation service to get the relevant Credentials (Endpoint, ClientId, Client Secret..) needed for the destination with Oauth2ClientCredentials, which is called Translation.
Create a Translation Destination in the same subaccount as the app will be later deployed into. Therefore you can try to create the destination out of the service or download the credentials and create the destination manually. (Do not forget the /oauth/token after the token url)
4. Test (optional)
Thoroughly test the SAPUI5 application to ensure that picklist data is retrieved accurately from SuccessFactors APIs. Therefore you can use the integrated Preview function of the Business Application Studio (right click on webapp)
Testing the app in the preview mode will only load the picklist from SAP SuccessFactors and allow you the basic navigation of the app. The translation service and the write back to SAP SuccessFactors will only be available after the deployment of the app. The app will automatically detect the languages being enabled in your SAP SuccessFactors environment and present them accordingly.
5. Deployment and Monitoring:
Rightclick the mta.yaml to build your app and then right click the mtar file in mta_archives to deploy it to your SAP Business Technology Platform Subaccount. Make sure you have the needed permissions in the subaccount and org space.
After the successful deployment navigate to your subaccount > HTML5 Applications and access the app
The app can either be now integrated into your SAP Successfactors environment as per Custom External Module and be made available via the action search or you can configure its access in the SAP Workzone Content Manager.
Conclusion:
By leveraging the Translation Service of the SAP Business Technology Platform, organisations can enhance the multilingual capabilities of SAP SuccessFactors and provide a more inclusive user experience for global users. Building a custom SAPUI5 application to integrate with SuccessFactors APIs and Translation Service APIs empowers organizations to efficiently manage and translate picklists, contributing to better user adoption and satisfaction across diverse regions and languages. The sample application which is presented here can serve as a good starting point or inspiration for such a mission and therefore act as an accelerator for your journey.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
15 | |
15 | |
14 | |
11 | |
9 | |
8 | |
7 | |
7 | |
7 |