Event AG: Instead of 'Get original' for Texts in Other Languages

Use

This event occurs when the function 'Get original' runs. Language- dependent texts are fetched with their originals from the database. A different logic from in the standard can now run, for example to also process text fields which are not in the table/view, but are displayed on the maintenance screen.

Process

The standard routine VIM_READ_TEXTTAB_ENTRY can be a template for the realization of the individual routine.

The following global data are available:

The individual routine must update the text data for the currently selected entry in the internal table <VIM_TEXTTAB>, depending on the constant value of the processing flag:

  • ORIGINAL

    No action required

  • NEUER_EINTRAG

    The entry must be deleted from the internal table

  • UPDATE

    get the text data from the database and assign the constant value ORIGINAL to the processing flag.

The field symbol <VIM_EXTRACT_KEY> contains the key of the entität currently being processed. The field symbol <VIM_EXT_MKEY_BEFORE> must be used instead of <VIM_EXTRACT_KEY> for time-dependent entities with time-independent texts.

You only need to check whether there are texts for the entity key in one language. If no entry is found in the internal table hyperlink TX.SM30_EXIT_TEXTTAB <VIM_TEXTTAB>, there will not be any entriesin other languages either.

  • the internal table was changed:

    MODIFY VIM_TEXTTAB_CONTAINER INDEX VIM_TEXTTAB_CONTAINER_INDEX.
    CLEAR SY-SUBRC.
                      
  • the internal table was not changed:

    SY-SUBRC = 4.