Overcome limit of 30 chars in selection screen parameters [ Tips ]

Selection screen elements can have at max 30 characters text. In case you want a longer selection screen text then use comment(s) by which you can have almost 83 characters text which can be used against selection screen text.

Long selection screen text
Long selection screen text



Example program:


REPORT  ZAU_SCREENELE.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREENCOMMENT 1(80TEXT"TO ADD TEXT INTO THE SAME LINE
PARAMETERS: p1(6type c.
SELECTION-SCREEN END OF LINE"Everything will appear in same line.

SELECTION-SCREENSKIP 1"GIVES 1 LINE EXTRA
SELECTION-SCREENULINE"HORIZONTAL LINE
INITIALIZATION.
TEXT = 'Enter your text like this if you want to have a long selection screen text'.