I think what you want is possible without excluding raws in the standard cost estimate run.
Could you explain better your scenario? I have some questions:
1: Your RawM is valuated at Standard or Variable ?
2: What is the rule you want to use to valuate standard cost for Raw Material?
3: Which value you want to use to valuate the Raw Material in the costing run for the Finished Product ?