Supported by
Supported by Inetum

Change selection screen texts without hard coding them

images/thumbnail.jpg - Thumbnail

Even though many ABAP programmers tend to forget this, the less texts you hard code in your program the simpler it will be to translate it.

Here’s a simple but rather obscure way to manipulate selection screen texts while still being able to translate then. This way you can, for example, prefix them with icons.

The magic happens in INITIALIZATION.

PARAMETERS: p_erdat TYPE erdat.

INITIALIZATION.
  %_P_ERDAT_%_APP_%-TEXT = icon_date && %_P_ERDAT_%_APP_%-TEXT.

And here’s the result (notice the calendar icon prefixing the text): image

ABAP is full of weird stuff like this.

Greetings from Abapinho.