cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Translating ErrorMessages in Determination and Validation | Custom Business Object | S4 Public Cloud

michaelschmid03
Explorer
0 Likes
632

Hi everyone,

So in my company we are developping some Apps which use Custom Business Objects (created with the corresponding key user extensibility app) for storing Data.
Now for said Custom Business Objects we have some Validation Logic. Which also should output Error Messages. michaelschmid03_0-1717053226683.png
While this works fine, i am wondering if there is a way of translating these texts.
My Colleagues know that this was possible in the "old world" with the transaction se63, but we struggle to find a sample where something like this is done in a S4/HANA Public Cloud System.

I found some info about "Maintaining Customizing Translations" and Translation Tables, but theres not much out there.

Any feedback or suggestions would be appreciated

https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/d334f29b1cfc443b9f035e2f...

#

Accepted Solutions (0)

Answers (1)

Answers (1)

AndreasMuno
Product and Topic Expert
Product and Topic Expert

Thank you for your question, @michaelschmid03.  

in SAP S/4HANA Cloud Public Edition you may want to use Cloud ABAP for in-app developer extensions, or in BTP. In BTP you also have an option for Cloud Application Programming (CAP). In CAP you might want to take advantage of the internationalization file structure, i18n. For the English default of your program you might have a file 'properties' with content like this:    

# This is the resource bundle for sap.btp.sapui5

#XTIT: Application name

appTitle=Products

appDescription=Displays products

Currency=EUR

Discontinued=Discontinued

Available=Available

# List View

ListTitle=Product Overview

# Detail View

DetailTitle=Product Details

Ordered=Ordered

NotOrdered=Not Ordered

OrderButtonText=Order

OrderDialogTitle=Order Product

OrderDialogMsg=Do you want to order this product now?

OrderDialogSuccessMsg=The product has been ordered. 

etc. 

If you now wanted to add another language, for example, German, you would add another file called i18n_de.properties (de stands for Deutsch). You would then put the German translations of those strings into that file like so:

Currency=EUR

Discontinued=Eingestellt

Available=Verfügbar ... etc ... OrderDialogSuccessMsg=Die Ware ist bestellt.

When your application runs, it will choose the correct i18n.properties file to use based on the user's (browser's) language settings. This way, you could support any number of languages simply by adding more i18n_.properties files to your project.

 

michaelschmid03
Explorer
0 Likes

thanks for replying,
i am very well aware of the features of sap cap. But unfortunately this isnt what i am looking for. I an looking for a way of getting translated error messages directly in the s4 system, so that other low code tooling like sap build or third parties can access the s4 odata service of said business-object and still get translated error messages.


since sometimes business objects get created by key users instead of developers, i expect there beeing a way in ABAP Cloud which  allows to add a feature like this later, without having to create a new business object in eclipse adt. Is there any way of achieving this?

of course i could wrap every custom business object with a cap nodejs runtime on btp but at that point i might be faster just replacing these Custom Business Objects with SAP HANA CLOUD database tables

@AndreasMuno