Repeat string function in ABAP.
* This function is used to repeat the string using x times.
Code
REPORT zab_rp_stringrepeat.
DATA: lv_string1 TYPE string VALUE 'Ajay',
lv_string2 TYPE string,
times TYPE i VALUE '3'.
WRITE: / 'Before repeat', lv_string1.
lv_string2 = repeat( val = lv_string1 occ = times ) .
WRITE: / 'After repeat',lv_string2.
Output
*****************Thank You****************
Comments
Post a Comment