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

select column statement

Hi experts

I am trying to select specifed column in smartform statement but geeting error

"Comma without preceding colon (after SELECT ?)." but same statent is working in report . please let me know what is the reasion of the same .

SELECT SINGLE persnumber

addrnumber

FROM usr21

into ( g_persnumber,g_addrnumber )

where bname eq 'DDIC' .

DDIC is a value of usr21 table .

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 05, 2007 at 09:08 AM

    If you have problem write it like this...

    SELECT SINGLE *

    FROM usr21

    where bname eq 'DDIC' .

    g_persnumber = persnumber

    g_addrnumber = addrnumber

    Regards,

    SaiRam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 10:50 AM

    Hi Ajay,

    The problem is with ur sapcing of fields within brackets.

    write ur query like

    SELECT SINGLE persnumber addrnumber

    FROM usr21

    into (g_persnumber, g_addrnumber)

    where bname eq 'DDIC' .

    Notice thr is no space just after and before the braces.After comma give one space.

    It will work for u.

    Regards

    Rudra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:53 AM

    Thanks for your Quick reply

    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.