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

Syntax check warning key field "DATAB" does not test for equality

Hii guyz..

Need help...!

I am not able to get rid of this warning...

Syntax check warning

This warning is only displayed in SLIN.

In "SELECT SINGLE ...", the WHERE condition for the key field "DATAB" does not test for equality. Therefore, the single record in question may not be unique.

Here is the code...

SELECT SINGLE hkunnr

FROM knvh

INTO v_hkunnr

WHERE hityp EQ c_a

AND kunnr EQ wa_kna1-kunnr

AND vkorg EQ c_4315

AND vtweg EQ c_zero2

AND spart EQ c_zero2

AND datbi GE sy-datum

AND hkunnr NE space.

What do I do with this variable .

Please help...

Thanks

....Jaif

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:15 AM

    hi

    in where condition u just add that field , u ll not get that.

    if u dont know the value for that, just ognore it.

    regards

    karthik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:17 AM

    Hi Jaif

    Since you are not using all the primary keys..please use

    SELECT ...UP TO 1 ROWS ..instead of select single

    Regards

    Arun

    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.