Nice!
I hope you have gone through initial requirement posted by OP.
If you say,
Whatever you are asking is a SIMPLE STANDARD FEATURE of SAP, why is that you are IMPLEMENTING SAP and not implement the BASIC Standard feature of SAP ???
We wish you have solution for that.
So, can you guide us, how you can maintain condition record for header condition type?
Regards, JP