Skip to Content
author's profile photo Former Member
Former Member

How to concatenate single quote with any field like 'VBAK'

Hi,

How to concatenate single quote with any fields.

say for example I have table name as MARA, I have to pass that table name to other fields with single quote , like I have to pass that as

tab name = 'MARA'.

but how to do this,

below statement will not work

concatenate ''' 'MARA' ''' into string.. it's giving syntax error...

Regards,

Mrunal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 09:20 AM

    concatenate '''' 'mara' '''' into string.

    Edited by: Phanindra Annaparthi on Feb 27, 2009 10:20 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2009 at 09:21 AM

    try by writing like

    take a variable of char6 for example('MARA') and move this value into that variable. and use that varialbe,.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2009 at 09:22 AM

    gv_name = 'MARA'.

    gc_quote = '''.

    CONCATENATE gc_quote gv_name gc_quote INTO value.

    Pushpraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.