Ok guys, figured it out. It was an ABAP syntax 'for all entries in internal table' in my SQL for MSEG in the query that was causing the inconsistent results. I removed that and used an alternate syntax, and voila, the numbers are coming out correctly. So the general logic using GR-ed batches for the vendor, and all movements against them, works just fine. Thanks for all the input, Mahesh and Jurgen. This discussion can be closed.
↧