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

Displaying output

Former Member
0 Likes
836

Hi All,

I am a new user of ABAP. i want to display a name using write statement in the following format:

NAME IS: VIK

for this i am using this code:

DATA: name(20) type c value ' vik'.

write 😕 "NAME IS :" name.

however, the name is not displayed. I have similar problem with parameters statement as well. can anyone please help me out. your help will be highly appreciated.

Regards

Victor

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
810

Hi victor,

1. Minor mistake

2. use SINGLE Quotes (')

(instead of double quots)

(Also use COMMA before name)

3.

DATA: name(20) type c value ' vik'.

write 😕 'NAME IS :'<b> ,</b> name.

regards,

amit m.

Hi All,

I am a new user of ABAP. i want to display a name using write statement in the following format:

NAME IS: VIK

for this i am using this code:

DATA: name(20) type c value ' vik'.

write 😕 "NAME IS :" name.

however, the name is not displayed. I have similar problem with parameters statement as well. can anyone please help me out. your help will be highly appreciated.

Regards

Victor

6 REPLIES 6
Read only

Former Member
0 Likes
810

Hi ...

try this:

DATA: name(20) type c value ' vik'.

write 😕 <b>'NAME IS :',</b> name.

Here use the single quotes <b>('<b></b>)(not double quotes.)</b>

Reward points if useful....

Suresh....

Read only

Former Member
0 Likes
811

Hi victor,

1. Minor mistake

2. use SINGLE Quotes (')

(instead of double quots)

(Also use COMMA before name)

3.

DATA: name(20) type c value ' vik'.

write 😕 'NAME IS :'<b> ,</b> name.

regards,

amit m.

Read only

0 Likes
810

Hi,

thankyou for your quick response. i really appreciate it. can you suggest me some thing which will help me in learning abap. i mean some tips, documents, demo programs, etc.

regards

victor

Read only

0 Likes
810

hi victor,

chk the transaction ABAPDOCU

regards,

priya.

Read only

Former Member
0 Likes
810

hi victor,

try this...

DATA: name(20) type c value 'vik'.

<b>write 😕 'NAME IS :', name.</b>

regards,

priya

Read only

Former Member
0 Likes
810

HI,

data : name(3) type c VALUE 'VIK'.

write : 'NAME IS :'.

write : name.

Use the above code.

it'll work.

****reward points if useful.

All the best.