Get Example source ABAP code based on a different SAP table
Warning: Undefined variable $prev in /customers/b/9/9/trailsap.com/httpd.www/sap-help/index.php on line 54
ARTICLE • repeat ABAP_FUNCTION
repeat> - Repeat Function
Syntax ... repeat( val = text> occ = occ ) ...>
Effect This function returns a character string that contains the content of text>> as many times as specified in occ>. If text> is an empty string or if occ> contains the value 0, an empty string is returned. occ> is a numerical expression position> of type i>. 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 string>.
Note The parameter occ> has a different meaning here than in functions used for searching.
Example The function repeat> is used to create a string with ten blanks. result = repeat( val = ` ` occ = 10 ).>