When will the margin be credited for the pledged shares?

The margin for pledged shares will reflect in your trading account before the beginning of the next trading day, after the shares have been pledged.