CNC margin query

I sold my Ashok Leyland stocks from Demat today but the amount was not available in my account to buy other shares. Why is that?