I have a condition :
I need to go to knvh and collect planning group from knvh-kunnr where knvh-hityp = "D" and knvh-hkunnr = cid, after that go to knvh and collect sold to party from knvh-kunnr where knvh-hityp = "D" and knvh-hkunnr = planning group
so far I have written this thing
select kunnr into table it_knvh
for all entries in it_header
where hkunnr = it_header-cid
and hityp = 'D'.
Can you please twll me what should be the further process to accomplish the desired result.