David,
if Material master has cost irrespective of costing variant you used it will consider the cost as valid cost for that specific period. when you try the cost run in CK40n irrespective of costing variant it will ignore those materials which has valid cost it will only cost those materials which does not have cost for that particular period.
I hope it helps.
Best regards
Hrusikesh