Display Purchreqid in report

HI

I just want to know if this is right? I want to display the purchreqid field but it doesn’t appear so i tried to create a method in table and report forms.

in purchline table i create methods

Purchreqid purchreqid()
{
return this.PurchReqId;
}

then in PurchPurchaseOrder report i create also a methods

Display str purchreqid()
{
select * from purchline where purchline.ItemId==VendPurchOrderTrans.purchId
&& purchline.PurchId==VendPurchOrderJour.PurchId;
return purchline.PurchReqId;

}

Anyone who can help me…

Thanks and best regards,

use this code

PurchLine::findInventTransId(VendPurchOrderTrans.inventTransId).PurchReqId;

Wow Thanks a lot, you help me so much…