cancel
Showing results for 
Search instead for 
Did you mean: 

CAI: change language of output from oData service

simonleifick
Participant
0 Kudos

Hi,
we have integrated an oData Service from our backend S/4 HANA system (POST: creating a purchase req).

Per default, the output from the system is a message in English. We have added two field to the request:
Accept-Language: DE
sap-language: DE

In the response, the message is still in English, but not in DE. Does anyone have an idea?

BR
Simon

**Update: I have found the reason for the problem: The destination configuration is overwriting my header --> EN instead of DE; A question for all BTP Connectivity experts: How can I prevent the BTP connectivity service from overwriting my header infomation in the POST?**

JonasB
Contributor

Hi Simon,

do I understand your question correctly that you're asking how the OData service can return information in German and this question is not really related to SAP Conversational AI? Which information is the OData service actually returning that is language-specific? As far as I know it really depends on the specific OData service if it supports other languages or not and you might want to check the assigned tags to make sure your question is seen by the S/4 HANA experts.

Regards
Jonas

simonleifick
Participant
0 Kudos

Hi jonas.brand,
thanks for your response!

We want to create a purchase req using the oData Service. The answer from the system is language specific: If the user is in an English context, the answer should in in English (e.g. success message or warnings). The same holds for German.
We have tested the oData service in the Backend and with Postman and both languages are working correctly (e.g. with "sap-language: DE" in the header --> Postman workin

g; CAI always in English).


But when we send the POST from CAI, the response is always in English. Therefore, I assume there must be something in CAI? 😉

BR
Simon

simonleifick
Participant
0 Kudos

Updated the question, problem is within BTP connectivity service

Accepted Solutions (0)

Answers (0)