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

wa-text = ' I like 'a' Programming'.

Former Member
0 Likes
951

Hi,

My requirement is ,

a = 'ABAP'.

wa-text = ' I like 'a' Programming'.

Append wa-text to itab-text.

write : itab-text.

Output : I like 'a' Programming

Expected output : I like ABAP Programming

Can any only help me to solve this.

Richard A

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
917

Hi,

do like below......

a = 'ABAP'.
concatenate 'I like' a 'programming' into wa-text seperated by ' '.
Append wa-text to itab-text.

write itab-text.

Cheers,

jose.

7 REPLIES 7
Read only

Former Member
0 Likes
917

hi check this ..

data: begin of itab occurs 0,

text(20) type c,

end of itab,

wa_itab type itab.

wa_itab = 'I like Programming'.

Append wa_itab to itab.

read table itab index 1.

write : itab-text.

regards,

venkat.

Read only

0 Likes
917

Hi,

I have variable a = 'ABAP'.

and inturn i need it to append it as a text inside other itab.

when writing the text out , it should show the text with the variable content.

Richard A

Read only

0 Likes
917

replace all occurrences of ''a'' in text with 'abap'

Read only

0 Likes
917

hi do like this...

data: begin of itab occurs 0,

text(50) type c,

end of itab,

wa_itab type itab.

data: v_text(30) type c value 'I like Programming'.

move v_text to wa_itab.

Append wa_itab to itab.

loop at itab.

write : itab-text.

endloop.

regards,

venkat.

Read only

Former Member
0 Likes
918

Hi,

do like below......

a = 'ABAP'.
concatenate 'I like' a 'programming' into wa-text seperated by ' '.
Append wa-text to itab-text.

write itab-text.

Cheers,

jose.

Read only

Former Member
0 Likes
917

Hi

Use the following code.

concatenate 'I like' a 'Programming' into wa_text.

Append wa-text to itab-text.

write : itab-text.

Regards,

Sanki.

Read only

Former Member
0 Likes
917

Write like this


DATA: a(20) TYPE c,

a = 'ABAP'.
CONCATENATE 'I like' a 'Programming' INTO wa-text SEPARATED BY ' '.
APPEND wa-text TO itab-text.

WRITE: itab-text.
          

Regards

Sandipan