Thanks a lot I got the solution from the link you provided and it's working. I used the code as follows
public void processReport()
{
PURCHREQLINE PURCHREQLINE;
PURCHREQTABLE PURCHREQTABLE;
PURCHRFQCASETABLE PURCHRFQCASETABLE;
PURCHRFQTABLE PURCHRFQTABLE;
HCMWORKER HCMWORKER;
DIRPERSON DIRPERSON;
dataContract = this.parmDataContract() as QtnMonTNContract1;
prTransFromDate= dataContract.parmTransFromDate();
prTransToDate= dataContract.parmTransToDate();
ttsBegin;
delete_from QuotationMonthlyTurnOverTemp;
while select PurchReqId from PurchReqTable
join PURCHREQLINE
join VendReplyDate,CreatedDateTime from PURCHRFQTABLE WHERE PURCHRFQTABLE.STATUSLOW==4 && PURCHRFQTABLE.STATUSHIGH==4 && (PURCHRFQTABLE.VendReplyDate >= prTransFromDate) && (PURCHRFQTABLE.VendReplyDate <= prTransToDate)
join PURCHRFQCASETABLE
Where
PURCHREQLINE.PURCHRFQCASEID == PURCHRFQCASETABLE.RFQCASEID
&& PURCHREQLINE.PURCHREQTABLE == PURCHREQTABLE.recid
&& PURCHRFQCASETABLE.RFQCASEID == PURCHRFQTABLE.RFQCASEID
&& PURCHREQTABLE.PURCHREQBUYER== HCMWORKER.RECID
&& HCMWORKER.PERSON==DIRPERSON.RECID
{
QuotationMonthlyTurnOverTemp.PURCHREQID = PurchReqTable.PurchReqId;
QuotationMonthlyTurnOverTemp.VendReplyDate = PURCHRFQTABLE.VendReplyDate;
QuotationMonthlyTurnOverTemp.submitDate = PURCHRFQTABLE.CreatedDateTime;
QuotationMonthlyTurnOverTemp.nameBuyer = DIRPERSON.Name;
QuotationMonthlyTurnOverTemp.insert();
}
ttsCommit;
}