Hello, I have a DSO in which I am loading data to. while loading i want to check 2 more dsos to make some decisions: Those DSOs names are:
/bic/azmnp00
/bic/azmsnp00
I want to bring these 2 DSOs data (only 2 fields Material and Plant) in to one internal table. some one told me to use join statement in start routine. i am trying the following code but it is not working. can you help me with the code please?
types: begin of mar_typ,
material type /bic/azmnp00-material,
plant type /bic/azmnp00-plant,
end of mar_typ.
data: int_tab type standard table of mar_typ,
wa type mar_typ.
select a~material a~plant b~material b~plant
from /bic/azmnp00 as a
join /bic/azmsnp00 as b
on a~material eq b~material
a~plant eq b~plant
into table int_tab
where SOURCE_PACKAGE-matnr = a~material and
and a~plant = SOURCE_PACKAGE-werks.
thanks.