Hi Asim,
try my code it is much faster. u can check in runtime analysis too.
if possible try and let me know.....
@Ronaldo: In selecting the data your select statements are enough (Take one temp table of structure vbap1 and delete duplicates of matnr then apply for all entries to marc), there are changes to be done in loops, try my code and let me know...
It will work......
Vamshi A