Hello Juergan,
The only fields I could use for selection are VKONT, HVORG, TVORG, BUKRS and BUDAT.
I tried using all of them but in vain, and the index it right now uses ( with fields BUKRS VKONT and BUDAT in selection) during execution is a Z index which has the fields BUKRS and BUDAT.
I tried without using OPEN CURSOR as well but no use. I cannot use a join because IT_unqca is already fetched using a select with join on ( it will have around 300,000 records) and joining DFKKOP with them will I think overload it.
What would be your suggestion in using a select within loop where i loop VKONT , i do not it causes unnecessary DB hit, but couldn't think of any other solution.