Hello Amar Lal,
The way we have done it is by doing the following:
1. Derive Expenditure Sp. Class from GL Account (Material or Asset APC)
2. Derive Not Relevant Grant, Sp. Pgm and Sp. Class for Depreciation (Material Consumption can credit Material Account)
3. We create internal orders in CO for all Sponsor Programs and Grants and derive all GM assignments except Sp. Class from the internal orders.
Hope this helps.
Shyam