Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

format

Former Member
0 Likes
605

how can i fill a string of length 1000 with '*'.

thanks

Aruna.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
591

data : w_str(1000).

clear w_str with '*'.

5 REPLIES 5
Read only

athavanraja
Active Contributor
0 Likes
591

data: temp_string(1000) .

do 1000 times.

concatenate '*' temp_string into temp_string .

enddo .

Regards

Raja

Read only

Former Member
0 Likes
591

Hi Arunu

DATA: STRING(1000),

OFFSET TYPE I.

DO 1000 TIMES.

WRITE '*' TO STRING+OFFSET(1).

OFFSET = OFFSET + 1.

ENDDO.

Max

Message was edited by: max bianchi

Message was edited by: max bianchi

Read only

0 Likes
591

can you reward helpful answers and close the previous thread

Regards

Raja

Read only

Former Member
0 Likes
592

data : w_str(1000).

clear w_str with '*'.

Read only

guillaume-hrc
Active Contributor
0 Likes
591

Hi,

To be precise, if you DO want a <i><b>string</b></i>

DATA : w_char(1000) TYPE c.
DATA : w_str        TYPE string.

CLEAR w_char WITH '*'.
w_str = w_char.