Opening and closing stock

Hello ,

How to calculate opening and closing stock or is there any predefined field in ax2012.

Regards

Nakul