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

query, where clause not working.

Hi,

Query is:

select vbeln posnr matnr

from vbap

into table it_ivbap.

it_ivbap is internal table. i got records when i executed this query.

gave a where clause

select vbeln posnr matnr

from vbap

into table it_ivbap

where vbeln = '5049'.

it is not returning any records. i tried with all the possile values of vbeln

what I am doing wrong.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 02:20 PM

    Hello,

    Change like this,

    select vbeln posnr matnr
    from vbap
    into table it_ivbap
    where vbeln = '0000005049'. " Check here
    
    

    Regards,

    vasanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 02:21 PM

    Hi,

    VBELN is the 10 charecters field, so whenever you use the where clause you need to provide the total length, so use the ZEROS before that number to execute that query

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 02:22 PM

    Thank you so much.

    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.