09-21-2007 10:31 AM
hi gurus,
i want to find all those sales records of a particular user who has entries in the condition record table (KONH).
how can i find out?
regards.
09-21-2007 11:14 AM
Hi,
Use the below code:
select single ernam "User Name
from konh
into v_konh
where ernam = 'SAM'.
(The above code will fetch 'SAM' into variable v_konh)
Then:
select vbeln "Sales Orders
from vbak
into table i_vbak
where ernam = v_konh.
(This code will fetch all sales orders of SAM)
<b>Reward points if helpful.</b>