Execution
: When reading texts in other languagesUse
This event occurs at the 'Translation' function. Texts are read in and made available for translation according to the selected languages. A different logic from the standard can run, for example:
·
to change the data read in·
to read in the data differently from in the standard (performance, dependencies) possibly with additional checks.
This event also occurs if time-dependent entries are restricted by time-dependent texts. In this case, the language-dependent texts must be read in in all languages.
Realization
The standard routine VIM_READ_TEXTTAB_FOR_LANGUS can be a template for the realization of the user routine. The user routine does not need a parameter like the standard routine.
In contrast to other events, the user routine must conform to the following interface convention:
FORM xxxxxxx TABLES SEL_LANGUS STRUCTURE H_T002.
The language-dependent texts must be read in to the
internal tabble <VIM_TEXTTAB>. Each language can only be read in once during the maintenance dialog.The entity read selection conditions must be applied (internal table DBA_SELLIST). The texts can be read in in various ways:
·
analogously to standard logicOnly the texts for the languages which are not yet in the
internal table <VIM_TEXTTAB> are read in in the standard. The languages in the transfer table SEL_LANGUS are read in if they have not already been read in. This is checked in the internal table <VIM_READ_LANGUS>. Only the texts for languages are read in which are in SEL_LANGUS but not in <VIM_READ_LANGUS>. As soon as a language is read in, it is entered in the internal table <VIM_READ_LANGUS> to ensure correct reading in future.·
user logicAll texts can be read in at once. Rereading must be avoided.
Only the texts in the languages in the transfer table SEL_LANGUS are displayed.

If the internal tables <VIM_TEXTTAB> or <VIM_READ_LANGUS> have been modified, the following statement must be at the end of the routine:
MODIFY VIM_TEXTTAB_CONTAINER INDEX VIM_TEXTTAB_CONTAINER_INDEX.
The following internal tables are available for the realization of the user routine:
·
internal table <VIM_TEXTTAB>·
internal table <VIM_READ_LANGUS>