Hi,
This can be handled thru creating source structure and assigning the Material related cost element and Logistic cost element to respective source structure.
Maintain the source assignment in Source Structure and assign the same either in settlement parameter in the I/O or in settlement Profile, and assign the created source assignment in Settlement rule.
I hope this will resolve your issue.
Regds,
Giri