‎2006 Nov 16 8:38 AM
Hi Friends,
I need the bewtp to check twice with E and Q, My select querry is picking all the data. Pls check the select statement and correct it
SELECT ebeln
ebelp
belnr
budat
menge
dmbtr
matnr
werks
bewtp into corresponding fields of table lt_ekbe FROM ekbe
WHERE matnr IN so_matnr
AND budat IN so_budat
and bewtp EQ 'E'
OR bewtp EQ 'Q'.
Thanx and regards,,
Turbin
‎2006 Nov 16 8:40 AM
SELECT ebeln
ebelp
belnr
budat
menge
dmbtr
matnr
werks
bewtp into corresponding fields of table lt_ekbe FROM ekbe
WHERE matnr IN so_matnr
AND budat IN so_budat
and <b>( bewtp EQ 'E' OR bewtp EQ 'Q' )</b>.
Do the changes as highlighted.
Regards,
Ravi
Note : Please mark all the helpful answers
‎2006 Nov 16 8:40 AM
SELECT ebeln
ebelp
belnr
budat
menge
dmbtr
matnr
werks
bewtp into corresponding fields of table lt_ekbe FROM ekbe
WHERE matnr IN so_matnr
AND budat IN so_budat
and <b>( bewtp EQ 'E' OR bewtp EQ 'Q' )</b>.
Do the changes as highlighted.
Regards,
Ravi
Note : Please mark all the helpful answers
‎2006 Nov 16 8:46 AM
Hi Line,
Try following......
SELECT ebeln
ebelp
belnr
budat
menge
dmbtr
matnr
werks
bewtp
into corresponding fields of table lt_ekbe FROM ekbe
WHERE matnr IN so_matnr AND
budat IN so_budat AND
( bewtp EQ 'E' OR bewtp EQ 'Q' ) .
hope this helps you...
Enjoy SAP.
Pankaj Singh.
‎2006 Nov 16 8:55 AM
SELECT ebeln
ebelp
belnr
budat
menge
dmbtr
matnr
werks
bewtp into corresponding fields of table lt_ekbe FROM ekbe
WHERE matnr IN so_matnr
AND budat IN so_budat
and (bewtp EQ 'E' OR bewtp EQ 'Q' ).
Message was edited by:
V.S.N.A.Subhakar Ramineni
‎2006 Nov 16 9:01 AM
<b>Just for your info</b>, we can acheive the same as below too...
SELECT ebeln ebelp belnr budat menge
dmbtr matnr werks bewtp
into corresponding fields of table lt_ekbe
FROM ekbe
WHERE matnr IN so_matnr
AND budat IN so_budat
and bewtp <b>IN ('E', 'Q').</b>Kind Regards
Eswar