Skip to Content
author's profile photo
Former Member

Escape Sequence

Hi Experts,

maybe this question is far to simple, but I just can't find out what escape sequences to use for ABAP.

The problem ist, that I want to build a string via CONCATENATE like:

CONCATENATE '/'' <fs>-field '/'' INTO string.

The string shall look like 'value_from_<fs>-field' . The / are the wrong escape characters here. My question is what character do I have to use?

Regards

Torsten

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on Aug 21, 2007 at 09:37 AM

    try this

    data: output(40).
    concatenate 'field1' '''' 'field2' into output.
    write:/ output.

    is this what you want ?

    the '' is the escape sequence for apostrophe and since it is a string type, it should be enclosed in another set of ''

    hence it becomes ''''

    Message was edited by:

    Kris Donald

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 09:39 AM

    hi

    Just write this:

    variable = <fs_field>.

    write: / variable.

    Regards

    Preeti

    Add comment
    10|10000 characters needed characters exceeded