Show TOC

Process documentationEvent AF: Instead of Reading Texts in Other Languages Locate this document in the navigation structure

 

This event occurs each time the function 'Translation' is called. The texts are read in according to the selected languages and are offered for translation. A different logic from the standard can now run, for example:

  • change the data read in

  • read the data in differently from in the standard (performance, dependenies) possibly with additional checks.

    Note Note

    This event also occurs whenever time-dependent entries are delimited by time-dependent texts. In this case, the language-dependent texts in all languages must be read.

    End of the note.

Process

The standard routine VIM_READ_TEXTTAB_FOR_LANGUS can be a template for the realization of the individual routines. A parameter, as for the standard routine, is not necessary for the individual routines.

In contrast to other events, the individual routines must conform to the following interface convention:

Syntax Syntax

  1. FORM xxxxxxx TABLES SEL_LANGUS STRUCTURE H_T002.
End of the code.

The language-dependent texts must be read in to the internal table <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). Each language can only be read in once during the maintenance dialog.

  • Analogously to standard logic

    Only 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.

  • Individual logic

    All texts can be read in once. Reread must be avoided.

Only texts in the languages in the transfer table SEL_LANGUS are displayed.

Note Note

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.

End of the note.

The following internal tables are available for the realization of the individual routines: