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

select query

select single matnr

werks

into marc

from marc

where matnr = 'ETEST1'

and werks = '0001'.

Output comes as 1

whereas table contains values as shown, what could be the issue.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 18, 2008 at 09:04 AM

    select single matnr

    werks

    into CORRESPONDING FIELDS OF marc

    from marc

    where matnr = 'ETEST1'

    and werks = '0001'.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 18, 2008 at 09:06 AM

    Hi,

    use CORRESPONDING FIELDS OF marc

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 18, 2008 at 09:20 AM

    Hi SV,

    This scenario occurs for the following reason.

    1. When there is conversion exit for either MATNR or WERKS. To check whether a conversion exit exists for these two, go to the domains for the above two.

    To avoid this, do the following.

    1. Declare variables for both Matnr & Werks.

    2. Call the conversion functions for the above fields. Since there are two, you should be calling the conversion function modules (mostly 'CONVERSION_EXIT_ALPHA_INPUT') for each of them.

    3. Pass these values in the where condition of the select query.

    This should solve your purpose.

    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.