‎2007 May 08 2:37 PM
hi experts,
how to display below thing in output
abcd'e
thanks in advance
‎2007 May 08 3:48 PM
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
‎2007 May 08 2:38 PM
‎2007 May 08 2:38 PM
‎2007 May 08 2:39 PM
REPORT ABC.
DATA : V_CHAR(6).
CONCATENATE 'abcd' '''' 'e' INTO V_CHAR.
WRITE : V_CHAR.
‎2007 May 08 2:39 PM
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
‎2007 May 08 2:39 PM
‎2007 May 08 2:40 PM
‎2007 May 08 2:40 PM
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.
‎2007 May 08 2:41 PM
‎2007 May 08 2:46 PM
Hi,
Please try this.
WRITE: / 'abcd''e'.
Regards,
Ferry Lianto
‎2007 May 08 3:48 PM
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