Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

where

Former Member
0 Likes
392

Hallo

I want to select with condition 'ZTKE' 'ZTOE' can somebody tell where is my mistake

SELECT avbeln bposnr

INTO CORRESPONDING FIELDS OF TABLE lt_pspabrech

FROM vbak AS a

INNER JOIN vbap AS b

ON avbeln = bvbeln

WHERE b~pstyv IN ( 'ZTKE','ZTOE' )

AND a~auart = 'YBTA'.

regards

2 REPLIES 2
Read only

Azeemquadri
Contributor
0 Likes
367

SELECT avbeln bposnr

INTO CORRESPONDING FIELDS OF TABLE lt_pspabrech

FROM vbak AS a

INNER JOIN vbap AS b

ON avbeln = bvbeln

WHERE b~pstyv IN ('ZTKE' , 'ZTOE')

AND a~auart = 'YBTA'.

Try the above.

I just added space between the two item cats and removed space between single quote and bracket.

Read only

Former Member
0 Likes
367

Very useful answer Thank you