How to print apostrophe (‘) using the WRITE statement (ABAP)


To totally unlock this section you need to Log-in


Login

Printing apostrophes ( ' ) in ABAP is really tricky as in ABAP coding we have to give values in quotes like 'Ricky World'. So how to use WRITE: 'Ricky's World' ? If you try to type this it will give syntax error!

The trick is use three apostrophes instead of one (HeelpBook Staff: this behaviour is caused by the ABAP parser that view two apostrophes as a single character-apostrophe).

[tweet]


To totally unlock this section you need to Log-in


Login

1 thought on “How to print apostrophe (‘) using the WRITE statement (ABAP)”

Comments are closed.