Function Returns a localized string for a given id
Example myvalue =
s10localize( "id5" ).
Format data:
  myid type string,
  myvalue type string.

myvalue =
  s10localize( myid ).
Name Type Description
id string
String ID
value string
Localized string
Description With s10localize() you can access language-dependent strings that are stored class- and language-specific in text files. They are stored in the same way as HTML files in the MIME repository.


s10infomessages10localize'VISIT_SAVED' ) ).

The S10 Framework loads the text file "visit.texts.txt" in the corresponding folder:

Example text file "visit.texts.txt" in English:

// message texts
text UPLOAD_DONE "Document"
text CONFIRM_DOCUMENT_DELETE "Do you really want to delete the document?"
text DOCUMENT_DELETED "Deleted document"
text SPECIFY_VISIT_TYPE "Please specify the contact type"
text SPECIFY_SHORTTEXT "Please enter a short text"
text VISIT_SAVED "Appointment saved"
text CONFIRM_VISIT_DELETE "Do you really want to delete the appointment?"
text TIME_INTERVAL_ERROR "Start time is after end time"

The prerequisite for this is that the path in the MIME repository in which the files are located is specified in the class. This is done by defining a constant "projectpath":

class visit definition inheriting from /s10/any.

public section.

* project path
type string value 'sap/bc/bsp/s10/cis'.


The entire path of the text file is then formed from this, e.g.


The format of the text file is very simple:

- Character set UTF-8
- Blank lines and comment lines beginning with // are ignored
- One line per text, beginning with the keyword "text".
- Following that, the text ID. Upper and lower case are irrelevant
- Then the corresponding text in inverted commas
Components S10 Framework