‎2008 Jul 31 9:05 PM
I want to select all customers from table KNKK into internal table where KKBER = '1000' and CRBLB = 'X' or GRUPP = 'Z'.
How can I do this ?
‎2008 Jul 31 9:11 PM
Try this:
select kunnr
from KNKK
into table i_kunnr
where ( KKBER = '1000' AND
CRBLB = 'X' ) or
GRUPP = 'Z'.
‎2008 Jul 31 9:09 PM
>
> I want to select all customers from table KNKK into internal table where KKBER = '1000' and CRBLB = 'X' or GRUPP = 'Z'.
>
>
> How can I do this ?
select * from KNKK
into table it_knkk
where KKBER = '1000'
and ( CRBLB = 'X' or GRUP = 'Z' ).
‎2008 Jul 31 9:11 PM
Try this:
select kunnr
from KNKK
into table i_kunnr
where ( KKBER = '1000' AND
CRBLB = 'X' ) or
GRUPP = 'Z'.
‎2008 Jul 31 9:14 PM
It sys incorrect nesting. Structure should be concluded by endselect,,,
‎2008 Jul 31 9:21 PM
In my sys. there is no syntax error for this code
data: i_kunnr type standard table of kunnr.
select kunnr
from KNKK
into table i_kunnr
where ( KKBER = '1000' AND
CRBLB = 'X' ) or
GRUPP = 'Z'.
Regards,
joy.
‎2008 Jul 31 9:13 PM
Rajesh - please use a more meaningful subject line. This is the ABAP forum so any query shoud be about ABAP.
You have to decide what your logic should be and place parenthesis correctly to implement that logic. But only you can tell what that logic should be.
Rob
‎2008 Jul 31 9:29 PM