You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/abap-extensibility-cbo-execute-outbound-service/abap-extensibility-cbo-execute-outbound-service.md
The example application of `Bonus Entitlement` will be enhanced by a feedback functionality. The manager's feedback will be translated automatically into English by calling the externally available service **SAP Translation Hub** of SAP.
28
28
> Be aware that the example is done with the SAP Business Accelerator Hub Sandbox system only. This shall only give an idea on how it works and cannot be used productively.
29
29
30
-
>Tutorial last updated with SAP S/4HANA Cloud Release 2302
30
+
>Tutorial feasibility last checked with SAP S/4HANA Cloud Release 2408
31
31
32
32
---
33
33
### Excursus - Try out the service in SAP Business Accelerator Hub
34
34
35
35
To get to know the SAP Translation Hub service first, you can try it out in SAP Business Accelerator Hub.
36
36
37
-
1. Go to [Try out of SAP Translation Hub on SAP Business Accelerator Hub](https://api.sap.com/api/translationhub/tryout)
37
+
<!--border-->
38
+

38
39
39
-

40
+
1. Go to [Try out of SAP Translation Hub on SAP Business Accelerator Hub](https://api.sap.com/api/translationhub/tryout)
40
41
41
42
2. Expand the **Translate** operations section .
42
43
@@ -178,7 +179,7 @@ Define the external SAP Business Accelerator Hub service as an available Communi
178
179
179
180
Create a Communication Arrangement to link the scenario with the communication system.
180
181
181
-
1. Start typing **Custom Communication Arrangements** in the Launchpad search and open the App from the results.
182
+
1. Start typing **Communication Arrangements** in the Launchpad search and open the App from the results.
182
183
183
184

184
185
@@ -287,6 +288,7 @@ Now as the business object has just been published, the logic can be enhanced by
287
288
}
288
289
]
289
290
}
291
+
290
292
```
291
293
292
294
In the custom business object logic you have to supply this request as string. The `sourceLanguage` and `value` values have to be replaced with variables by string concatenation.
@@ -338,17 +340,19 @@ Now as the business object has just been published, the logic can be enhanced by
338
340
339
341
```json
340
342
{
341
-
"units": [
343
+
"units": [
344
+
{
345
+
"value": "Su texto a traducir",
346
+
"translations": [
342
347
{
343
-
"value": "Su texto a traducir",
344
-
"translations": [
345
-
{
346
-
"language": "en",
347
-
"value": "Your text to translate"
348
-
}
349
-
]
348
+
"language": "en",
349
+
"value": "Your text to translate",
350
+
"translationProvider": 1,
351
+
"qualityIndex": 25
350
352
}
351
353
]
354
+
}
355
+
]
352
356
}
353
357
```
354
358
@@ -399,6 +403,8 @@ Now as the business object has just been published, the logic can be enhanced by
399
403
| Feedback | **`Su texto a traducir`** |
400
404
| Feedback's Language | **`es`** |
401
405
406
+
> Please note that the language code must be entered in lower case to ensure that the service call is successful.
407
+
402
408
5. **Save** the Bonus Entitlement. The translation will get filled.
0 commit comments