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

query -report

Former Member
0 Likes
329

hi

write the select satatment

that tables stko,stpo,mast,marc.

in this we take matnr werks.the query is display the data

which plant(werks) does not belangs to stko stpo mast and that belong to marc. means.u choose matnr that is not belongs mast and u get matnr from marc which does not belongs to mast stko stpo.write it full reo\port..

1 REPLY 1
Read only

Former Member
0 Likes
297

SELECT matnr werks into itab

From marc where .

loop at itab.

select count(*) into lcnt

from mast

where matnr = itab-matnr and

werks = itab-werks.

if lcnt = 0.

  • it does not belong to mast.

endif.

Endloop.