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

write

Former Member
0 Likes
1,206

hi experts,

how to display below thing in output

abcd'e

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,183

Hi,

This come under Text literals. Details are:

<u><b>Text literals</b></u>

Text literals are sequences of alphanumeric characters in the source code of an ABAP program enclosed in single quotation marks. They always have the predefined ABAP type C. The field length is determined by the number of characters.

Examples of text literals

'Antony Smith'

'69190 Walldorf'

Text literals can be up to 255 characters long. A text literal is always at least one character long. Entering '' is the equivalent of ' '. If you want to enter a text literal in the ABAP Editor that is longer than a single editor line, ABAP syntax [Page 83] allows you to enter several literals and link them using the & character. If a text literal contains a quotation mark, you must repeat it to enable the system to recognize the contents as a text literal and not as the end of the literal.

WRITE: / 'This is John''s bicycle'.

This statement generates the following output:

This is John's bicycle

Regards,

Bhaskar

10 REPLIES 10
Read only

Former Member
0 Likes
1,183

Hi,

write:/ 'abcd''e'.

rgds,

bharat.

Read only

Former Member
0 Likes
1,183

Hi,

Write : / 'abcd''e'

Rgds,

Prajith

Read only

Former Member
0 Likes
1,183
REPORT ABC.

DATA : V_CHAR(6).

CONCATENATE 'abcd' '''' 'e' INTO V_CHAR.

WRITE : V_CHAR.
Read only

former_member198270
Active Contributor
0 Likes
1,183

Hi Raju ,

try to concatenate the contents before ( ' ) and contents after that to some work area and print tht work area field.

<i>Please reward points if helpful.</i>

Regards,

Amber S

Read only

Former Member
0 Likes
1,183

copy this statement & execute it in SE38.

write : 'abcd''e'.

Read only

suresh_datti
Active Contributor
0 Likes
1,183

just use an extra quote ie

write : / 'abcd''e'.

~Suresh

Read only

Former Member
0 Likes
1,183

Hi surendra,

1. simple

2.

report abc.

<b>write : `abcd'e`</b>

3. Note :

the important character is <b>`</b>

This is just besdies 1 Button on top.

regards,

amit m.

Read only

Former Member
0 Likes
1,183

hi,

this is

write 'abcd''e'.

regards,

kiran

Read only

ferry_lianto
Active Contributor
0 Likes
1,183

Hi,

Please try this.


WRITE: / 'abcd''e'.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,184

Hi,

This come under Text literals. Details are:

<u><b>Text literals</b></u>

Text literals are sequences of alphanumeric characters in the source code of an ABAP program enclosed in single quotation marks. They always have the predefined ABAP type C. The field length is determined by the number of characters.

Examples of text literals

'Antony Smith'

'69190 Walldorf'

Text literals can be up to 255 characters long. A text literal is always at least one character long. Entering '' is the equivalent of ' '. If you want to enter a text literal in the ABAP Editor that is longer than a single editor line, ABAP syntax [Page 83] allows you to enter several literals and link them using the & character. If a text literal contains a quotation mark, you must repeat it to enable the system to recognize the contents as a text literal and not as the end of the literal.

WRITE: / 'This is John''s bicycle'.

This statement generates the following output:

This is John's bicycle

Regards,

Bhaskar