Event AF: Instead of Reading Texts in Other Languages

Use

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.

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:

        
FORM xxxxxxx TABLES SEL_LANGUS STRUCTURE H_T002.
         

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.

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