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 VALUE '3'.

WRITE:  'Before repeat'lv_string1.

lv_string2 repeatval lv_string1 occ times .

WRITE: 'After repeat',lv_string2.

Output


*****************Thank You****************

Comments

Popular posts from this blog

Pf status and user command in factory method - OOPS ALV in ABAP

fetch the data from table and send an email in ABAP

Enhancements in abap