Hi Diwakar,
In the scenario explained above , document will be stored in SAP database.
In case you want to change it to DMS content server, it can be done through relevant configuration of Storage repositories.
Hope this helps.
Regards,
Deepak Kori