ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing → String Functions → Processing Functions for Character-Like Arguments
repeat - Repeat Function
... repeat( val = text occ = occ ) ...
This function returns a character string that contains the content of
text as many times as specified in
text is an empty string or if
occ contains the value 0, an empty string is returned.
occ is a
numerical expression position. If the value of
occ is negative, an exception of the class CX_SY_STRG_PAR_VAL is raised.
The return code has the type
occ has a different meaning here than in functions used for searching.
repeat is used to create a string with ten blanks.
result = repeat( val = ` ` occ = 10 ).
Cause: Occurrences in
occare less than 0.