Skip to Content
1
Oct 04, 2020 at 03:26 AM

How to pass user locale to external service in CAP

106 Views Last edit Oct 04, 2020 at 04:29 AM 3 rev

Hi experts,

this is a question about user locale in CAP.

When I call external service in event handlers, the user locale seems not passed to the backend.

The external service is s/4hana odata service.

And i can't find any solution in the docs.Can someone give me any ways?

Here is my code.

const salesareatx = CustomerSalesAreaSrv.tx(request);

const salesOfficeQuery = SELECT.one.from(I_SalesOffice).where({ SalesOffice: salesPriceImportItem.VKBUR, }); const salesoffice = await tx.run(salesOfficeQuery);