i have found the problem. I forgot to bind the second datatable to Subreport and that's causing the problem. Below is my final Code. Thanks.
rep.SetDataSource(ds.Tables[0]);
if (ds.Tables.Count > 1)
{
if (ds.Tables[1].Rows.Count > 0)
{
rep.OpenSubreport("Subrep1").SetDataSource(ds.Tables[1]);
}
}
rep.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, true, "ABCDReport");