Supported by

Change selection screen texts without hard coding them

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.

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

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

ABAP is full of weird stuff like this.

Greetings from Abapinho.

Deixe um comentário

About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).