Skip to content

Commit 5b5fcce

Browse files
authored
Merge pull request #2576 from Liebherr:main
update API Hub tutorial and responsibility
2 parents 454e3a0 + f9afd39 commit 5b5fcce

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed
-53 KB
Loading
407 Bytes
Loading

tutorials/abap-extensibility-cbo-execute-outbound-service/abap-extensibility-cbo-execute-outbound-service.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ auto_validation: true
44
primary_tag: programming-tool>abap-extensibility
55
tags: [ tutorial>intermediate, tutorial>license, topic>abap-extensibility, topic>cloud, products>sap-s-4hana ]
66
time: 15
7-
author_name: Ulrike Liebherr
8-
author_profile: https://github.com/Liebherr
7+
author_name: Peter Persiel
8+
author_profile: https://github.com/peterpersiel
99
---
10-
<!--DONE in E1Y-->
10+
<!--DONE in E1Y (https://dlm.wdf.sap.corp/launchpad/portal/#/Search/e1y -> https://my300098.s4hana.ondemand.com/)-->
1111
# Execute an Outbound Service from Custom Business Object Logic
1212
<!-- description --> Call an external service of SAP Business Accelerator Hub from inside the logic implementation of a custom business object.
1313

@@ -27,16 +27,17 @@ author_profile: https://github.com/Liebherr
2727
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.
2828
> 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.
2929
30-
>Tutorial last updated with SAP S/4HANA Cloud Release 2302
30+
>Tutorial feasibility last checked with SAP S/4HANA Cloud Release 2408
3131
3232
---
3333
### Excursus - Try out the service in SAP Business Accelerator Hub
3434

3535
To get to know the SAP Translation Hub service first, you can try it out in SAP Business Accelerator Hub.
3636

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+
![Try out of SAP Translation Hub on SAP Business Accelerator Hub](API_Hub_TryOut.png)
3839

39-
![Try out of SAP Translation Hub on SAP Business Accelerator Hub](API_Hub_TryOut.png)
40+
1. Go to [Try out of SAP Translation Hub on SAP Business Accelerator Hub](https://api.sap.com/api/translationhub/tryout)
4041

4142
2. Expand the **Translate** operations section .
4243

@@ -178,7 +179,7 @@ Define the external SAP Business Accelerator Hub service as an available Communi
178179

179180
Create a Communication Arrangement to link the scenario with the communication system.
180181

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.
182183

183184
![Custom Communication Arrangements application from search results](FLP_searchResult_CA.png)
184185

@@ -287,6 +288,7 @@ Now as the business object has just been published, the logic can be enhanced by
287288
}
288289
]
289290
}
291+
290292
```
291293

292294
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
338340

339341
```json
340342
{
341-
"units": [
343+
"units": [
344+
{
345+
"value": "Su texto a traducir",
346+
"translations": [
342347
{
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
350352
}
351353
]
354+
}
355+
]
352356
}
353357
```
354358

@@ -399,6 +403,8 @@ Now as the business object has just been published, the logic can be enhanced by
399403
| Feedback | **`Su texto a traducir`** |
400404
| Feedback's Language | **`es`** |
401405

406+
> Please note that the language code must be entered in lower case to ensure that the service call is successful.
407+
402408
5. **Save** the Bonus Entitlement. The translation will get filled.
403409

404410

0 commit comments

Comments
 (0)