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

i am unable to know the error.

Hi experts,

I am using 3 screens.One main screen and 2 subscreen.

In 1st subscreen 2 ip fields r there.if that input match with value from db then it will fetch dat and will store in internal table itab.

my sql stmt. is as follows

SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID IN SPFLI-CARRID.

but it is showing that

The IN operator with "SPFLI-CARRID" is followed neither by an internal table nor by a value list.

with regards

ansuman

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 27, 2008 at 10:16 AM

    change it to

    SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID EQ SPFLI-CARRID.

    <removed_by_moderator>

    Edited by: Julius Bussche on Aug 8, 2008 2:45 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2008 at 10:20 AM

    Hi Ansuman,

    as spfli-carrid is a field we need to pass it as a parameter

    SELECT *
    FROM spfli
    INTO TABLE itab
    WHERE carrid EQ spfli-carrid.

    Best regards,

    raam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 30, 2008 at 05:53 AM

    Hi Ansu,

    Try this code in case of parameters:

    parameters :

    p_carrid like spfli-carrid.

    data :

    itab like standard table of spfli .

    data :

    fs_itab like line of itab.

    select *

    from spfli

    into table itab

    where carrid eq p_carrid.

    Try this in case of select-options :

    tables :

    spfli.

    select-options :

    s_carrid for spfli-carrid.

    data :

    itab like standard table of spfli .

    data :

    fs_itab like line of itab.

    select *

    from spfli

    into table itab

    where carrid in s_carrid.

    Regards,

    Swapna.

    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.