You have to use backup and archive logs to do this.
For restore.
Refer: http://help.sap.com/saphelp_nw70/helpdata/en/0d/d3077b4a0c11d182b80000e829fbfe/content.htm
For recovery refer:
https://help.sap.com/saphelp_nw04/helpdata/en/bc/07503e30a9d549e10000000a114084/content.htm